• Resolved damo888

    (@damo888)


    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Shaylee

    (@shayleehansen30)

    Thank you for sharing your experience and the changes you made previously to customize the Stripe Checkout session. However, modifying the core files of plugins can have unintended consequences and is not recommended, as it may lead to compatibility issues and problems during updates.

    Since the structure and functionality of the plugin might have changed in the latest version, I would advise against modifying the plugin files directly. Instead, I recommend reaching out to our Customer Success team. They are well-equipped to provide guidance on the latest plugin version and best practices.

    Please feel free to contact our Customer Success team for further assistance.

    Thread Starter damo888

    (@damo888)

    Thanks @shayleehansen30, I have recently reached out to Ninja Forms support, who confirmed that there is no functionality to send those parameters to the Stripe checkout session. As I was provided with no solution, my only option it seems is to attempt to achieve this by editing the core files, which of course they do not support.

    As per my original comment, I was able to successfully edit the core files to pass the parameters in a previous version of the plugin, and now need some help as to how to do this with the latest version of the Ninja Forms Stripe add-on, as the files have now changed.

    I will take on any risk associated with editing core files as I have no other reasonable choice – I have a number of complex forms which will require many tens of hours dev time to switch to another plugin.

    Shaylee

    (@shayleehansen30)


    Hello @damo888,

    In situations like these, we highly recommend exploring the services of Codeable.io, our trusted partner. They specialize in such customizations and could provide the assistance you need.

    Feel free to give them a try!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Stripe checkout additional parameters’ is closed to new replies.