- Posts: 108
- Thank you received: 2
onPaymentNotification() - Banktransfer
15 years 2 months ago #21564
by bars92
onPaymentNotification() - Banktransfer was created by bars92
hey, I am using the banktransfer method to pay with online credit card and i need the onPaymentNotification() to verify the status.
So i copied the function from paypal.php and pasted it at banktransfer.php after the onAfterOrderConfirm(), but when i am trying to go to the URL mysite.com/index.php?option=com_hikashop...pl=component&lang=he
it gives me an error:
" Fatal error: Call to undefined method plgHikashoppaymentBanktransfer::onPaymentNotification() in .../components/com_hikashop/controllers/checkout.php on line 905 "
means i did not define the function, what do i do to make it work as at the paypal plugin?
So i copied the function from paypal.php and pasted it at banktransfer.php after the onAfterOrderConfirm(), but when i am trying to go to the URL mysite.com/index.php?option=com_hikashop...pl=component&lang=he
it gives me an error:
" Fatal error: Call to undefined method plgHikashoppaymentBanktransfer::onPaymentNotification() in .../components/com_hikashop/controllers/checkout.php on line 905 "
means i did not define the function, what do i do to make it work as at the paypal plugin?
Please Log in or Create an account to join the conversation.
15 years 2 months ago #21566
by nicolas
Replied by nicolas on topic Re: onPaymentNotification() - Banktransfer
That's all there is to it. If php doesn't find the function onPaymentNotification in the class plgHikashoppaymentBanktransfer in the file plugins/hikashoppayment/banktransfer.php it means that you didn't copy/pasted the code there.
Please Log in or Create an account to join the conversation.
15 years 2 months ago #21575
by bars92
Replied by bars92 on topic Re: onPaymentNotification() - Banktransfer
Silly by me the class ended before the function so it did not count as class method.
Thanks again
Thanks again
Please Log in or Create an account to join the conversation.
Time to create page: 0.187 seconds