Deposit Payment Error

  • Richard
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • I am a freelance web developer
More
5 years 10 months ago #134940 by Richard
Deposit Payment Error was created by Richard
Hi,

I am developing a payment plugin for EB and everything was working just fine until I ran into a problem when I wanted to test for the deposit feature of the EB extension.

The initial deposit payment (50% of amount) was successfully processed and recorded.

But when I click on the [Make Payment] button on the registration history page to complete the remainder/due payment, the page keep displaying error message "Invalid Registration Record."

However, when I manually navigate to "SITE_URL/index.php?option=com_eventbooking&view=payment&registration_code=REGISTRATION_CODE", the page displayed normal and I was able to make and process the remainder/due payment.

Please, kindly assist me to know what is causing this problem.

Regards
Rich
---

Please Log in or Create an account to join the conversation.

More
5 years 9 months ago #134982 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Deposit Payment Error
Hi Rich

I'm unsure about this error. Maybe you can try to look at components/com_eventbooking/view/payment/html.php and try to debug it to see what's wrong?

Maybe registration_code is wrong somehow?

Tuan

Please Log in or Create an account to join the conversation.

  • Richard
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • I am a freelance web developer
More
5 years 9 months ago #134988 by Richard
Replied by Richard on topic Deposit Payment Error
@ Tuan,

Thanks for your response.

I have tried to troubleshoot the error myself.

And I discovered that the below line of code in this file [ components/com_eventbooking/view/payment/html.php ] is not catching any registration_code input because that input is empty.

$registrationCode = $this->input->getString('registration_code');

This I think is the genesis of the problem.

Then, the highlighted portion in the code below in this file [ components/com_eventbooking/themes/default/history/default.php ] is responsible for generating the Make Payment button link.

if ($hasOnlinePaymentMethods)
{
?>
<a class="<?php echo $btnPrimary; ?>" href="<?php echo JRoute::_('index.php?option=com_eventbooking&view=payment&registration_code=' . $row->registration_code . '&Itemid=' . $this->Itemid); ?>"><?php echo JText::_('EB_MAKE_PAYMENT'); ?></a>
<?php
}

So, the highlighted portion in the above code is where the original problem lies. I believe the JRoute::_() method is responsible for the missing registration_code input in this file components/com_eventbooking/view/payment/html.php which is causing the problem.

So, what do you suggest as solution to this problem?

Regards,
Rich

Please Log in or Create an account to join the conversation.

More
5 years 9 months ago #135001 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Deposit Payment Error
Hi Rich

I'm unsure. Maybe it causes by wrong cached URL. Please use this tool eventbookingdoc.joomservices.com/tools#tools-purge-urls , then try again to see if it solves the issue?

Tuan

Please Log in or Create an account to join the conversation.

  • Richard
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • I am a freelance web developer
More
5 years 9 months ago - 5 years 9 months ago #135066 by Richard
Replied by Richard on topic Deposit Payment Error
@ Tuan,

Thanks for your response.

I tried the Purge Urls link and it still didn't solve the problem.

However, I altered the the code in the history.php file as follows to get it working at least; though, with raw url structure.

if ($hasOnlinePaymentMethods)
{
$siteUrl = JUri::base();
?>
<a class="<?php echo $btnPrimary; ?>" href="<?php echo $siteUrl . 'index.php?option=com_eventbooking&view=payment&registration_code=' . $row->registration_code . '&Itemid=' . $this->Itemid; ?>"><?php echo JText::_('EB_MAKE_PAYMENT'); ?></a>
<?php
}

---
Last edit: 5 years 9 months ago by Richard.

Please Log in or Create an account to join the conversation.

More
5 years 9 months ago #135097 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Deposit Payment Error
It's still not clear to me while the sef link is not working. Will check it more

Tuan

Please Log in or Create an account to join the conversation.

More
5 years 9 months ago #135216 by Donal
Replied by Donal on topic Deposit Payment Error
Double check the link from the Make Payment button. We had an issue in the past where &reg got changed to the R (Registered Trademark) symbol in the URL.

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc