Skip to main content
Cookies help us customize the PayPal Community for you, and some are necessary to make our site work. By browsing this website, you consent to the use of cookies. Learn more
Accept
Reject

PayPal Community

  • Dashboard
  • Send and Request
  • Wallet
  • Business
  • Help
Log in
since ‎Mar-11-2023
Country: United States
Type: Personal
C_Cataldo
C_Cataldo Contributor
Contributor
4
Posts
0
Kudos
0
Solutions
Ice Breaker
The Return
Active
View all
Latest Contributions by C_Cataldo
  • Topics C_Cataldo has Participated In
  • Latest Contributions by C_Cataldo

Re: "Expected an order id to be passed"

by C_Cataldo Contributor in PayPal Payments Standard
‎Mar-22-2023 02:32 PM
‎Mar-22-2023 02:32 PM
I found the solution to my particular issue. The example code that I was using was incorrect. The reference to the order id was wrong. It should be ".then((order) => {return order.data.id;});"   ... View more

Re: "Expected an order id to be passed"

by C_Cataldo Contributor in PayPal Payments Standard
‎Mar-13-2023 03:48 PM
‎Mar-13-2023 03:48 PM
Me too. ... View more

Getting "Expecting an order id" error in Javascrip...

by C_Cataldo Contributor in Sandbox Environment
‎Mar-13-2023 03:42 PM
‎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"   ... View more

I am getting an "Uncaught Error: Expected an ...

by C_Cataldo Contributor in REST APIs
‎Mar-11-2023 03:20 PM
‎Mar-11-2023 03:20 PM
I am getting an "Uncaught Error: Expected an order id to be passed" back even though I see an id being returned, and there are no errors in the event log for the Paypal sandbox request that was made.     JS return from createOrder: ack true data Object { id: "4R111128JP953492S" } id "4R111128JP953492S"   Corresponding event log entry: 11 Ma[Removed. Phone #s not permitted]/td> 201 OK 1ee5fb9ac41c3 POST /v2/checkout/orders       Here is the JSON data packet sent:   { "application_context": { "cancel_url": "", "return_url": "", "user_action": "PAY_NOW" }, "intent": "CAPTURE", "purchase_units": [ { "amount": { "breakdown": { "discount": { "currency_code": "USD", "value": "0.00" }, "item_total": { "currency_code": "USD", "value": "25.00" }, "shipping": { "currency_code": "USD", "value": "6.43" }, "tax_total": { "currency_code": "USD", "value": "1.50" } }, "currency_code": "USD", "value": "32.93" }, "description": "Test Business", "invoice_id": "353781", "items": [ { "name": "Eagle Premier 25 Tooth Odometer Gear", "quantity": "1", "unit_amount": { "currency_code": "USD", "value": "25.00" } } ] } ] }   And the response:   { "id": "4R111128JP953492S", "links": [ { "href": "https://api.sandbox.paypal.com/v2/checkout/orders/4R111128JP953492S", "method": "GET", "rel": "self" }, { "href": "https://www.sandbox.paypal.com/checkoutnow?token=4R111128JP953492S", "method": "GET", "rel": "approve" }, { "href": "https://api.sandbox.paypal.com/v2/checkout/orders/4R111128JP953492S", "method": "PATCH", "rel": "update" }, { "href": "https://api.sandbox.paypal.com/v2/checkout/orders/4R111128JP953492S/capture", "method": "POST", "rel": "capture" } ], "status": "CREATED" }   ... View more
Paypal Logo
  • Help
  • Contact Us
  • Security
  • Fees
  • © 1999-2023 PayPal, Inc. All rights reserved.
  • Privacy
  • Legal
  • Policy Updates

The money in your balance is eligible for pass-through FDIC insurance.

The PayPal Cash Mastercard is issued by The Bancorp Bank pursuant to a license by Mastercard International Incorporated. The Bancorp Bank; Member FDIC.

Powered by Khoros