function hook_commerce_stripe_metadata in Commerce Stripe 7
Same name and namespace in other branches
- 7.3 commerce_stripe.api.php \hook_commerce_stripe_metadata()
Add information to the metadata sent to Stripe.
2 functions implement hook_commerce_stripe_metadata()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- commerce_stripe_commerce_stripe_metadata in ./
commerce_stripe.module - Implement hook_commerce_stripe_metadata and add our defaults.
- commerce_stripe_test_commerce_stripe_metadata in tests/
commerce_stripe_test.module - Implements hook_commerce_stripe_metadata().
1 invocation of hook_commerce_stripe_metadata()
- commerce_stripe_add_metadata in ./
commerce_stripe.module - Adds a metadata key to an existing information array.
File
- ./
commerce_stripe.api.php, line 10 - This code is never called, it's just information about to use the hooks.
Code
function hook_commerce_stripe_metadata($order) {
return array(
'order_number' => $order->order_number,
);
}