I'm trying to do a partial refund on a payment. The payment was created: const request = this.paypal.payments.CapturesRefundRequest('4E940485J7238491S');
request.requestBody({
amount: {
currency_code: 'EUR',
value: 0.20
}
});
client.execute(request).then(response => {
console.log(response)
}); Now I get the following error: {
"name": "UNPROCESSABLE_ENTITY",
"message": "The requested action could not be performed, semantically incorrect, or failed business validation.",
"debug_id": "9e0aff43eca7c",
"details": [
{
"issue": "PARTIAL_REFUND_NOT_ALLOWED",
"description": "You cannot do a refund less than the original capture amount."
}
],
"links": [
{
"href": "https://developer.paypal.com/docs/api/payments/v2/#error-PARTIAL_REFUND_NOT_ALLOWED",
"rel": "information_link"
}
]
}, It seems I'm not allowed to do a partial refund, but I have no idea why. I am able to do a full refund by leaving the amount part out, but want to be able to do partials as well. How can I solve this, or is this related to my sandbox account?
... View more