New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Paypal Checkout logic is wrong when it is the only available payment method #803
Comments
Hi, |
Hi @Michael-Herzog, @muratcakir. Sorry to re-open this ticket. I've changed the setting and the payment method step is now displayed so I'm able to click on the Paypal button, but after logging into Paypal and confirming the payment, I get redirected back to the store website with an error saying "Error: data is not defined". Everything looks to be correctly configured in the Paypal plugin, so I'm wondering why this is now happening. Is it a known bug? |
Hi, |
Hi Michael. I'm running v5.0.4.0, but haven't made any changes to the Paypal code. What are your thoughts on the missing custom_id field? Thanks, |
Hi Nick, |
Thanks Michael - I've just had a look at a long list of bug fixes in 5.0.5 and it certainly sounds like it's worth upgrading! I'll do this today and report back. Also: if you take a look at PayPalHttpClient.cs, you can see that the orderGuid parameter is optional (see attached screenshot). It's this parameter that is used to populate custom_id... |
@Michael-Herzog, Thanks very much - upgrading to v5.0.5 fixed this! |
Describe the bug
When the only available payment method is Paypal Checkout, the whole payment process does not work, as the Select Payment Method checkout step is automatically skipped, preventing the user from being able to click on the dedicated Paypal button. NOTE: the Paypal button DOES appear when there are multiple payment methods available and the user selects Paypal.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
We should either force the Payment Method step to be displayed (which will allow the user to click on the Paypal button next to the payment method), or correctly handle this scenario at the end of the checkout process.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: