- Posts: 61
- Thank you received: 3
Payment plugin
- demoisellegol
-
Topic Author
- Offline
Less
More
2 years 4 months ago #360710
by demoisellegol
Payment plugin was created by demoisellegol
-- HikaShop version -- : 5.0.4
-- Joomla version -- : 5.1.0
-- PHP version -- : 8.1
hi
i have created a custom payment plugin.
when i cancel an order and try to re-pay it from the PAY NOW feature, i get the following error
The payment method XXXX does not handle payments after the order has been created
how can i fix this ?
-- Joomla version -- : 5.1.0
-- PHP version -- : 8.1
hi
i have created a custom payment plugin.
when i cancel an order and try to re-pay it from the PAY NOW feature, i get the following error
The payment method XXXX does not handle payments after the order has been created
how can i fix this ?
Please Log in or Create an account to join the conversation.
2 years 4 months ago #360716
by nicolas
Replied by nicolas on topic Payment plugin
Hi,
Normally, a payment plugin will implement the event onAfterOrderConfirm from HikaShop's payment API:
www.hikashop.com/support/documentation/6...#onAfterOrderConfirm
In this event, it will get the order information and process it in order to generate some HTML code (for example, the HTML necessary to redirect the user to the payment gateway at the end of the checkout).
This error message will appear if your plugin does not output any HTML when this function of the payment plugin is called or if it doesn't have this function.
Normally, a payment plugin will implement the event onAfterOrderConfirm from HikaShop's payment API:
www.hikashop.com/support/documentation/6...#onAfterOrderConfirm
In this event, it will get the order information and process it in order to generate some HTML code (for example, the HTML necessary to redirect the user to the payment gateway at the end of the checkout).
This error message will appear if your plugin does not output any HTML when this function of the payment plugin is called or if it doesn't have this function.
The following user(s) said Thank You: demoisellegol
Please Log in or Create an account to join the conversation.
Time to create page: 0.166 seconds