I am writing an offsite payment method module. Part of what is sent to the payment service is the payment transaction ID which I can get after calling commerce_payment_transaction_new ( METHOD_ID, ORDER_ID ).
The payment service requires that transaction ID sent to must between 6 and 50 characters long. However, transaction IDs by Commerce are serial and so start by being less than 6 characters for a long time.
So I was wondering: is there a way to set the transaction ID as the transaction is created?
I'll be glad for any help.