-
Notifications
You must be signed in to change notification settings - Fork 15
Devoluciones
Joel Ibaceta edited this page Jan 3, 2020
·
1 revision
Una devolución te permite devolver un cargo que ha sido creado previamente y que aún no ha sido devuelto en su totalidad. Los fondos serán devueltos a la tarjeta de crédito o débito que se ha realizado el cargo.
response = culqi.refund.create({
"amount": 100,
"reason": "solicitud_comprador",
"charge_id": charge["data"]["id"],
})
print(response["data"])
response = culqi.refund.read(refund["data"]["id"])
print(response["data"])
metadatada = {
"metadata": {
"order_id": "0001"
}
}
response = culqi.refund.update(id_=refund["data"]["id"], data=metadatada)
print(response["data"])
response = culqi.refund.list()
assert "items" in response["data"]
Culqi Developers