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

#   Source file for the order confirmation page

##

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

Less More

- Posts: 4
- Thank you received: 0
-
-

13 years 6 months ago [\#100220](#100220) by [themicp](/forum/user/17127-themicp "View themicp's Profile")  *[Source file for the order confirmation page](/forum/4-how-to/80682-source-file-for-the-order-confirmation-page#100220 "Hello, I'm intergrating a new payment method inside Hikashop. The currently available method is Paypal. I noticed that after the payment is done on Paypal, somehow ( maybe a POST? ) there is a callback on the site that confirms and updates the order status and sends an e-mail to the user. I need to find this file or the call method, so my payment method will use it the same way to confirm an order. Which file is it?  Thank you.")* was created by *[themicp](/forum/user/17127-themicp "View themicp's Profile")*

Hello,
I'm intergrating a new payment method inside Hikashop. The currently available method is Paypal.
I noticed that after the payment is done on Paypal, somehow ( maybe a POST? ) there is a callback on the site that confirms and updates the order status and sends an e-mail to the user.
I need to find this file or the call method, so my payment method will use it the same way to confirm an order.
Which file is it?

Thank you.

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

13 years 6 months ago [\#100237](#100237) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Source file for the order confirmation page](/forum/4-how-to/80682-source-file-for-the-order-confirmation-page#100237 "Hello, I'm intergrating a new payment method inside Hikashop. The currently available method is Paypal. I noticed that after the payment is done on Paypal, somehow ( maybe a POST? ) there is a callback on the site that confirms and updates the order status and sends an e-mail to the user. I need to find this file or the call method, so my payment method will use it the same way to confirm an order. Which file is it?  Thank you.")*

Hi,
It's the "onPaymentNotification" method which is called through your notify URL that you'll have to send to your payment gateway when you send your payment request.
Hope this will help you a little.

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

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

Less More

- Posts: 4
- Thank you received: 0
-
-

13 years 6 months ago [\#100281](#100281) by [themicp](/forum/user/17127-themicp "View themicp's Profile")  Replied by *[themicp](/forum/user/17127-themicp "View themicp's Profile")* on topic *[Source file for the order confirmation page](/forum/4-how-to/80682-source-file-for-the-order-confirmation-page#100281 "Hello, I'm intergrating a new payment method inside Hikashop. The currently available method is Paypal. I noticed that after the payment is done on Paypal, somehow ( maybe a POST? ) there is a callback on the site that confirms and updates the order status and sends an e-mail to the user. I need to find this file or the call method, so my payment method will use it the same way to confirm an order. Which file is it?  Thank you.")*

Currently I'm trying to figure out how the paypal gateway works to do it the same way.
If there is a similar method for paypal, where is it defined and then sent to the paypal gateway?

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

13 years 6 months ago [\#100290](#100290) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Source file for the order confirmation page](/forum/4-how-to/80682-source-file-for-the-order-confirmation-page#100290 "Hello, I'm intergrating a new payment method inside Hikashop. The currently available method is Paypal. I noticed that after the payment is done on Paypal, somehow ( maybe a POST? ) there is a callback on the site that confirms and updates the order status and sends an e-mail to the user. I need to find this file or the call method, so my payment method will use it the same way to confirm an order. Which file is it?  Thank you.")*

I didn't really understood your question but I'll try to explain it to you :
1. **REQUEST** : In the **onAfterOrderConfirm** method, you'll have to gather all required information, and send them to the payment gateway (through the _end.php file).
2. **RESPONSE** : In the **onPaymentNotification** method, you'll have to check the response of the payment gateway and then send an email/change your order status regarding the response.

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

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

Less More

- Posts: 4
- Thank you received: 0
-
-

13 years 6 months ago [\#100337](#100337) by [themicp](/forum/user/17127-themicp "View themicp's Profile")  Replied by *[themicp](/forum/user/17127-themicp "View themicp's Profile")* on topic *[Source file for the order confirmation page](/forum/4-how-to/80682-source-file-for-the-order-confirmation-page#100337 "Hello, I'm intergrating a new payment method inside Hikashop. The currently available method is Paypal. I noticed that after the payment is done on Paypal, somehow ( maybe a POST? ) there is a callback on the site that confirms and updates the order status and sends an e-mail to the user. I need to find this file or the call method, so my payment method will use it the same way to confirm an order. Which file is it?  Thank you.")*

Right. And my question is, where can I find the file that handles the response from the payment gateway?
In the case of paypal, when you pay the amount and charge your account, what is happening? Which file is called and how the order status is changed to "Confirmed"?

Thank you for your help so far.

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

13 years 6 months ago [\#100349](#100349) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Source file for the order confirmation page](/forum/4-how-to/80682-source-file-for-the-order-confirmation-page#100349 "Hello, I'm intergrating a new payment method inside Hikashop. The currently available method is Paypal. I noticed that after the payment is done on Paypal, somehow ( maybe a POST? ) there is a callback on the site that confirms and updates the order status and sends an e-mail to the user. I need to find this file or the call method, so my payment method will use it the same way to confirm an order. Which file is it?  Thank you.")*

1. You'll find this file through your payment plugin directory, for example for paypal the file is **paypal.php**.

2. In the case of paypal, when you pay the amount and charge your account the file which is called is your **paypal.php** file, and your order status is changed to "Comfirmed" through the **onPaymentNotification** method after that you checked the paypal response.

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

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

Less More

- Posts: 4
- Thank you received: 0
-
-

13 years 6 months ago [\#100408](#100408) by [themicp](/forum/user/17127-themicp "View themicp's Profile")  Replied by *[themicp](/forum/user/17127-themicp "View themicp's Profile")* on topic *[Source file for the order confirmation page](/forum/4-how-to/80682-source-file-for-the-order-confirmation-page#100408 "Hello, I'm intergrating a new payment method inside Hikashop. The currently available method is Paypal. I noticed that after the payment is done on Paypal, somehow ( maybe a POST? ) there is a callback on the site that confirms and updates the order status and sends an e-mail to the user. I need to find this file or the call method, so my payment method will use it the same way to confirm an order. Which file is it?  Thank you.")*

The file paypal.php is exactly what I was looking for, thank you!

If there is anything else related to this, I'll let you know.

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

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

[](#top)
