$94 GRAYBYTE WORDPRESS FILE MANAGER $14

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//actions.php
<?php
/**
 * Give - Stripe Frontend Actions
 *
 * @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.
use Give\Helpers\Gateways\Stripe;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * Add an errors div per form.
 *
 * @param int   $form_id Donation Form ID.
 * @param array $args    List of Donation Arguments.
 *
 * @access public
 * @since  2.5.0
 *
 * @return void
 */
function give_stripe_add_stripe_errors( $form_id, $args ) {
	echo '<div id="give-stripe-payment-errors-' . esc_html( $args['id_prefix'] ) . '"></div>';
}

add_action( 'give_donation_form_after_cc_form', 'give_stripe_add_stripe_errors', 8899, 2 );

/**
 * Add secret source field to apply the source generated on donation submit.
 *
 * @param int   $form_id Donation Form ID.
 * @param array $args    List of arguments.
 *
 * @since 2.5.0
 *
 * @return void
 */
function give_stripe_add_secret_payment_method_field( $form_id, $args ) {

	$id_prefix = ! empty( $args['id_prefix'] ) ? $args['id_prefix'] : 0;

	echo sprintf(
		'<input id="give-stripe-payment-method-%1$s" type="hidden" name="give_stripe_payment_method" value="">',
		esc_html( $id_prefix )
	);

}
add_action( 'give_donation_form_top', 'give_stripe_add_secret_payment_method_field', 10, 2 );

/**
 * This function is used to add Stripe account used while processing donation.
 *
 * @param int   $donationId   Donation ID.
 * @param array $donationData Donation data.
 *
 * @since 2.7.0
 *
 * @return void
 */
function giveStripeAddDonationStripeAccount( $donationId, $donationData ) {
	$paymentMethod = give_get_payment_gateway( $donationId );
	$formId        = (int) $donationData['give_form_id'];

	// Return, if the donation is not processed with any of the supported payment method of Stripe.
	if ( ! Stripe::isDonationPaymentMethod( $paymentMethod ) ) {
		return;
	}

	Stripe::addAccountDetail( $donationId, $formId );
}

add_action( 'give_insert_payment', 'giveStripeAddDonationStripeAccount', 10, 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