paypal / PayPal-node-SDK

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

'INVALID_RESOURCE_ID' on saleId's that were valid a year ago #407

Closed Pluto8195 closed 5 years ago

Pluto8195 commented 5 years ago

Issue description

sale.get is returning { name: 'INVALID_RESOURCE_ID', message: 'The requested resource ID was not found', information_link: 'https://developer.paypal.com/docs/api/payments/#errors', debug_id: '9170fb705cd23', httpStatusCode: 404 }, httpStatusCode: 404 }

I know my calling function down below is not the problem as I have not changed it, and it was working before, our entire DB of saleId's no longer work when they were working before. Has the function changed in some way?

paypal.sale.get(order.saleId, function (error, sale) { if (error) { console.log(error); } else { console.log(sale); } });

Pluto8195 commented 5 years ago

My mistake I was using live transaction IDs on my sandbox environment