Processing the response data
Here is an example of analysis to guide you through processing the response data.
- Identify the order by retrieving the value of the vads_order_id field if you have transmitted it in the payment form. Make sure that the order status has not been updated yet.
- Retrieve the payment result transmitted in the vads_trans_status field. Its value allows you to define the order status.
VALUE DESCRIPTION CAPTURED Captured
The transaction is accepted.
It is visible in the tab Captured transactions.
Debit is immediate (no capture file is sent to the acquirer).
REFUSED Refused
Transaction is refused.
CANCELLED Canceled The payment has been canceled by the buyer.
WAITING_AUTHORISATION Waiting for authorization The payment is validated by the buyer, but the transfer has not yet been processed.
This status is temporary. To be notified of the final result, you must enable the notification rule Instant Payment Notification URL on batch change.WAITING_FOR_PAYMENT Waiting for payment The buyer was redirected to their online banking space.
This status is temporary. It is never returned in the end of payment notification, but can be obtained:- if you manually execute the notification from the Merchant Back Office
- or if you create a notification rule that is triggered on the event "Pending payment waiting for a confirmation of the external platform".
- Retrieve the field vads_trans_uuid containing the transaction unique reference generated by the payment server.
- Retrieve the value of the vads_trans_date field to identify the payment date.
- Retrieve the used amount and currency. To do this, retrieve the values of the following fields:
Field name Description vads_amount Payment amount in the smallest currency unit vads_currency Numeric code of the currency used for the payment - Retrieve the payment method data used for the payment by analyzing the following fields:
Field name Description vads_card_brand Payment method. Possible values: - IP_WIRE : SEPA Credit Transfer.
The IP_WIRE value can be returned when:
- The buyer’s bank does not support the SEPA Instant Credit Transfer. The request is automatically qualified as a classic SEPA transfer request.
- The buyer’s and merchant’s accounts are from the same Caisse Régionale du Crédit Agricole, the bank imposes to automatically qualify the request as a classic SEPA transfer, even if the request is processed as an instant credit transfer.
- IP_WIRE_INST : Instant SEPA Credit Transfer.
vads_card_number Payer’s IBAN vads_acquirer_network Acquirer network code Set to IP. - IP_WIRE : SEPA Credit Transfer.
- Retrieve all the order, buyer and shipping details. These details will be provided in the response only of they have been transmitted in the payment form.Their values are identical to the ones submitted in the form.
- Proceed to order update.