Stripe checkout additional parameters
-
Does anyone know how to send additional parameters to the Stripe Checkout session? Namely, auto tax calculation, tax id collection and billing address collection?
Before upgrading to the latest ninja forms and stripe plugins, I used to get this to work by adding the following three lines to wp-content>plugins>ninja-forms-stripe>includes>Stripe>Checkout>Payment.php:
$payment_data[‘tax_id_collection’][‘enabled’] = ‘true’;
$payment_data[‘automatic_tax’][‘enabled’] = ‘true’;
$payment_data[‘billing_address_collection’] = ‘required’;Now that file no longer exists, and I’m struggling to find the equivalent new file and correct code to add to it.
I suspect the new file is PaymentGateway.php but I just can’t figure out what to put where this time.
- The topic ‘Stripe checkout additional parameters’ is closed to new replies.