Crea un pago
| Name | Description |
|---|---|
| crypto_network_id | Id de la crypto red a usar |
| amount | Monto en moneda fiat |
| fiat | Moneda fiat |
| description | Breve descripcion o referencia del pago |
| success_url | URL a la cual sera redirigido una vez el pago se efectue |
| cancel_url | URL a la cual sera redirigido una vez el pago se cancele |
| notify_url | Webhook por el cual se notificara el cambio de status |
Content-Type: application/json Authorization: <integration-token> Host: example.org Cookie:
POST /hooks/payments
{"crypto_network_id":1,"amount":1000,"fiat":"ars","description":"test","success_url":"https://test.kriptonmarket.com/success","cancel_url":"https://test.kriptonmarket.com/cancel","notify_url":"https://test.kriptonmarket.com/notify"}
X-Frame-Options: SAMEORIGIN X-XSS-Protection: 1; mode=block X-Content-Type-Options: nosniff X-Download-Options: noopen X-Permitted-Cross-Domain-Policies: none Referrer-Policy: strict-origin-when-cross-origin Content-Type: application/json; charset=utf-8 ETag: W/"7482275c8b39091032b97ab35cd20167" Cache-Control: max-age=0, private, must-revalidate X-Request-Id: 090e91bb-6098-48e4-8315-25267f8f2300 X-Runtime: 0.113037 Vary: Origin Content-Length: 101
200 OK
{
"url": "http://localhost:3000/pay?token=2t4lyUhUrDkfPG2Hav7c",
"external_code": "2t4lyUhUrDkfPG2Hav7c"
}