Paypal partial refund
blackbox1930
New Community Member
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
May-16-2017
10:54 PM
We are trying to implement paypal partial refund method using REST API. It doesn't seems to workeven when we have provided the needed arguments and have already implemented the method described in paypal docs. We need help for partial refund in node js.
Script is added below:
let refund_details = {
"amount": { total: "50.00", currency: “CAD” },
"invoice_number": "INV-1234567" };
// get sale id let saleId = “xxxx123”;
paypal.sale.refund(saleId, refund_details, (error, refund) => {
if (error)
{
console.log(error.response);
} else {
console.log("Get Refund Response");
}
});
0 REPLIES 0
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
- Remove PayPal Pay Later option from paypal checkout page. in PayPal Upgrade Community
- Security header is not valid error message in woo commerce in NVP/SOAP APIs
- Refunding an order via HATEOAS URL failing with NOT_AUTHORIZED error in Sandbox Environment
- what permissions to expect in oauth_third_party when tracking seller status in REST APIs
- How to Process PayPal Subscription Refund With API? in REST APIs