PayPal JSON Response Object Transaction ID

Othello2
Contributor
Contributor

Hello All,
I'm developing a Javascript / PHP / REST API and want to double check on the Transaction ID length. In most of the documentation it is stated that the JSON Response Object Transaction ID for a completed transaction is a unique 17 character string, however, the orderID is 19 characters long. The documentation states, "A valid transaction ID is 17 characters long, except for an order ID, which is 19 characters long." When I run tests, the order ID that is produced by PayPal and included in my URL (for the PHP processing page) is the same 17 character string as the transaction ID.

 

As this must be inserted into the database a sudden change in character length can cause problems. Are the transaction ID and the order ID always one and the same? Will they differ in certain situations? Getting clarity on this will be helpful. Thanks a bunch for the assistance!
Cheers,

Othello2

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.