Closed remcotolsma closed 1 year ago
Just tested this via the https://testcheckout.buckaroo.nl/json/Docs/Api/GET-json-Transaction-Status-transactionKey API. Above seems to be correct, no information about the refunds.
Wrote a simple CLI command in https://github.com/wp-pay-gateways/buckaroo/commit/1e38ebb9a47495afa0d1540d18457f7ffa092d2f to retrieve the transaction status by transaction key:
wp pronamic-pay buckaroo transaction status 0E5C629BAD194681B007B9054A03F4EE --config_id=300 | jq
Also no information about the refund transactions via the GET json/Transaction/RefundInfo/{transactionKey}
endpiont.
https://testcheckout.buckaroo.nl/json/Docs/Api/GET-json-Transaction-RefundInfo-transactionKey
wp pronamic-pay buckaroo transaction refund-info 0E5C629BAD194681B007B9054A03F4EE --config_id=300 | jq
We submitted this to Buckaroo via support@buckaroo.nl:
Thomas / Buckaroo, we zien bij het opvragen van een transactie status via [3]https://testcheckout.buckaroo.nl/json/Docs/Api/GET-json-Transaction-Status-transactionKey geen informatie over refunds in de
RelatedTransactions
property. En ook bij het opvragen van de refund info via [4]https://testcheckout.buckaroo.nl/json/Docs/Api/GET-json-Transaction-RefundInfo-transactionKey zien we geen link naar de refund transacties. Klopt het dat we met behulp van de transactionKey van de originele betaling geen mogelijkheid hebben om de bijbehorende refunds op te vragen? We weten wel dat we op de push URL een notificatie krijgen over elke refund. We willen echter niet afhankelijk zijn van de push notificatie, we willen ook via de transactionKey van de originele betaling de refunds opvragen. Dat zou ons namelijk ook de mogelijkheid geven om bij de Gravity Forms notitie de refund transactie ID te tonen.
Buckaroo's first reaction:
Dank voor je mail. Ik ga dit even navragen bij onze developers en kom hier zsm op terug.
Internal HelpScout ticket: https://secure.helpscout.net/conversation/1531226986/22161?folderId=1425720
Unfortunately, we never heard from @buckaroo-it again, will mark this issue as not planned.
It looks like
GET json/Transaction/Status/{transactionKey}
is not returning information about related refunds in theRelatedTransactions
property.As soon as you have the
{transactionKey}
of a refund you can request the status of that refund viaGET json/Transaction/Status/{transactionKey}
, then theRelatedTransactions
property does contain a reference to the original payment.Need to check again if this is indeed the case.
https://testcheckout.buckaroo.nl/json/Docs/Api/GET-json-Transaction-Status-transactionKey