VirtueMart Forum

VirtueMart Dev/Coding Central: VM1 (old version) => Feature requests => Payment Modules => Topic started by: BillRayDrums on November 05, 2010, 01:07:56 am

Title: Invoice numbers are garbage
Post by: BillRayDrums on November 05, 2010, 01:07:56 am
Hello Virtumartists

My client is getting random garbage for invoice numbers; can you help me figure out how to make them more normal?

This is the page info returned:

Thank you for your order!

Order Information
 
Merchant:
Surf Camera
Description:
Purchase Order
 
Invoice Number:
-257_52f101bda6d3f3d
Customer ID:
-257
PO Number:
-257_52f101bda6d3f3d
Tax Exempt:
No

Thanks!
Title: Re: Invoice numbers are garbage
Post by: Jörgen on November 05, 2010, 01:35:19 am
Hello

This number is the number sent to Your payment gateway. You should look into the code for Your payment gateway. The "normal" ordernumber is an integer stored in $order_id.

regards

Jörgen @ Kreativ Fotografi
Title: Re: Invoice numbers are garbage
Post by: BillRayDrums on November 05, 2010, 03:34:35 am
So how would I change that to the order number? I'm a rookie code person, but a quick learner. "I know enough to be dangerous" my php buddy says.

Can you point me in a more specific direction?