Creation of Order Number for payment gateway

  • Posts: 33
  • Thank you received: 0
9 years 4 weeks ago #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 "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.

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13375
  • MODERATOR
9 years 4 weeks ago #218659

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->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: 9 years 4 weeks ago by nicolas.

Please Log in or Create an account to join the conversation.

  • Posts: 33
  • Thank you received: 0
9 years 4 weeks ago #218665

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: 9 years 4 weeks ago by austega.

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
9 years 4 weeks ago #218739

Hello David,

Note that you'll find the "Invoice order statuses" option via "Hikashop->System->Configuration->Main" :
www.hikashop.com/support/support/documen...nfig.html#main_order

Last edit: 9 years 4 weeks ago by Mohamed Thelji.
The following user(s) said Thank You: austega

Please Log in or Create an account to join the conversation.

Time to create page: 0.057 seconds
Powered by Kunena Forum