webdna / commerce-braintree

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

Support for PayPal not working #6

Closed zackspear closed 5 years ago

zackspear commented 5 years ago

Thanks for the plugin!

I'm unfortunately having some issues. When calling the default getPaymentFormHtml() method to get the Drop-in UI I am unable to get the PayPal payment option to work.

Clicking the blue PayPal button will trigger the PayPal popup window to appear but then it quickly disappears and an error displays in the Drop-in UI, "Something went wrong on our end." and a few errors are logged in the console.

screenshot of console

I am on the current latest versions

Please let me know if I need to provide additional info. Thanks in advance.

samuelbirch commented 5 years ago

thanks, we'll take a look

samuelbirch commented 5 years ago

should be fixed in 2.1.16

zackspear commented 5 years ago

Thanks for the swift response and fix for this.

Hate to be a further pest, but I'm having a different issue now that I've been able to progress further through the PayPal payment option.

Once the PayPal popup window is closed and the PayPal option added to the Drop-in UI, I can submit the payment but I get a response error, "US state codes must be two characters to meet PayPal Seller Protection requirements."

I'm currently using a slightly modified version of the Craft Commerce checkout example template and it uses ID's to represent the states. So I'm not sure if this issue is because of how the template is setup or something on the plugin's side.

Address I'm using for testing purposes is: 123 Main St Portland Oregon United States 97217

I was able to successfully make a PayPal purchase when using an address in a country that doesn't have a state.

samuelbirch commented 5 years ago

this should now be working in 2.1.17

zackspear commented 5 years ago

Thank you @samuelbirch 👍