I am using sandbox account and trying to add payments.
I am using the test credit card details 4242424242424242
{
"paymentId": "Z5HQDG30WS27E",
"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"].'4242424242424242'));
Please help me to resolve this issue. Thanks