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.

CommentFileSizeAuthor
#8 handle-jquery-1.7-3200525-8.patch1.61 KBtomtech

Comments

Greenman77 created an issue. See original summary.

Greenman77’s picture

Issue summary: View changes
Greenman77’s picture

Issue summary: View changes
Greenman77’s picture

Issue summary: View changes
rmasoad@gmail.com’s picture

Any updates on this one? I'm getting the same issue.

rmasoad@gmail.com’s picture

What PHP version are you using?

tomtech’s picture

The 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.)

tomtech’s picture

StatusFileSize
new1.61 KB

Attached patch adds backwards compatibility for jQuery 1.7, by removing the need for a promise chain.

tomtech’s picture

Status: Active » Needs review
jsacksick’s picture

Status: Needs review » Fixed

Committed!

  • jsacksick committed b2b7322 on 7.x-2.x authored by TomTech
    Issue #3200525 by TomTech: Paypal Response "Expected an Order ID to be...
jsacksick’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.