Getting "Expecting an order id" error in Javascript SDK
C_Cataldo
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Mar-13-2023
03:42 PM
I need some help with the Javascript SDK. I am getting an "Expecting an order id" error. The event logs show a successful request. Here is the js debug:
buttons?style.label=…gPayments=true:1496 click_initiate_payment_reject
- {err: 'Error: Expected an order id to be passed\n at ht…ihxZprBU1hUjeHhmgpwlvRpkZQEr5J7jz_0ZvUUi:2:15690)', timestamp: '1678746767072', referer: 'www.sandbox.paypal.com', sdkCorrelationID: 'f1597397241ca', sessionID: 'uid_6c9c6fcf86_mji6mzi6mte',...
- buttonCorrelationID: "f254837d4ed59"
- buttonSessionID: "uid_bf20ffa86e_mji6mzi6mte"
- clientID: "AVSjP9Hobe73KY_OyKI6SuWUkH7XyNpTtXX_NZ-4ihxZprBU1hUjeHhmgpwlvRpkZQEr5J7jz_0ZvUUi"
- env: "sandbox"
- err: "Error: Expected an order id to be passed ...(removed content here to fit the max post message length)
- referer: "www.sandbox.paypal.com"
- sdkCorrelationID: "f1597397241ca"
- sessionID: "uid_6c9c6fcf86_mji6mzi6mte"
- time: "1678746767072"
- timestamp: "1678746767072"
- token: null
- user_id: "uid_bf20ffa86e_mji6mzi6mte"
1 REPLY 1
JBGBARB
New Community Member
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep-27-2023
09:13 AM
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
Related Content
- Change the button from Sandbox to Production in REST APIs
- Issue with Rendering Trustly Payment Button via PayPal JavaScript SDK in SDKs
- Enable Pay later without credit in SDKs
- When I do PayPal capture Order, I keep on getting Invalid Request Connection in REST APIs
- Error: "Unable to change shipping method. Please try again." in PayPal popup in REST APIs