Dear all,

I had set the 17- character long transaction id, that i got from the
paypal in the successful completion of the order transaction, in the
DoAuthorization request to paypal..

But i am getting an invalid_transaction_id response from the paypal.
What will i do..

Please help anyone..
Thanks

For starters it means your transaction id is invalid or corrupted. If you are using $_POST then you may want to use something like the following to unescape the characters:

$id=stripslashes($_POST['transaction_id']);

Also, try to echo the transaction id directly before processing it to make sure the transaction id processed correctly.
Just let me know if you need more detailed info.

Thks for ur reply,,

i had encoded the transaction id with the function

urlencoded();

and i had submit the transaction id after that..
I am getting the refund trasaction successfully but getting error
in DoAuthorization and DoVoid section

Try to echo the transaction id before the url encode. See if that matches what it should be. Other than that I would suggest checking the paypal manual.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.