Este es un servicio On-demand disponible solo para empresas con PCI DSS compliance.
threeDomainSecure en tu request.initialRecurrence en el parámetro transactionMode y procesa la preautorización. En esta transacción inicial debes enviar el CVV.subsequentRecurrence en el parámetro transactionMode e incluye el número transactionReference en el campo initialRecurrenceReference. Ahora ya puedes omitir el CVV.Otra opción para procesar suscripciones externas es enviar el parámetro externalSubscriptionID. Haz clic aquí para más información.
curl --location '/card/v2/preAuthorization' \
--header 'Private-Merchant-Id;' \
--header 'Content-Type: application/json' \
--data-raw '{
"card": {
"name": "John Doe",
"number": "4259078012341233",
"expiryMonth": "12",
"expiryYear": "25",
"cvv": "123"
},
"amount": {
"subtotalIva": 0,
"subtotalIva0": 4000,
"ice": 0,
"iva": 0,
"currency": "MXN"
},
"metadata": {
"Referencia": "99999"
},
"contactDetails": {
"documentType": "CC",
"documentNumber": "1234567890",
"email": "user@example.com",
"firstName": "John",
"lastName": "Doe",
"phoneNumber": "+52 83 4247 4216"
},
"orderDetails": {
"siteDomain": "example.com",
"shippingDetails": {
"name": "John Doe",
"phone": "+52 83 4247 4216.",
"address1": "Av. Insurgentes Sur 1234",
"address2": "centro 123",
"city": "Ciudad de México",
"region": "CDMX",
"country": "Mexico"
},
"billingDetails": {
"name": "John Doe",
"phone": "+52 83 4247 4216.",
"address1": "Av. Insurgentes Sur 1234",
"address2": "centro 123",
"city": "Ciudad de México",
"region": "CDMX",
"country": "Mexico"
}
},
"productDetails": {
"product": [
{
"id": "198952AB",
"title": "eBook Digital Services",
"price": 10000,
"sku": "10101042",
"quantity": 1
}
]
},
"fullResponse": "v2"
}'{
"details": {
"amount": {
"subtotalIva": 0,
"subtotalIva0": 4000,
"ice": 0,
"iva": 0,
"currency": "MXN",
"isDeferred": false
},
"approvalCode": "123456",
"approvedTransactionAmount": 4000,
"binInfo": {
"bank": "WELLSFARGO",
"binCard": "425907",
"cardCountry": "United States of America",
"lastFourDigits": "1233",
"type": "credit"
},
"cardHolderName": "John Doe",
"created": 1712159361000,
"merchantId": "20000000101835540000",
"merchantName": "CENTRALIZADA NUEVA PRUEBA GOB",
"messageFields": {
"f38": "123456",
"f39": "00"
},
"paymentBrand": "Visa",
"processorBankName": "Kushki",
"recap": "409415159483",
"requestAmount": 4000,
"responseCode": "000",
"responseText": "Approval and completed successfully Accepted and processed.",
"transactionId": "821712159361453407367",
"transactionReference": "ba48f90b-43ef-4cff-b842-7bc34c41f78e",
"transactionStatus": "APPROVAL",
"transactionType": "PREAUTHORIZATION"
},
"ticketNumber": "821712159361453410",
"transactionReference": "ba48f90b-43ef-4cff-b842-7bc34c41f78e"
}