pronamic / wp-pronamic-pay

The Pronamic Pay plugin allows you to easily accept payments with payment methods like credit card, iDEAL, Bancontact and Sofort through a variety of payment providers on your WordPress website.
https://pronamicpay.com
35 stars 14 forks source link

Buckaroo transaction status and refunds `GET json/Transaction/Status/{transactionKey}` #120

Closed remcotolsma closed 1 year ago

remcotolsma commented 3 years ago

It looks like GET json/Transaction/Status/{transactionKey} is not returning information about related refunds in the RelatedTransactions property.

As soon as you have the {transactionKey} of a refund you can request the status of that refund via GET json/Transaction/Status/{transactionKey}, then the RelatedTransactions 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

remcotolsma commented 3 years 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.

plaza buckaroo nl_Transaction_Transactions_Details_transactionKey=0E5C629BAD194681B007B9054A03F4EE

plaza buckaroo nl_Transaction_Transactions_Details_transactionKey=0E5C629BAD194681B007B9054A03F4EE (1)

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
Schermafbeelding 2021-06-07 om 21 11 21
remcotolsma commented 3 years ago

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
Schermafbeelding 2021-06-07 om 21 25 27
remcotolsma commented 3 years ago

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

remcotolsma commented 1 year ago

Unfortunately, we never heard from @buckaroo-it again, will mark this issue as not planned.