Author Topic: How to pass invoice number to payment gateway  (Read 2945 times)

Offline havermansp

  • Jr. Member
  • **
  • Posts: 4
    • View Profile
How to pass invoice number to payment gateway
« on: 27/April/2010, 09:10:44 PM »
Hi,

NBill passes a unique number to the payment gateway which is not the invoice number. I want to pass the invoice number to the payment gateway (invoices are allways payed full).

Which changes do I have to make in the code and were?

Thanx for your advice.

Offline netshine

  • Administrator
  • Hero Member
  • *****
  • Posts: 4,984
    • View Profile
Re: How to pass invoice number to payment gateway
« Reply #1 on: 27/April/2010, 09:50:06 PM »
If you are talking about an existing gateway, you should not change the transaction ID to the invoice number, as that will stop the callback or payment confirmation from working.

When paying an invoice, the built-in variable $document_no is populated before the gateway is called, so you can check that variable for a value and pass it to the payment gateway if required. However, for order forms, the invoice is usually not created until after the payment has been confirmed by the payment gateway, so there is no invoice number yet.

 

anything