Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Custom invoice number

Custom invoice number 15 years 11 months ago #3223

  • kywolf
  • kywolf's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 0
I need to pass a different invoice number to Authorize.net than what is setup by default. I know the code below generates the invoice number but I\'m not sure how to format like we need it.

Right now, the below outputs something like: DC-7834721

I am needing something like this: EVENT-20090122XX


Obviously, changing DC to CONF isn\'t the issue :) . I just don\'t know the proper variables to get a time stamp with YEARMMDD. The XX would start at 01 and increment by 1 each registration. Then, the next day, it would go back to 01...I\'m not so worried about setting it back to 01 each day. I really just need to know how to change the below to output: EVENT-20090122XX
$chars = \"0123456789\";

srand((double)microtime()*1000000);

for($i=0; $i<7; $i++){

$x_invoice_num1 .= $chars[rand()%strlen($chars)];

}

$confirmNum = \"DC-\".$x_invoice_num1;

Does anyone have any insight on how to do this?

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

  • Page:
  • 1
Time to create page: 0.427 seconds