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

#   new payment method

##

- **[kaya](/forum/user/25605-kaya "View kaya's Profile")**
- [![kaya's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/vacation.jpg)](/forum/user/25605-kaya "View kaya's Profile")
- [ Offline](/forum/user/25605-kaya)

Less More

- Posts: 120
- Thank you received: 2
-
-
- [](http://arasjoomla.ir)
-

13 years 2 months ago [\#120830](#120830) by [kaya](/forum/user/25605-kaya "View kaya's Profile")  Replied by *[kaya](/forum/user/25605-kaya "View kaya's Profile")* on topic *[new payment method](/forum/4-how-to/1914-new-payment-method?start=60#120830 "Hi,  I need to use a new payment method for my shop, which is not supported in Hikashop yet. As I understand I would have to create a Joomla plugin of type ´hikashoppayment´. I have among others the Paypal payment method files (php and xml) as examples.  The payment method I want to implement is a Dutch method called 'iDEAL'. This is a name, and a protocol, which is used by all Dutch banks. With this method the user has to select payment method 'iDEAL', but after that also has to select a bank.  This bank selection should be part of the checkout process. But it seems that there is no way in the checkout process, or as part of the payment method selection, to ask the user for another choice. Is that correct? Or would it work to let onPaymentDisplay echo a select box?  Thanks! Ivar")*

found problem
should use this
$orderClass

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

- **[kaya](/forum/user/25605-kaya "View kaya's Profile")**
- [![kaya's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/vacation.jpg)](/forum/user/25605-kaya "View kaya's Profile")
- [ Offline](/forum/user/25605-kaya)

Less More

- Posts: 120
- Thank you received: 2
-
-
- [](http://arasjoomla.ir)
-

13 years 2 months ago [\#120867](#120867) by [kaya](/forum/user/25605-kaya "View kaya's Profile")  Replied by *[kaya](/forum/user/25605-kaya "View kaya's Profile")* on topic *[new payment method](/forum/4-how-to/1914-new-payment-method?start=60#120867 "Hi,  I need to use a new payment method for my shop, which is not supported in Hikashop yet. As I understand I would have to create a Joomla plugin of type ´hikashoppayment´. I have among others the Paypal payment method files (php and xml) as examples.  The payment method I want to implement is a Dutch method called 'iDEAL'. This is a name, and a protocol, which is used by all Dutch banks. With this method the user has to select payment method 'iDEAL', but after that also has to select a bank.  This bank selection should be part of the checkout process. But it seems that there is no way in the checkout process, or as part of the payment method selection, to ask the user for another choice. Is that correct? Or would it work to let onPaymentDisplay echo a select box?  Thanks! Ivar")*

my problem now it is:
after payment and verify two rows save at database for an order
1.order_status = created
2. order_status = confirmed
what's problem? I use this code for save at database Code:

$orderClass = hikashop_get('class.order'); $order = new stdClass(); $order-&gt;order_id = $paymentID; $order-&gt;order_status = 'confirmed'; $order-&gt;history = new stdClass(); $order-&gt;history-&gt;history_notified = 1; $order-&gt;order_status = $element-&gt;payment_params-&gt;verified_status; $order-&gt;order_id = $dbOrder-&gt;order_id; $order-&gt;history-&gt;history_data = ob_get_clean().'/r/n'.$referenceId; $orderClass-&gt;save($order); return true;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE5MTQtbmV3LXBheW1lbnQtbWV0aG9kP3N0YXJ0PTYwJnRtcGw9bWFya2Rvd24=) 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 2 months ago [\#120875](#120875) 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 *[new payment method](/forum/4-how-to/1914-new-payment-method?start=60#120875 "Hi,  I need to use a new payment method for my shop, which is not supported in Hikashop yet. As I understand I would have to create a Joomla plugin of type ´hikashoppayment´. I have among others the Paypal payment method files (php and xml) as examples.  The payment method I want to implement is a Dutch method called 'iDEAL'. This is a name, and a protocol, which is used by all Dutch banks. With this method the user has to select payment method 'iDEAL', but after that also has to select a bank.  This bank selection should be part of the checkout process. But it seems that there is no way in the checkout process, or as part of the payment method selection, to ask the user for another choice. Is that correct? Or would it work to let onPaymentDisplay echo a select box?  Thanks! Ivar")*

Hi,
I didn't really understood your problem can you give us more precision about it ?

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

- **[kaya](/forum/user/25605-kaya "View kaya's Profile")**
- [![kaya's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/vacation.jpg)](/forum/user/25605-kaya "View kaya's Profile")
- [ Offline](/forum/user/25605-kaya)

Less More

- Posts: 120
- Thank you received: 2
-
-
- [](http://arasjoomla.ir)
-

13 years 2 months ago [\#120879](#120879) by [kaya](/forum/user/25605-kaya "View kaya's Profile")  Replied by *[kaya](/forum/user/25605-kaya "View kaya's Profile")* on topic *[new payment method](/forum/4-how-to/1914-new-payment-method?start=60#120879 "Hi,  I need to use a new payment method for my shop, which is not supported in Hikashop yet. As I understand I would have to create a Joomla plugin of type ´hikashoppayment´. I have among others the Paypal payment method files (php and xml) as examples.  The payment method I want to implement is a Dutch method called 'iDEAL'. This is a name, and a protocol, which is used by all Dutch banks. With this method the user has to select payment method 'iDEAL', but after that also has to select a bank.  This bank selection should be part of the checkout process. But it seems that there is no way in the checkout process, or as part of the payment method selection, to ask the user for another choice. Is that correct? Or would it work to let onPaymentDisplay echo a select box?  Thanks! Ivar")*

Hi mohamed
save at database twice for each payment
see this pic it's one payment but save at two rows
[ ![&#91;img](http://axgig.com/images/81306315466237110196.png) ](http://axgig.com/images/81306315466237110196.png "&#91;img")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE5MTQtbmV3LXBheW1lbnQtbWV0aG9kP3N0YXJ0PTYwJnRtcGw9bWFya2Rvd24=) 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 2 months ago [\#120908](#120908) 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 *[new payment method](/forum/4-how-to/1914-new-payment-method?start=60#120908 "Hi,  I need to use a new payment method for my shop, which is not supported in Hikashop yet. As I understand I would have to create a Joomla plugin of type ´hikashoppayment´. I have among others the Paypal payment method files (php and xml) as examples.  The payment method I want to implement is a Dutch method called 'iDEAL'. This is a name, and a protocol, which is used by all Dutch banks. With this method the user has to select payment method 'iDEAL', but after that also has to select a bank.  This bank selection should be part of the checkout process. But it seems that there is no way in the checkout process, or as part of the payment method selection, to ask the user for another choice. Is that correct? Or would it work to let onPaymentDisplay echo a select box?  Thanks! Ivar")*

Hi,
You should use this kind of code if you want to save you order: Code:

$this-&gt;modifyOrder($order-&gt;order_id, $order-&gt;order_status , $history, $email);

Instead of the "**$orderClass-&gt;save($order);**" function.
You should also check how you'll have to set the **$email** variable through the Amazon code for example.

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

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