Created
September 27, 2017 16:13
-
-
Save greenhornet79/5e404cbe34b9746a24be828661d5911d to your computer and use it in GitHub Desktop.
Add metadata when creating a Stripe Customer in Leaky Paywall
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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