webdna / commerce-braintree

Braintree gateway for Craft Commerce
Other
2 stars 11 forks source link

Fixed several JS errors #49

Closed jmauzyk closed 1 year ago

jmauzyk commented 1 year ago

I encountered several JS errors with the Drop-in UI that I've addressed here.

jmauzyk commented 1 year ago

@samuelbirch I see you resolved some of these issues with your latest commit, thanks for that. However, the call to addEventListener() remains the same as before. As written, the form does not generate a nonce via JS on submit, but instead directly POSTs the payment form in the browser. This then redirects to the payment page with the error Cannot determine payment method. Are you still working on a solution for this?

samuelbirch commented 1 year ago

New version released with fixes for this.