Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Add metadata parameter to Direct Stripe charge
* Add metadata parameter to the Direct Stripe button
add_action( 'direct_stripe_charge_data', function($data, $user, $token, $button_id) {
$data[] = array(
"metadata" => array(
"key" => "value"
return $data;
}, 10, 4 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.