braintree.js prevents the form to be submitted to my server

167 views Asked by At

I’m having trouble with braintree javascript. In my spree store I am trying to add braintree drop-in UI. The issue lies when user selects braintree as a payment method and then switch to other payment method. When user selects braintree that time I call braintree.setup method so if user then selects any other payment method and click submit, Braintree js intercepts the data and tries to send it to braintree server but this data is not from the drop-in UI and I’m unable to submit the form to my server.

0

There are 0 answers