Paypal partial refund

blackbox1930
New Community Member

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");      

}  

});

Login to Me Too
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.