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 WAITING_AUTHORISATION Waiting for authorization
Transaction waiting for authorization.
This status is temporary.
A transaction in this status will evolve into one of the following statuses:
- ABANDONED
- AUTHORISED
- REFUSED
This status does not allow cancellation.
To know the final status of the transaction, you must activate the rule Instant Payment Notification URL on batch change.ABANDONED Abandoned
Payment abandoned by the buyer
The transaction is visible in the Expert Back Office.
REFUSED Refused
The payment is declined.
AUTHORISED Validated
The credit request is accepted. The payment will be automatically captured in the bank.CAPTURED Validated
The payment is captured in the bank. The fund transfer to the merchant’s account is complete.
CANCELLED Canceled
The payment was canceled by the merchant before it was captured in the bank.
- Retrieve the field vads_trans_uuid containing the transaction unique reference generated by the payment server.
- Retrieve the Franfinance payment reference in the vads_ext_trans_id field.
- Retrieve the value of the vads_trans_date field to identify the payment date.
- Retrieve the 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 Used payment method Set to: - FRANFINANCE_3X: for a 3 installments payment.
- FRANFINANCE_4X: for a 4 installments payment.
vads_acquirer_network Acquirer network code. Populated with: - FRANFINANCE for a production payment
- FRANFINANCE_SB for a test payment.
- Retrieve all the order, buyer and shipping details. These details will be provided in the response only if they have been transmitted in the payment request.Their values are identical to the ones submitted in the form.
- Proceed to order update.