question

tulasi@aceonetechnologies.com avatar image
tulasi@aceonetechnologies.com asked ·

failureMessage: 'INV TRAN' on sandbox environment

I am using sandbox account and trying to add payments.
I am using the test credit card details 4264281511117771
["paymentId" => "GY1RFDCK18ETT" , "result" => "DECLINED", "failureMessage" => "INV TRAN"]
I am using php. this is how i encrypted credit card num:

$rsa = new phpseclib\Crypt\RSA();
$rsa->loadKey([
    'e' => new BigInteger(base64_decode($getPay["exponent"]), 256),
    'n' => new BigInteger(base64_decode($getPay["modulus"]), 256)
]);
$card = base64_encode($rsa->encrypt($getPay["prefix"].'4264281511117771'));

Please help me with this issue.
Developer Pay API
1 comment
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

It's possible that the card is expired? Try using a different card number (with an exp date in the future).

0 Likes 0 · ·

1 Answer

tulasi@aceonetechnologies.com avatar image
tulasi@aceonetechnologies.com answered ·
I solved it. I should not restrict the RSA to 256. When i removed that it worked.
Share
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community