Payment gateway response data in orders
We’re now including extra payment information in each order, as returned by each payment gateway.
This moves some properties specific to Webpay from payment_info.*
to payment_info.data.*
.
Before
{
"payment_info": {
"name": "Webpay",
"type": "webpay",
"auth_code": "abc",
"transaction_id": 3222
}
}
After
{
"payment_info": {
"name": "Webpay",
"type": "webpay",
"data": {
"tbk_numero_cuotas": 1,
"tbk_codigo_autorizacion": "abc",
"tbk_id_transaccion": 3222,
"tbk_tipo_pago": "VD"
}
}
}
Properties in payment_info.data
are named as returned by the payment gateway, lower-cased and underscored (underscores instead of spaces).
See order details for more.