Solicitud
Autorización con tokenización para posteriores transacciones
Para más información de Aliexpress, clic en en enlace
Use this card numbers in order to get a success or declined authorization:
Authorization |
Card Number |
Success |
4918010000000020 |
Declined |
4907271141151700 |
Use this card holder names in order to get below 3ds results:
Authentication |
Card Holder Name |
Y |
3ds2-frictionless-identified |
A |
3ds2-frictionless-not-identified |
N |
3ds2-frictionless-failed |
R |
3ds2-frictionless-rejected |
U |
3ds2-authentication-unavailable |
C |
3ds2-challenge |
Fallback from 3dsv2 to 3dsv1
Field |
Card Number |
Currency |
USD |
Amount |
72.56 |
Country |
US |
Card |
4012001037141112 |
merchantExemptionsSca:
Exemption |
LWV |
MIT |
COR |
TRA |
Transacción HOST to HOST sin 3dsecure
//Establedemos modo de cifrado
$modo = "aes-256-ecb";
//Ciframos el concepto encrypted de la transacción
$encrypted = openssl_encrypt($cadena, $modo, $merchantkey);
//Cifrar la cadena inicial en sha256 para el integrity check
$modo = "sha256";
$integrityCheck = hash($modo, $cadena);
//Concatenamos
$datos = 'encrypted=' . urlencode($encrypted) . '&integrityCheck=' . $integrityCheck . '&merchantId=' . $merchantid;
$url = 'https://checkout-stg.easypaymentgateway.com/EPGCheckout/rest/online/pay?' . $datos;
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
//curl_setopt($ch, CURLOPT_POSTFIELDS, $datos);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Accept: application/xml')
);
curl_setopt($ch, CURLOPT_TIMEOUT, 6);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 6);
//Lanzar Post
$result = curl_exec($ch);