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
- Paypal subscription Api in REST APIs
- Selected Shipping Method amount not updating to cart for card payment in SDKs
- ExpressCheckout to REST API - Is Partner Program Now Required to Host Simple 3rd Party Transactions? in REST APIs
- Are there any restrictions to charge using only html, vanilla javascript and php with rest api? in REST APIs
- Disable shipping address in Pay with Credit or Debit card button integration in SDKs