You are here

function hook_commerce_stripe_order_refund_alter in Commerce Stripe 7.3

Alter the reason of the refund.

1 function implements hook_commerce_stripe_order_refund_alter()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

commerce_stripe_connect_commerce_stripe_order_refund_alter in modules/commerce_stripe_connect/commerce_stripe_connect.module
Implements hook_commerce_stripe_order_refund_alter().
1 invocation of hook_commerce_stripe_order_refund_alter()
commerce_stripe_refund_form_submit in includes/commerce_stripe.admin.inc
Submit callback for submitting refunds to Stripe.

File

./commerce_stripe.api.php, line 45
This code is never called, it's just information about to use the hooks.

Code

function hook_commerce_stripe_order_refund_alter(&$refund, $form_state) {

  // Example of alteration of the reason.
  $refund['reason'] = t('duplicate');
}