cannot refund the transaction with node-rest-sdk

deepak_singh
Contributor
Contributor

i want to refund the money which is payed by the payout api

 

for this i'm using node SDKs   and using below api 

  paypal.sale.refund(saleId, data, (error, refund) => {

      if (error){
        console.error(JSON.stringify(error));
      } else {
        console.log("Refund Sale Response");
        console.log(JSON.stringify(refund));
      }
    });

and i'm getting the following error 

{"code":"ETIMEDOUT","errno":"ETIMEDOUT","syscall":"connect","address":"173.0.82.78","port":443}

please let me know if there is any other way to get refund 

Spoiler
transaction was done as payout

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.