Payment plugin

  • Posts: 27
  • Thank you received: 2
  • Hikashop Business
2 weeks 3 days ago #360710

-- 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 ?

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

  • Posts: 81677
  • Thank you received: 13102
  • MODERATOR
2 weeks 3 days ago #360716

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.

The following user(s) said Thank You: demoisellegol

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

Time to create page: 0.057 seconds
Powered by Kunena Forum