paypal / PayPal-node-SDK

node.js SDK for PayPal RESTful APIs
Other
1.28k stars 451 forks source link

OrdersGetRequest bug #453

Open Dyceman opened 4 years ago

Dyceman commented 4 years ago

General information

Issue description

The OrdersGetRequest is appending a ? to the end of the path, which is causing it to fail to get the order everytime.

https://api.sandbox.paypal.com/v2/checkout/orders/4BH1379521244405C 4BH1379521244405C ORDER STUFF: OrdersGetRequest { path: '/v1/checkout/orders/4BH1379521244405C?', verb: 'GET', body: null, headers: { 'Content-Type': 'application/json' } }

omar09091993 commented 4 years ago

General information

  • SDK/Library version: 2.0 beta
  • Environment: Sandbox
  • PayPal-Debug-ID values: None
  • Language, language version, and OS: JS(NodeJS), latest, Windows 10

Issue description

The OrdersGetRequest is appending a ? to the end of the path, which is causing it to fail to get the order everytime.

https://api.sandbox.paypal.com/v2/checkout/orders/4BH1379521244405C 4BH1379521244405C ORDER STUFF: OrdersGetRequest { path: '/v1/checkout/orders/4BH1379521244405C?', verb: 'GET', body: null, headers: { 'Content-Type': 'application/json' } }