- last edited on
Why Paypal Payments failing with -- Billing Agreement Id or transaction Id is not valid?
Error: 11451 -- Billing Agreement Id or transaction Id is not valid
If you found my answer helpful, please give me a kudo ↑ Help others find answers faster by accepting my post as a solution √
Go to Solution.
In one specific sceanrio, customer was testing Paypal payment method. The BAID was authorised successfully when added in the Payment Method.
But when the payment is processed with same payment method, it was failing with following response from gateway: Billing Agreement Id or transaction Id is not valid.
On further investigation it was found that customer was generating the BAID and this data was transferred within URL.
When transfer data occurs within URL, some special characters will be encoded, for ex: *-* as *%2d*.
Hence, in this scenario you need to decode the BAID value and then use the decoded one in Payment Method.
For ex: B%2dxxxxxxxxxxxxxxxxx will de decoded as B-xxxxxxxxxxxxxxxxx.