Stripe checkout additional parameters | WordPress.org

[ad_1]

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.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer