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

#   Hit a url after payment status confirmed

##

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

Less More

- Posts: 3
- Thank you received: 0
-
-

11 years 1 month ago [\#213550](#213550) by [aksaxena](/forum/user/38686-aksaxena "View aksaxena's Profile")  *[Hit a url after payment status confirmed](/forum/27-checkout/879147-hit-a-url-after-payment-status-confirmed#213550 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 2.5.27 -- PHP version -- : 5.4.4  Hello,  I need to hit a url after payment is confirmed, i am using paypal for payment. I have created a payment plugin and using method 'onAfterOrderConfirm' but this method is not working even order is confirmed and payment done. I have attached plugin main file 'dt&#95;hikashop.php'. Please help me to shortout this.  Thanks.")* was created by *[aksaxena](/forum/user/38686-aksaxena "View aksaxena's Profile")*

-- HikaShop version -- : 2.5.0
-- Joomla version -- : 2.5.27
-- PHP version -- : 5.4.4

Hello,

I need to hit a url after payment is confirmed, i am using paypal for payment.
I have created a payment plugin and using method 'onAfterOrderConfirm' but this method is not working even order is confirmed and payment done.
I have attached plugin main file 'dt_hikashop.php'.
Please help me to shortout this.

Thanks.

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

11 years 1 month ago [\#213559](#213559) 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 *[Hit a url after payment status confirmed](/forum/27-checkout/879147-hit-a-url-after-payment-status-confirmed#213559 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 2.5.27 -- PHP version -- : 5.4.4  Hello,  I need to hit a url after payment is confirmed, i am using paypal for payment. I have created a payment plugin and using method 'onAfterOrderConfirm' but this method is not working even order is confirmed and payment done. I have attached plugin main file 'dt&#95;hikashop.php'. Please help me to shortout this.  Thanks.")*

Hello,

> I need to hit a url after payment is confirmed

Generally, we use the "onPaymentNotification" function to do the treatment after the payment is done. So after their payment, your customers will have to be redirected to an URL which will call that function.

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

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

Less More

- Posts: 3
- Thank you received: 0
-
-

11 years 1 month ago [\#213663](#213663) by [aksaxena](/forum/user/38686-aksaxena "View aksaxena's Profile")  Replied by *[aksaxena](/forum/user/38686-aksaxena "View aksaxena's Profile")* on topic *[Hit a url after payment status confirmed](/forum/27-checkout/879147-hit-a-url-after-payment-status-confirmed#213663 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 2.5.27 -- PHP version -- : 5.4.4  Hello,  I need to hit a url after payment is confirmed, i am using paypal for payment. I have created a payment plugin and using method 'onAfterOrderConfirm' but this method is not working even order is confirmed and payment done. I have attached plugin main file 'dt&#95;hikashop.php'. Please help me to shortout this.  Thanks.")*

Thanks for the quick reply.

I need to append order data in URL like invoice=112&amp;mc_gross=-15.00&amp;item_number1=&amp;item_number2=Tek.... that will received from paypal after payment.
So how i can get return paypal data for an order in "onPaymentNotification" function.

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

11 years 1 month ago [\#213680](#213680) 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 *[Hit a url after payment status confirmed](/forum/27-checkout/879147-hit-a-url-after-payment-status-confirmed#213680 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 2.5.27 -- PHP version -- : 5.4.4  Hello,  I need to hit a url after payment is confirmed, i am using paypal for payment. I have created a payment plugin and using method 'onAfterOrderConfirm' but this method is not working even order is confirmed and payment done. I have attached plugin main file 'dt&#95;hikashop.php'. Please help me to shortout this.  Thanks.")*

Hello,
Using this kind of URL will do the job : Code:

HIKASHOP_LIVE . 'index.php?option=com_hikashop&amp;ctrl=checkout&amp;task=notify&amp;notif_payment=YOURPAYMENTMETHODNAME&amp;tmpl=component&amp;ORDER_DATA

HIKASHOP_LIVE is just a constant containing your website address.

YOURPAYMENTMETHODNAME : don't forget to replace it by your payment plugin name.

ORDER_DATA : your order data

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

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

Less More

- Posts: 3
- Thank you received: 0
-
-

11 years 1 month ago [\#213798](#213798) by [aksaxena](/forum/user/38686-aksaxena "View aksaxena's Profile")  Replied by *[aksaxena](/forum/user/38686-aksaxena "View aksaxena's Profile")* on topic *[Hit a url after payment status confirmed](/forum/27-checkout/879147-hit-a-url-after-payment-status-confirmed#213798 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 2.5.27 -- PHP version -- : 5.4.4  Hello,  I need to hit a url after payment is confirmed, i am using paypal for payment. I have created a payment plugin and using method 'onAfterOrderConfirm' but this method is not working even order is confirmed and payment done. I have attached plugin main file 'dt&#95;hikashop.php'. Please help me to shortout this.  Thanks.")*

Hello,

Thanks for your advise but i would like to know some other things.

Let me explain, Actually when we process any order then after making the payment through the PayPal, The paypal returns some data after successful payment, I need to append that data (Which we got from pay-pal after successful payment)as i have already mentioned above.

As per your suggestion, i need to use "onPaymentNotification" for hitting the URL after confirm payment but i want to know how i can access return pay-pal data here so i can append the desired data in to the URL. Please advise.

Many thanks in advance.

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

Less More

- Posts: 86290
- Thank you received: 14267
-
-

11 years 1 month ago [\#213815](#213815) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Hit a url after payment status confirmed](/forum/27-checkout/879147-hit-a-url-after-payment-status-confirmed#213815 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 2.5.27 -- PHP version -- : 5.4.4  Hello,  I need to hit a url after payment is confirmed, i am using paypal for payment. I have created a payment plugin and using method 'onAfterOrderConfirm' but this method is not working even order is confirmed and payment done. I have attached plugin main file 'dt&#95;hikashop.php'. Please help me to shortout this.  Thanks.")*

Hi,

You can access the data in the PHP variable $_REQUEST in that function.

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

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

[](#top)
