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

#   payment plugin without redirection

##

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

Less More

- Posts: 26
- Thank you received: 0
-
-

10 years 7 months ago [\#237406](#237406) by [issa.mouawad](/forum/user/38443-issa-mouawad "View issa.mouawad's Profile")  *[payment plugin without redirection](/forum/29-payment-methods/883988-payment-plugin-without-redirection#237406 "-- HikaShop version -- : 2.6.2 -- Joomla version -- : 3.4.8  Hi , I am developing a payment plugin that performs RESTful API calls , (payment is handled within the same page). I have learned that Order status will change to (confirmed) when the payment notification url is used, but I don't have this at all in my plugin (due to the fact that it doesn't use a redirection) so I want a manual approach to change the order status (and thus, have the confirmation email sent) , I tried to call the modifyOrder function with 'confirmed' status, but it doesn't change at all, it remains in the 'created' state any help on how to force the order status update?")* was created by *[issa.mouawad](/forum/user/38443-issa-mouawad "View issa.mouawad's Profile")*

-- HikaShop version -- : 2.6.2
-- Joomla version -- : 3.4.8

Hi ,
I am developing a payment plugin that performs RESTful API calls , (payment is handled within the same page).
I have learned that Order status will change to (confirmed) when the payment notification url is used, but I don't have this at all in my plugin (due to the fact that it doesn't use a redirection)
so I want a manual approach to change the order status (and thus, have the confirmation email sent) , I tried to call the modifyOrder function with 'confirmed' status, but it doesn't change at all, it remains in the 'created' state
any help on how to force the order status update?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84ODM5ODgtcGF5bWVudC1wbHVnaW4td2l0aG91dC1yZWRpcmVjdGlvbj90bXBsPW1hcmtkb3du) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86593
- Thank you received: 14334
-
-

10 years 7 months ago [\#237407](#237407) 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 without redirection](/forum/29-payment-methods/883988-payment-plugin-without-redirection#237407 "-- HikaShop version -- : 2.6.2 -- Joomla version -- : 3.4.8  Hi , I am developing a payment plugin that performs RESTful API calls , (payment is handled within the same page). I have learned that Order status will change to (confirmed) when the payment notification url is used, but I don't have this at all in my plugin (due to the fact that it doesn't use a redirection) so I want a manual approach to change the order status (and thus, have the confirmation email sent) , I tried to call the modifyOrder function with 'confirmed' status, but it doesn't change at all, it remains in the 'created' state any help on how to force the order status update?")*

Hi,

You can look at the PayPal Pro payment plugin for an example of that. It sends a call to the API in the onBeforeOrderCreate trigger and directly confirms the order in the onAfterOrderCreate function with the modifyOrder function.

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

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

Less More

- Posts: 26
- Thank you received: 0
-
-

10 years 7 months ago [\#237567](#237567) by [issa.mouawad](/forum/user/38443-issa-mouawad "View issa.mouawad's Profile")  Replied by *[issa.mouawad](/forum/user/38443-issa-mouawad "View issa.mouawad's Profile")* on topic *[payment plugin without redirection](/forum/29-payment-methods/883988-payment-plugin-without-redirection#237567 "-- HikaShop version -- : 2.6.2 -- Joomla version -- : 3.4.8  Hi , I am developing a payment plugin that performs RESTful API calls , (payment is handled within the same page). I have learned that Order status will change to (confirmed) when the payment notification url is used, but I don't have this at all in my plugin (due to the fact that it doesn't use a redirection) so I want a manual approach to change the order status (and thus, have the confirmation email sent) , I tried to call the modifyOrder function with 'confirmed' status, but it doesn't change at all, it remains in the 'created' state any help on how to force the order status update?")*

> nicolas wrote: Hi,
>
> You can look at the PayPal Pro payment plugin for an example of that. It sends a call to the API in the onBeforeOrderCreate trigger and directly confirms the order in the onAfterOrderCreate function with the modifyOrder function.

Thanks for reply,
it actually didn't solve my problem, the order status is still 'created' not 'confirmed'
I have followed PaypalPro flow, in onBeforeOrderCreate I am sending the API request and validating the result, and in onAfterOrderCreate, I am configuring the email(the same of PayPal Pro) and modifying the order with the same call (modifyOrder)
but with no help, I even tried activating PayPal Pro (after little modification to allow null payments) the order is also hanging in the created state

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84ODM5ODgtcGF5bWVudC1wbHVnaW4td2l0aG91dC1yZWRpcmVjdGlvbj90bXBsPW1hcmtkb3du) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86593
- Thank you received: 14334
-
-

10 years 7 months ago [\#237575](#237575) 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 without redirection](/forum/29-payment-methods/883988-payment-plugin-without-redirection#237575 "-- HikaShop version -- : 2.6.2 -- Joomla version -- : 3.4.8  Hi , I am developing a payment plugin that performs RESTful API calls , (payment is handled within the same page). I have learned that Order status will change to (confirmed) when the payment notification url is used, but I don't have this at all in my plugin (due to the fact that it doesn't use a redirection) so I want a manual approach to change the order status (and thus, have the confirmation email sent) , I tried to call the modifyOrder function with 'confirmed' status, but it doesn't change at all, it remains in the 'created' state any help on how to force the order status update?")*

Hi,

Well, I can only think of a problem in your code or in the settings of the Order section of the HikaShop configuration or the settings page of your payment plugin.

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

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

Less More

- Posts: 26
- Thank you received: 0
-
-

10 years 7 months ago [\#237652](#237652) by [issa.mouawad](/forum/user/38443-issa-mouawad "View issa.mouawad's Profile")  Replied by *[issa.mouawad](/forum/user/38443-issa-mouawad "View issa.mouawad's Profile")* on topic *[payment plugin without redirection](/forum/29-payment-methods/883988-payment-plugin-without-redirection#237652 "-- HikaShop version -- : 2.6.2 -- Joomla version -- : 3.4.8  Hi , I am developing a payment plugin that performs RESTful API calls , (payment is handled within the same page). I have learned that Order status will change to (confirmed) when the payment notification url is used, but I don't have this at all in my plugin (due to the fact that it doesn't use a redirection) so I want a manual approach to change the order status (and thus, have the confirmation email sent) , I tried to call the modifyOrder function with 'confirmed' status, but it doesn't change at all, it remains in the 'created' state any help on how to force the order status update?")*

thank you, my problem is solved,
I was not calling modifyOrder in "onBeforeOrderCreate" method, I was only calling it after the order is created,

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84ODM5ODgtcGF5bWVudC1wbHVnaW4td2l0aG91dC1yZWRpcmVjdGlvbj90bXBsPW1hcmtkb3du) 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.050 seconds

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