cancel
Showing results for 
Search instead for 
Did you mean: 

cannot refund the transaction with node-rest-sdk

Highlighted

cannot refund the transaction with node-rest-sdk

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