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

#  Profile for anvayatech

##

[![anvayatech's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/26599-anvayatech "View anvayatech's Profile")

**[ Offline](/forum/user/26599-anvayatech)**

- **User Type:** User

- **Register Date:** 13 Aug 2013
- **Last login:** 13 years 2 months ago
- **Time Zone:**  UTC +0:00
- **Local Time:** 23:08

- **Posts:** 2
- **Profile views:** 37

- **Gender:** Unknown
- **Birthdate:** Unknown

- Posts

#  anvayatech's recent posts  (2 messages )

All Since last visit 4 Hours 8 Hours 12 Hours 24 Hours 48 Hours Week Month Year     All Since last visit 4 Hours 8 Hours 12 Hours 24 Hours 48 Hours Week Month Year

| <a id="forumtop"> </a> [  ](#forumbottom) | Subject | Replies / Views | Last Post | <a id="forumbottom"> </a> [   ](#forumtop) |
|---|---|---|---|---|
| [](/forum/31-development/861084-further-action-after-successful-payment#118815) | [Further action after successful payment](/forum/31-development/861084-further-action-after-successful-payment#118815 "-- HikaShop version -- : 2.2.0 -- Joomla version -- : 2.5.8 -- PHP version -- : 5.3.2  We are trying to ascertain the best method to call custom code after successful user payment.. The code needs to be called only when the order has successfully paid for. We are selling digital goods and need to setup the user's access via API once he has completed his payment.  As part of that, we also need to either modify the email that goes out to the customer or send another one with the access details.  We looked into the API and there are certain events mentioned like :  onAfterOrderConfirm(&amp;$order,&amp;$methods,$method&#95;id) onAfterOrderUpdate(&amp;$order,&amp;$send&#95;email)  We are not sure if these are called after payment, the document seems to suggest that the orderConfirm method is actually used by the payment plugins to redirect to payment page.  Please advise as to the best approach to achieve this.")        Category: [Development](/forum/31-development "If you are developping a plugin for Hikashop or customizing our component, this is the board to be.")     Topic started 13 years 2 months ago, by [anvayatech](/forum/user/26599-anvayatech "View anvayatech's Profile")       [Last Post](/forum/31-development/861084-further-action-after-successful-payment#118835 "Hi,  You have to use this code in an HikaShop plugin. No necessary a payment plugin, you can just create a classical JPlugin under the group &quot;hikashop&quot;. onAfterOrderConfirm is a special payment trigger which is call only for the selected payment method. You can use onAfterOrderCreate and onAfterOrderUpdate in a classical hikashop plugin without any problem.  If you want to create your own payment plugin, using a structure based on HikashopPaymentPlugin will be useful because all the generic tasks for payments are already there (same thing for shipping plugins and HikashopShippingPlugin).  Regards,") 13 years 2 months ago     by [Jerome](/forum/user/80-jerome "View Jerome's Profile") | Replies:3  Views:1187 | [Last Post](/forum/31-development/861084-further-action-after-successful-payment#118835 "Hi,  You have to use this code in an HikaShop plugin. No necessary a payment plugin, you can just create a classical JPlugin under the group &quot;hikashop&quot;. onAfterOrderConfirm is a special payment trigger which is call only for the selected payment method. You can use onAfterOrderCreate and onAfterOrderUpdate in a classical hikashop plugin without any problem.  If you want to create your own payment plugin, using a structure based on HikashopPaymentPlugin will be useful because all the generic tasks for payments are already there (same thing for shipping plugins and HikashopShippingPlugin).  Regards,") by [Jerome](/forum/user/80-jerome "View Jerome's Profile")      13 years 2 months ago |
| [](/forum/31-development/861084-further-action-after-successful-payment#118759) | [Further action after successful payment](/forum/31-development/861084-further-action-after-successful-payment#118759 "-- HikaShop version -- : 2.2.0 -- Joomla version -- : 2.5.8 -- PHP version -- : 5.3.2  We are trying to ascertain the best method to call custom code after successful user payment.. The code needs to be called only when the order has successfully paid for. We are selling digital goods and need to setup the user's access via API once he has completed his payment.  As part of that, we also need to either modify the email that goes out to the customer or send another one with the access details.  We looked into the API and there are certain events mentioned like :  onAfterOrderConfirm(&amp;$order,&amp;$methods,$method&#95;id) onAfterOrderUpdate(&amp;$order,&amp;$send&#95;email)  We are not sure if these are called after payment, the document seems to suggest that the orderConfirm method is actually used by the payment plugins to redirect to payment page.  Please advise as to the best approach to achieve this.")        Category: [Development](/forum/31-development "If you are developping a plugin for Hikashop or customizing our component, this is the board to be.")     Topic started 13 years 2 months ago, by [anvayatech](/forum/user/26599-anvayatech "View anvayatech's Profile")       [Last Post](/forum/31-development/861084-further-action-after-successful-payment#118835 "Hi,  You have to use this code in an HikaShop plugin. No necessary a payment plugin, you can just create a classical JPlugin under the group &quot;hikashop&quot;. onAfterOrderConfirm is a special payment trigger which is call only for the selected payment method. You can use onAfterOrderCreate and onAfterOrderUpdate in a classical hikashop plugin without any problem.  If you want to create your own payment plugin, using a structure based on HikashopPaymentPlugin will be useful because all the generic tasks for payments are already there (same thing for shipping plugins and HikashopShippingPlugin).  Regards,") 13 years 2 months ago     by [Jerome](/forum/user/80-jerome "View Jerome's Profile") | Replies:3  Views:1187 | [Last Post](/forum/31-development/861084-further-action-after-successful-payment#118835 "Hi,  You have to use this code in an HikaShop plugin. No necessary a payment plugin, you can just create a classical JPlugin under the group &quot;hikashop&quot;. onAfterOrderConfirm is a special payment trigger which is call only for the selected payment method. You can use onAfterOrderCreate and onAfterOrderUpdate in a classical hikashop plugin without any problem.  If you want to create your own payment plugin, using a structure based on HikashopPaymentPlugin will be useful because all the generic tasks for payments are already there (same thing for shipping plugins and HikashopShippingPlugin).  Regards,") by [Jerome](/forum/user/80-jerome "View Jerome's Profile")      13 years 2 months ago |

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

Time to create page: 0.107 seconds

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

[](#top)
