Using Commerce Paypal to process payments but on clicking the Gold "Paypal" button on the "Payment" screen after confirming my order it opens up the Paypal Authentication Login and immediately closes it providing an error on the dev console of "Expected an Order ID to be passed".
This only happens in "Live" mode while in "sandbox" mode everything happens as you would expect. How can I provide the Order ID so that the module provides this as part of the data being posted?
Steps to reproduce. Drupal 7.78, Commerce 7.x-1.15, Commerce Paypal & Paypal Checkout 7.x-2.x-dev. Enable Modules, enable the Commerce Paypal payment through store -> config -> payment methods -> "Paypal Checkout" -> Edit -> I have under "actions" edited to added my "live" client ID and Secret token and using Transaction type of "Capture". I've also tried with various Shipping address collection options and billing enabled or disabled. Same with Smart Button from cart. This is the only payment option I have enabled although I did try WPS it gave me a Paypal error screen
Perhaps there's a requirement I'm not aware of that has been imposed by Paypal to include this information within the data being posted and the modules not providing it or my configuration is wrong somewhere. Seems strange though that sandbox mode works but live doesn't.
Any help or guidance from the gurus would be appreciated.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | handle-jquery-1.7-3200525-8.patch | 1.61 KB | tomtech |
Comments
Comment #2
Greenman77 commentedComment #3
Greenman77 commentedComment #4
Greenman77 commentedComment #5
rmasoad@gmail.com commentedAny updates on this one? I'm getting the same issue.
Comment #6
rmasoad@gmail.com commentedWhat PHP version are you using?
Comment #7
tomtech commentedThe most likely reason to encounter this error is the site is using jQuery 1.7.
Ensure you are using at least jQuery 1.8. (Though, of course, it is recommended to use the most up to date version the site can support.)
Comment #8
tomtech commentedAttached patch adds backwards compatibility for jQuery 1.7, by removing the need for a promise chain.
Comment #9
tomtech commentedComment #10
jsacksick commentedCommitted!
Comment #12
jsacksick commented