VivaPayments / API

Index of Viva Wallet open source projects on GitHub.
139 stars 162 forks source link

Trying to refund unsuccessfully #2333

Closed ipinak closed 1 year ago

ipinak commented 1 year ago

Here is the request I make to perform a refund for an amount 100 cents (i.e. 1 EUR)

DELETE
https://demo.vivapayments.com/api/transactions/aacf07cf-9102-4b02-8172-72b7e1efd5d9/?amount=100&sourceCode=Default

The response is always: PaymentsInvalidAmountForVoid

https://viva-wallet-developer-portal.netlify.app/tutorials/payments/issue-a-refund/

Order

Order Code  5249379613372601
Timestamp   18/2/2023 4:34:35 μμ
Merchant Reference  
Description for customer    
Amount  5,09 EUR
Tip Amount  0,00 EUR
Interchange     
Paid to your account    4,73 EUR
Channel/Source  Smart Checkout / orderduck
Account     0-MAIN [[***](https://demo.vivapayments.com/selfcare/en/wallet/detail/***)]
Tags    
Transaction Id  aacf07cf-9102-4b02-8172-72b7e1efd5d9

The documentation states theses reasons

Which is these issues causes this? And what should I do about it?

The scenario I'm trying to verify is to create an order payment and hold an amount, then later capture either the full amount of the order payment or part of it.

ipinak commented 1 year ago

Found a way to deal with my scenario using preAuth on payment orders.