Pre-authorization is a feature that allows you to "reserve" an amount of a customer's card limit for later capture. This can be used to increase anti-fraud analysis time (if you have a tool of your own). Each pre-authorization can be held for up to 5 days and, if the catch does not occur, the payment will be canceled.
This API allows you to capture a payment that is pre-authorized on Wirecard. So you can pre-authorize the payment, using the delayCapture
attribute when creating a payment. You can only capture a payment that has PRE_AUTHORIZED
status.
ATTENTION
Upon the recommendation of the credit card companies, a pre-authorized payment shall be captured in up to 5 days. If this period is exceeded, Wirecard will automatically cancel the payment.
IMPORTANT
To create a pre-authorized payment you must create a payment using the
delayCapture
attribute. Here is an example of the attribute that should set astrue
to be enabled.
{
"installmentCount":6,
"statementDescriptor":"my-store.com",
"delayCapture":true,
"fundingInstrument":{
"method":"CREDIT_CARD",
"creditCard":{
"hash":"gOk+Yu4eFjKiCCDo/ps7KuLmkXWzprz8q1l0JGFxQFB6ty+iWDcIsAQW/DkL8b8hQm9HhYsMDtP/bXpaHzE8ZJhoBMjiYC37BOrW4eiPegTto20fUggy1vW4TEsWO1vQjOh6TFhkCxR4E0b/Zq2Z1QNwgTQaX1KphXdt2HGRLL7aAHuVcwh9/ljHZHD8FrBZ7UAR8Bk2PjOX8NHKxe1h9zrqFvccgK42ReJVja/X1yfUgs4zjESdfFuwm9/ZCdmXoFufkIgdKQm9TOgupJlrC6ZhOQ32GFRgfyUz/AEMbebMmFngYW5UsIPukg/NKWvMn5lpUetezxz5AR06mN+Uyg==",
"store":true,
"holder":{
"fullname":"Credit card holder name",
"birthdate":"1985-03-09",
"taxDocument":{
"type":"CPF",
"number":"86362891064"
},
"phone":{
"countryCode":"55",
"areaCode":"11",
"number":"44832057"
},
"billingAddress":{
"city":"Belo Horizonte",
"district":"Savassi",
"street":"Avenida Getúlio Vargas",
"streetNumber":"6200",
"zipCode":"83926500",
"state":"MG",
"country":"BRA"
}
}
}
}
}