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

#   Need to get payment plugin parameters without orde

##

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

Less More

- Posts: 5
- Thank you received: 0
-
-

11 years 1 week ago [\#217559](#217559) by [aravindarao](/forum/user/38931-aravindarao "View aravindarao's Profile")  *[Need to get payment plugin parameters without orde](/forum/29-payment-methods/879900-need-to-get-payment-plugin-parameters-without-orde#217559 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.4 -- Error-message(debug-mod must be tuned on) -- : None  Hi,  I'm implementing a payment plugin for CCAvenue. I'm handling the response in onPaymentNotification method of the plugin. The response from the gateway is encoded with a key. The key is available in my configuration of the payment plugin. How can I read the payment param for my plugin?  Other examples use loadPaymentParms with order id. Unfortunately I do not have the order ID in the URL. Some issues in the way they handle return url.  Can you suggest some other method that I can use to read parameters of the plugin without using the order id (or anything else for that matter)?  Thanks and regards, Aravinda")* was created by *[aravindarao](/forum/user/38931-aravindarao "View aravindarao's Profile")*

-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.4
-- Error-message(debug-mod must be tuned on) -- : None

Hi,

I'm implementing a payment plugin for CCAvenue. I'm handling the response in onPaymentNotification method of the plugin. The response from the gateway is encoded with a key. The key is available in my configuration of the payment plugin. How can I read the payment param for my plugin?

Other examples use loadPaymentParms with order id. Unfortunately I do not have the order ID in the URL. Some issues in the way they handle return url.

Can you suggest some other method that I can use to read parameters of the plugin without using the order id (or anything else for that matter)?

Thanks and regards,
Aravinda

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

11 years 1 week ago [\#217579](#217579) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Need to get payment plugin parameters without orde](/forum/29-payment-methods/879900-need-to-get-payment-plugin-parameters-without-orde#217579 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.4 -- Error-message(debug-mod must be tuned on) -- : None  Hi,  I'm implementing a payment plugin for CCAvenue. I'm handling the response in onPaymentNotification method of the plugin. The response from the gateway is encoded with a key. The key is available in my configuration of the payment plugin. How can I read the payment param for my plugin?  Other examples use loadPaymentParms with order id. Unfortunately I do not have the order ID in the URL. Some issues in the way they handle return url.  Can you suggest some other method that I can use to read parameters of the plugin without using the order id (or anything else for that matter)?  Thanks and regards, Aravinda")*

Hi,

I don't know how you give the order notification ; but they are two kind of solution.
- Give the "order_id" in the parameter.
- Use a short url (a php in the root of your joomla) where it will link to one plugin method id.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 5
- Thank you received: 0
-
-

11 years 1 week ago [\#217585](#217585) by [aravindarao](/forum/user/38931-aravindarao "View aravindarao's Profile")  Replied by *[aravindarao](/forum/user/38931-aravindarao "View aravindarao's Profile")* on topic *[Need to get payment plugin parameters without orde](/forum/29-payment-methods/879900-need-to-get-payment-plugin-parameters-without-orde#217585 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.4 -- Error-message(debug-mod must be tuned on) -- : None  Hi,  I'm implementing a payment plugin for CCAvenue. I'm handling the response in onPaymentNotification method of the plugin. The response from the gateway is encoded with a key. The key is available in my configuration of the payment plugin. How can I read the payment param for my plugin?  Other examples use loadPaymentParms with order id. Unfortunately I do not have the order ID in the URL. Some issues in the way they handle return url.  Can you suggest some other method that I can use to read parameters of the plugin without using the order id (or anything else for that matter)?  Thanks and regards, Aravinda")*

Hello Jerome,

I'm able to get the order notification since I use the short URL (using notify task and name of my plugin as parameter). And it is also firing the onPaymentNotification method. Within that method, I need to read the plugin parameters. this_payment_params is not initialized when that method is called.

I'm also able to get the response from ccavenue in that method. However to process that response, I need to decrypt it with a key. This key is is stored as plugin parameter. Hence I need to read the plugin parameter.

Regards,
Aravinda

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

11 years 1 week ago [\#217603](#217603) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Need to get payment plugin parameters without orde](/forum/29-payment-methods/879900-need-to-get-payment-plugin-parameters-without-orde#217603 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.4 -- Error-message(debug-mod must be tuned on) -- : None  Hi,  I'm implementing a payment plugin for CCAvenue. I'm handling the response in onPaymentNotification method of the plugin. The response from the gateway is encoded with a key. The key is available in my configuration of the payment plugin. How can I read the payment param for my plugin?  Other examples use loadPaymentParms with order id. Unfortunately I do not have the order ID in the URL. Some issues in the way they handle return url.  Can you suggest some other method that I can use to read parameters of the plugin without using the order id (or anything else for that matter)?  Thanks and regards, Aravinda")*

Hi,

Like I wrote ; you can use the "short notify url" using a PHP file in the root ; but that method won't load the plugin parameters for you. You still need to read the method from the URL parameters and load his configuration.
The other solution is to not create a "multiple" plugin ; which means that you could just have one single configuration for the plugin in the database ; which make the reading of the configuration easier.

You can use the function "pluginParams($id)".
If you have one single instance ; you can just pass "0" for the $id ; otherwise you need to give the ID of the payment configuration instance.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 5
- Thank you received: 0
-
-

11 years 1 week ago [\#217681](#217681) by [aravindarao](/forum/user/38931-aravindarao "View aravindarao's Profile")  Replied by *[aravindarao](/forum/user/38931-aravindarao "View aravindarao's Profile")* on topic *[Need to get payment plugin parameters without orde](/forum/29-payment-methods/879900-need-to-get-payment-plugin-parameters-without-orde#217681 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.4 -- Error-message(debug-mod must be tuned on) -- : None  Hi,  I'm implementing a payment plugin for CCAvenue. I'm handling the response in onPaymentNotification method of the plugin. The response from the gateway is encoded with a key. The key is available in my configuration of the payment plugin. How can I read the payment param for my plugin?  Other examples use loadPaymentParms with order id. Unfortunately I do not have the order ID in the URL. Some issues in the way they handle return url.  Can you suggest some other method that I can use to read parameters of the plugin without using the order id (or anything else for that matter)?  Thanks and regards, Aravinda")*

Thanks Jerome. I had seen pluginParams but I was using it wrongly. I was expecting it to populate payment_params and later realized it populates plugin_params.

My plugin works perfectly.

Cheers,
Aravinda

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

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

[](#top)
