You are here

function hook_uc_stripe_payment_intent_alter in Ubercart Stripe 7.3

Allows other modules to alter intent params before Stripe Payment Intent is created. This is used for one time charges.

Parameters

&$intent: The intent array used to create the intent.

$order: The order object that is being used for the intent.

Return value

Nothing should be returned. Hook implementations should receive the $intent array by reference and alter it directly.

1 invocation of hook_uc_stripe_payment_intent_alter()
_uc_stripe_confirm_payment in ./uc_stripe.module
Ajax page callback for callback uc_stripe/ajax/confirm_payment page This is used to send payment and intent status back to JS client

File

./uc_stripe.api.php, line 26
Hooks provided by the uc_stripe module.

Code

function hook_uc_stripe_payment_intent_alter(&$intent, $order) {
  $intent['metadata'] = [
    "order_source" => "affilate_links",
  ];
}