Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save greenhornet79/5e404cbe34b9746a24be828661d5911d to your computer and use it in GitHub Desktop.
Save greenhornet79/5e404cbe34b9746a24be828661d5911d to your computer and use it in GitHub Desktop.
Add metadata when creating a Stripe Customer in Leaky Paywall
<?php
add_filter( 'leaky_paywall_process_stripe_payment_customer_array', 'zeen101_add_meta_to_stripe_customer' );
function zeen101_add_meta_to_stripe_customer( $customer_array ) {
$customer_array['metadata'] = array(
'company_name' => 'name of company',
'company_billing_address' => 'billing address',
);
return $customer_array;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment