Ecom Payments
Initiate a payment
Initiate a card payment or card verification request when amount is set to 0 (zero).
post/api/v2/transactions/card
Headers
x-vfi-api-idempotencykeystring uuid
A value you specify that uniquely identifies this transaction. This must be used to trigger a reversal if there is a timeout.
Example:63bbc548-d2de-4546-b106-880a5018461c
Request body
Example request
{
"payment_provider_contract": "30b8bec8-5042-4e67-939c-5453fbe41711",
"customer": "0a57b387-2ba7-4f65-be2f-e176bb49d2ce",
"merchant_reference": "7a1db7a8-6f24-4bc5-a51b-cef33fc05140",
"threed_authentication": {
"eci_flag": "02",
"enrolled": "Y",
"pares_status": "A",
"threeds_version": "1.0.2",
"signature_verification": "Y",
"additional_data": {
"network_score": "20"
}
},
"shipping_information": {
"address": "3732 Metz Lane",
"city": "West Roxbury",
"country": "US",
"postal_code": "1114",
"first_name": "Thelma",
"last_name": "Tatro",
"phone": 8577532706,
"state": "MA"
},
"customer_details": {
"shipping": {
"address": "3732 Metz Lane",
"city": "West Roxbury",
"country": "US",
"postal_code": "1114",
"first_name": "Thelma",
"last_name": "Tatro",
"phone": "8577532706",
"state": "MA"
}
},
"shopper_interaction": "ECOMMERCE",
"encrypted_card": "U3dhZ2dlciByb2Nrcw==",
"token_preference": {
"token_scope": "0e48425a-f1bc-431a-b7d8-f866de8ba276"
}
}Response
Ecommerce Payment Result
Example response
{
"id": "76944d4b-89e6-48d2-ac04-675383c3eedf",
"payment_provider_contract": "30b8bec8-5042-4e67-939c-5453fbe41711",
"status": "AUTHORIZED",
"shipping_information": {
"address": "3732 Metz Lane",
"city": "West Roxbury",
"country": "US",
"postal_code": "1114",
"first_name": "Thelma",
"last_name": "Tatro",
"phone": 8577532706,
"state": "MA"
},
"customer_details": {
"shipping": {
"address": "3732 Metz Lane",
"city": "West Roxbury",
"country": "US",
"postal_code": "1114",
"first_name": "Thelma",
"last_name": "Tatro",
"phone": "8577532706",
"state": "MA"
}
},
"authorization_code": "5B1D4C",
"avs_result": "A",
"cvv_result": "1",
"cavv_result": "99",
"details": {
"mid": "363162200000049"
},
"rrn": "200211654321",
"threed_authentication": {
"eci_flag": "02",
"enrolled": "Y",
"pares_status": "A",
"threeds_version": "1.0.2"
},
"geo_location": [
"52.370216",
"4.895168"
],
"city": "West Roxbury",
"country_code": "US",
"additional_data": {
"acquirer_response_code": "0000",
"initiator_trace_id": "000001"
},
"token_details": {
"variant": "NEW_WORLD",
"type": "CREDIT",
"issuer_name": "WESTPAC",
"brand": "VISA",
"expiry_year": 2021,
"expiry_month": 12,
"card_holder_name": "MR J HOLDER",
"last_four": "3127",
"bin": "492912"
}
}