[Skip to main content](#vessel-content)

#   Payment plugin

##

- **[demoisellegol](/forum/user/79354-demoisellegol "View demoisellegol's Profile")**
- [![demoisellegol's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/79354-demoisellegol "View demoisellegol's Profile") Topic Author
- [ Offline](/forum/user/79354-demoisellegol)

Less More

- Posts: 61
- Thank you received: 3
-
-

2 years 6 months ago [\#360710](#360710) by [demoisellegol](/forum/user/79354-demoisellegol "View demoisellegol's Profile")  *[Payment plugin](/forum/29-payment-methods/908103-payment-plugin#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 ?")* was created by *[demoisellegol](/forum/user/79354-demoisellegol "View demoisellegol's Profile")*

-- 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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy85MDgxMDMtcGF5bWVudC1wbHVnaW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

2 years 6 months ago [\#360716](#360716) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Payment plugin](/forum/29-payment-methods/908103-payment-plugin#360716 "-- 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 ?")*

Hi,

Normally, a payment plugin will implement the event onAfterOrderConfirm from HikaShop's payment API:
[ www.hikashop.com/support/documentation/6...#onAfterOrderConfirm](https://www.hikashop.com/support/documentation/62-hikashop-developer-documentation.html#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](/forum/user/79354-demoisellegol "View demoisellegol's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy85MDgxMDMtcGF5bWVudC1wbHVnaW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.057 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
