- Posts: 23
- Thank you received: 1
Confirmation of registration
- nordstoyn2017
- Topic Author
- Offline
- Junior Member
-
Less
More
8 years 10 months ago #89190
by nordstoyn2017
Confirmation of registration was created by nordstoyn2017
Hello!
Sorry for the bad english. I already addressed to you on the payment gateway ( joomdonation.com/forum/events-booking-ge...sian-bank.html#87896 ).
You helped me. But I have a problem with registration confirmation. I did not use the method renderRedirectForm (), as the Bank, for which I write the payment gateway provides first response type { "orderId": "NNN", "formUrl": "https: // server/application_context/merchants/test/payment_ru.html?mdOrder=NNN "}, And then I need to go to the address of the parameter formUrl. So I took the function of curl, and then redirect to the URL parameter of formUrl. The Bank operates in a test mode and then redirects to the page that I ask in returnUrl . I do not know what value to set, so I copied from the gateway to paypal ($this->setParameter('returnUrl', $siteUrl . 'index.php?option=com_eventbooking&view=payment&layout=complete&Itemid=' . $Itemid)
. Is it correct?
In general, the question is as follows. How do I accept an answer from the bank, check it out and to check for the event registration Completed and paid? And whether there is a description of methods verifyPayment() and validate() ?
Sorry for the bad english. I already addressed to you on the payment gateway ( joomdonation.com/forum/events-booking-ge...sian-bank.html#87896 ).
You helped me. But I have a problem with registration confirmation. I did not use the method renderRedirectForm (), as the Bank, for which I write the payment gateway provides first response type { "orderId": "NNN", "formUrl": "https: // server/application_context/merchants/test/payment_ru.html?mdOrder=NNN "}, And then I need to go to the address of the parameter formUrl. So I took the function of curl, and then redirect to the URL parameter of formUrl. The Bank operates in a test mode and then redirects to the page that I ask in returnUrl . I do not know what value to set, so I copied from the gateway to paypal ($this->setParameter('returnUrl', $siteUrl . 'index.php?option=com_eventbooking&view=payment&layout=complete&Itemid=' . $Itemid)

In general, the question is as follows. How do I accept an answer from the bank, check it out and to check for the event registration Completed and paid? And whether there is a description of methods verifyPayment() and validate() ?
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
8 years 10 months ago #89199
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Confirmation of registration
Hi
You can read documentation at eventbookingdoc.joomservices.com/develop...n/dev-payment-plugin to understand how to develop a payment plugin
For your method, I guess you can read instructions + sample code here github.com/joomdonation/os_eb_redirect
Tuan
You can read documentation at eventbookingdoc.joomservices.com/develop...n/dev-payment-plugin to understand how to develop a payment plugin
For your method, I guess you can read instructions + sample code here github.com/joomdonation/os_eb_redirect
Tuan
Please Log in or Create an account to join the conversation.
- nordstoyn2017
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 23
- Thank you received: 1
8 years 10 months ago #89251
by nordstoyn2017
Replied by nordstoyn2017 on topic Confirmation of registration
You do not quite understand me. I read it all. But after a round-trip to the bank on the website writes "Invalid Registration Record". What could be the problem? The guide does not describe the normal registration confirmation. I'm talking about methods verifyPayment and validate
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
8 years 10 months ago #89265
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Confirmation of registration
Hi
I read your message again and might understand it now:
1. You need to set returnUrl to yoursitedomain.com/index.php?option=com_..._REGISTRATION_RECORD
2. Then when your bank redirect you to that URL:
- The verifyPayment payment method will be called. Usually, this method will call validate() method of the payement plugin to verify the payment. If it is valid, then you can update status of the registration record, sending emails.., and redirect o registration complete page
It is explained in the documentation github.com/joomdonation/os_eb_redirect#the-verifypayment-method
Tuan
I read your message again and might understand it now:
1. You need to set returnUrl to yoursitedomain.com/index.php?option=com_..._REGISTRATION_RECORD
Code:
$siteUrl . "index.php?option=com_eventbooking&task=payment_confirm&payment_method=os_payment_plugin_name&id=$row->id&Itemid=$Itemid";
2. Then when your bank redirect you to that URL:
- The verifyPayment payment method will be called. Usually, this method will call validate() method of the payement plugin to verify the payment. If it is valid, then you can update status of the registration record, sending emails.., and redirect o registration complete page
It is explained in the documentation github.com/joomdonation/os_eb_redirect#the-verifypayment-method
Tuan
Please Log in or Create an account to join the conversation.
- nordstoyn2017
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 23
- Thank you received: 1
8 years 9 months ago #90009
by nordstoyn2017
Replied by nordstoyn2017 on topic Confirmation of registration
Thanks for the help. It was in a small vacation, and only now have the opportunity to check what you have written. Everything is working. But after a redirect to the Bank, the message "Thank you. Registration completed successfully" and removed from the Cart is an event for which the payment has come?
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
8 years 9 months ago #90028
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Confirmation of registration
I don't really understand your last question. Could you please explain more details?
Tuan
Tuan
Please Log in or Create an account to join the conversation.
- nordstoyn2017
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 23
- Thank you received: 1
8 years 9 months ago #90047
by nordstoyn2017
Replied by nordstoyn2017 on topic Confirmation of registration
The Bank accepts the payment and redirect on a URL specified in returnUrl. Status becomes Paid. But this Event is not removed from the Cart. And the user does not have the inscription "Registration is completed". That is, there is a redirect to the page Registration complete set, as in the case of Offline payment method.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
8 years 9 months ago #90059
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Confirmation of registration
You will need to add code to perform the redirection yourself. After calling $this->onPaymentSuccess($row, $transactionId); , you need to call this command (in case payment is valid)
github.com/joomdonation/os_eb_creditcard...s_creditcard.php#L66
And redirect to failure page one payment failure
github.com/joomdonation/os_eb_creditcard...s_creditcard.php#L76
Tuan
,
github.com/joomdonation/os_eb_creditcard...s_creditcard.php#L66
And redirect to failure page one payment failure
github.com/joomdonation/os_eb_creditcard...s_creditcard.php#L76
Tuan
,
Please Log in or Create an account to join the conversation.
- nordstoyn2017
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 23
- Thank you received: 1
8 years 9 months ago #90126
by nordstoyn2017
Replied by nordstoyn2017 on topic Confirmation of registration
Thank you very much! Everything worked.
Two small issue does not relate to the topic.
1. We will be only multi-day events. It is possible to divide the payment 1) Full and 2) the first day. I understand that each event can be certain prepayment (simply dividing the cost by the number of days and will be the correct figure), but can you have an additional plug-in to simplify this?
2. There is a problem with a surcharge after payment history. That is when the customer has paid in part, and then goes into the history and presses to pay, our Bank provides that the request for this product has already been processed. That is, it turns on the same order id can not make two payments (first part, then the payment shortfall). It features a plugin? Or you can somehow forms a supplementary going for the second payment?
I hope you got what I meant
Two small issue does not relate to the topic.
1. We will be only multi-day events. It is possible to divide the payment 1) Full and 2) the first day. I understand that each event can be certain prepayment (simply dividing the cost by the number of days and will be the correct figure), but can you have an additional plug-in to simplify this?
2. There is a problem with a surcharge after payment history. That is when the customer has paid in part, and then goes into the history and presses to pay, our Bank provides that the request for this product has already been processed. That is, it turns on the same order id can not make two payments (first part, then the payment shortfall). It features a plugin? Or you can somehow forms a supplementary going for the second payment?
I hope you got what I meant

Please Log in or Create an account to join the conversation.
- nordstoyn2017
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 23
- Thank you received: 1
8 years 9 months ago #90139
by nordstoyn2017
Replied by nordstoyn2017 on topic Confirmation of registration
And forget about the issue. We have a problem with mail to the client. The client is sent a letter where the subject of the message is changed, and the message body is not present, although in all settings changed. What could be the problem?
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2025 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.