- Posts: 30
- Thank you received: 0
Mollie webhook called on refund
- Vincent Schuurhuis
- Topic Author
- Offline
- Junior Member
Less
More
4 years 1 month ago #132934
by Vincent Schuurhuis
Mollie webhook called on refund was created by Vincent Schuurhuis
We use the Mollie payment plugin in combination with EventBooking.
We encounter an issue when we refund a transaction, this in done in the dahboard of Mollie.
When we process a refund the orginal webhook (update status) from the registration is called again.
Because a refund is a separe transaction for Mollie which is linked to the original transaction, the webhook will trigger the orginal registration to be processed again. The problem is that the user will receive an e-mail confirming the registration, while it is has been cancelled.
Is it possible to modify the code, or can I modify the code in os_ideal.php lines 112-135 to add another check if the status of the registration is already 1 (published) then processing of the payment is skipped, or at least the e-mail is not send (line 124)
We encounter an issue when we refund a transaction, this in done in the dahboard of Mollie.
When we process a refund the orginal webhook (update status) from the registration is called again.
Because a refund is a separe transaction for Mollie which is linked to the original transaction, the webhook will trigger the orginal registration to be processed again. The problem is that the user will receive an e-mail confirming the registration, while it is has been cancelled.
Is it possible to modify the code, or can I modify the code in os_ideal.php lines 112-135 to add another check if the status of the registration is already 1 (published) then processing of the payment is skipped, or at least the e-mail is not send (line 124)
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
4 years 1 month ago #132946
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Mollie webhook called on refund
Hmm
Are you sure you are using latest version of the payment plugin? The os_ideal.php payment plugin does not contains code in the line 112-135. Maybe it was an outdated payment plugin?
And you are using Joomla 3.9 with latest version of Events Booking?
Tuan
Are you sure you are using latest version of the payment plugin? The os_ideal.php payment plugin does not contains code in the line 112-135. Maybe it was an outdated payment plugin?
And you are using Joomla 3.9 with latest version of Events Booking?
Tuan
Please Log in or Create an account to join the conversation.
- Vincent Schuurhuis
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 30
- Thank you received: 0
4 years 1 month ago #132948
by Vincent Schuurhuis
Replied by Vincent Schuurhuis on topic Mollie webhook called on refund
We are using Joomla 3.9.16 in combination with the 3.11.0 release of EventBooking.
For the Mollie plugin we are using an older version because we need to store the transaction_id of Mollie with the registrant. WIth the OmniPay this was not possible (a few years ago).
We use the 2.0.2 release of the Mollie plugin, if storing the transaction_id with the OmniPay is possible and the duplicate e-mail sending is solved we can update the plugin as well
For the Mollie plugin we are using an older version because we need to store the transaction_id of Mollie with the registrant. WIth the OmniPay this was not possible (a few years ago).
We use the 2.0.2 release of the Mollie plugin, if storing the transaction_id with the OmniPay is possible and the duplicate e-mail sending is solved we can update the plugin as well
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
4 years 1 month ago #132967
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Mollie webhook called on refund
Hi
I will have to check the latest Mollie plugin again
But for your purpose, maybe just perform a check if ($row->published == 1) return; will do the job for now
Tuan
I will have to check the latest Mollie plugin again
But for your purpose, maybe just perform a check if ($row->published == 1) return; will do the job for now
Tuan
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2024 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.