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

#   Creation of Order Number for payment gateway

##

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

Less More

- Posts: 33
- Thank you received: 0
-
-

11 years 3 hours ago [\#218555](#218555) by [austega](/forum/user/37734-austega "View austega's Profile")  *[Creation of Order Number for payment gateway](/forum/35-orders-management/880095-creation-of-order-number-for-payment-gateway#218555 "-- HikaShop version -- : 2.6.0 business -- Joomla version -- : 3.4.5 -- PHP version -- : 5.4.45  We are using a Shared Page payment gateway on the secure eWay servers so that my client does not collect or retain any credit card data on their own server.  The problem we are facing is that at the time Hikashop passes the payment transaction information to eWay Hikashop does not seem to have generated its order number - so this cannot be displayed on the eWay payment page. This is problematic in that our users are looking for additional confirmation of what they have bought at the time they commit to their credit card payment. I've attached a screen shot of the eWay page.  I say &quot;does not seem to have generated its order number&quot; as this is what I have been advised by the developer of our eWay payment plugin, but I do note that eWay's own email confirmation does in fact include the Hikashop order number. Screen shot also attached.  1. So my first question is at what point is the Hikashop order number generated?  2. If this is before or at the time the user clicks on Pay (after selecting the payment method), where is this number stored and can it be passed through to and displayed on the third party payment page as the Invoice Number?  3. If this is not generated at or before this point, could it be?  Thanks for your guidance with these questions.")* was created by *[austega](/forum/user/37734-austega "View austega's Profile")*

-- HikaShop version -- : 2.6.0 business
-- Joomla version -- : 3.4.5
-- PHP version -- : 5.4.45

We are using a Shared Page payment gateway on the secure eWay servers so that my client does not collect or retain any credit card data on their own server.

The problem we are facing is that at the time Hikashop passes the payment transaction information to eWay Hikashop does not seem to have generated its order number - so this cannot be displayed on the eWay payment page. This is problematic in that our users are looking for additional confirmation of what they have bought at the time they commit to their credit card payment. I've attached a screen shot of the eWay page.

I say "does not seem to have generated its order number" as this is what I have been advised by the developer of our eWay payment plugin, but I do note that eWay's own email confirmation does in fact include the Hikashop order number. Screen shot also attached.

1. So my first question is at what point is the Hikashop order number generated?

2. If this is before or at the time the user clicks on Pay (after selecting the payment method), where is this number stored and can it be passed through to and displayed on the third party payment page as the Invoice Number?

3. If this is not generated at or before this point, could it be?

Thanks for your guidance with these questions.

- [ ![EwayPaymentScreenCapture.png](/forum/attachment/27289) ](/forum/attachment/27289 "...eenCapture.png") [ ](/forum/attachment/27289?download=1 "...eenCapture.png")
- [ ![eWayConfirmation.png](/forum/attachment/27290) ](/forum/attachment/27290 "...nfirmation.png") [ ](/forum/attachment/27290?download=1 "...nfirmation.png")

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

10 years 11 months ago -  10 years 11 months ago [\#218659](#218659) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Creation of Order Number for payment gateway](/forum/35-orders-management/880095-creation-of-order-number-for-payment-gateway#218659 "-- HikaShop version -- : 2.6.0 business -- Joomla version -- : 3.4.5 -- PHP version -- : 5.4.45  We are using a Shared Page payment gateway on the secure eWay servers so that my client does not collect or retain any credit card data on their own server.  The problem we are facing is that at the time Hikashop passes the payment transaction information to eWay Hikashop does not seem to have generated its order number - so this cannot be displayed on the eWay payment page. This is problematic in that our users are looking for additional confirmation of what they have bought at the time they commit to their credit card payment. I've attached a screen shot of the eWay page.  I say &quot;does not seem to have generated its order number&quot; as this is what I have been advised by the developer of our eWay payment plugin, but I do note that eWay's own email confirmation does in fact include the Hikashop order number. Screen shot also attached.  1. So my first question is at what point is the Hikashop order number generated?  2. If this is before or at the time the user clicks on Pay (after selecting the payment method), where is this number stored and can it be passed through to and displayed on the third party payment page as the Invoice Number?  3. If this is not generated at or before this point, could it be?  Thanks for your guidance with these questions.")*

Hi,

1. The order is created before the redirection to the payment gateway. And thus the order number is created at the same time and the payment plugin should normally pass that information to the payment gateway.

2. in the onAfterOrderConfirm function of your payment plugin, which display the redirection form to your payment gateway, you'll find the order number in the variable $order-&gt;order_number

3. It's normally already generated. Now I don't know what payment plugin you use and how it's done in it so hard to say more.

PS: note that if you're talking about the "invoice number" and not the "order number", that number is generated when the order is confirmed (ie. after the payment of the order) so of course it can't be passed on to the payment gateway. But you can always change the "order invoice status" setting of the HikaShop configuration to get it generated when the order is created but normally, you should only generate an invoice number after an order is paid.

Last edit: 10 years 11 months ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

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

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

Less More

- Posts: 33
- Thank you received: 0
-
-

10 years 11 months ago -  10 years 11 months ago [\#218665](#218665) by [austega](/forum/user/37734-austega "View austega's Profile")  Replied by *[austega](/forum/user/37734-austega "View austega's Profile")* on topic *[Creation of Order Number for payment gateway](/forum/35-orders-management/880095-creation-of-order-number-for-payment-gateway#218665 "-- HikaShop version -- : 2.6.0 business -- Joomla version -- : 3.4.5 -- PHP version -- : 5.4.45  We are using a Shared Page payment gateway on the secure eWay servers so that my client does not collect or retain any credit card data on their own server.  The problem we are facing is that at the time Hikashop passes the payment transaction information to eWay Hikashop does not seem to have generated its order number - so this cannot be displayed on the eWay payment page. This is problematic in that our users are looking for additional confirmation of what they have bought at the time they commit to their credit card payment. I've attached a screen shot of the eWay page.  I say &quot;does not seem to have generated its order number&quot; as this is what I have been advised by the developer of our eWay payment plugin, but I do note that eWay's own email confirmation does in fact include the Hikashop order number. Screen shot also attached.  1. So my first question is at what point is the Hikashop order number generated?  2. If this is before or at the time the user clicks on Pay (after selecting the payment method), where is this number stored and can it be passed through to and displayed on the third party payment page as the Invoice Number?  3. If this is not generated at or before this point, could it be?  Thanks for your guidance with these questions.")*

Thanks Nicolas.

You said: "But you can always change the "order invoice status" setting of the HikaShop configuration to get it [the invoice number] generated when the order is created but normally, you should only generate an invoice number after an order is paid."

I've had a look at the Hikashop configuration but cannot find the point where you can control this - can you help me find it? This might be all that is required to have the invoice/order number appear on the payment gateway page. FWIW in Australia, invoices are generated to prompt payments so would normally be issued before payment is made (though generally after the goods have been supplied), followed by a receipt after payment.

David

Last edit: 10 years 11 months ago by [austega](/forum/user/37734-austega "View austega's Profile").

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

10 years 11 months ago -  10 years 11 months ago [\#218739](#218739) 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 *[Creation of Order Number for payment gateway](/forum/35-orders-management/880095-creation-of-order-number-for-payment-gateway#218739 "-- HikaShop version -- : 2.6.0 business -- Joomla version -- : 3.4.5 -- PHP version -- : 5.4.45  We are using a Shared Page payment gateway on the secure eWay servers so that my client does not collect or retain any credit card data on their own server.  The problem we are facing is that at the time Hikashop passes the payment transaction information to eWay Hikashop does not seem to have generated its order number - so this cannot be displayed on the eWay payment page. This is problematic in that our users are looking for additional confirmation of what they have bought at the time they commit to their credit card payment. I've attached a screen shot of the eWay page.  I say &quot;does not seem to have generated its order number&quot; as this is what I have been advised by the developer of our eWay payment plugin, but I do note that eWay's own email confirmation does in fact include the Hikashop order number. Screen shot also attached.  1. So my first question is at what point is the Hikashop order number generated?  2. If this is before or at the time the user clicks on Pay (after selecting the payment method), where is this number stored and can it be passed through to and displayed on the third party payment page as the Invoice Number?  3. If this is not generated at or before this point, could it be?  Thanks for your guidance with these questions.")*

Hello David,

Note that you'll find the "Invoice order statuses" option via "Hikashop-&gt;System-&gt;Configuration-&gt;Main" :
[ www.hikashop.com/support/support/documen...nfig.html#main\_order](http://www.hikashop.com/support/support/documentation/54-hikashop-config.html#main_order)

Last edit: 10 years 11 months ago by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile").

The following user(s) said Thank You: [austega](/forum/user/37734-austega "View austega's Profile")

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

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

[](#top)
