Conekta Developer's Hub

Bienvenido al Conekta Developer's Hub. Aquí encontrarás la más robusta documentación del API Conekta y todos los tutoriales que te ayudarán a comenzar a recibir pagos de la manera más rápida, sencilla y segura.

Questions

Ask A Question
1
ANSWERED

Checkout

estoy integrando Checkout y mando este json para obtener mi id pero no me responde mas q request : {"line_items": [{ "name": "Laptop Dell Chromebook 3100 11 6 Intel Celeron N4020 Disco duro 32 GB Ram 4 GB Chrome Os Color Negro", "description": "Laptop Dell Chromebook 3100 11 6 Intel Celeron N4020 Disco duro 32 GB Ram 4 GB Chrome Os Color Negro", "unit_price": 1000000, "quantity": 1, "sku": "DEHLATAB306", "shippable": true},{ "name": "Laptop Acer Chromebook 311 C733 C2DS 11 6 Intel Celeron N4020 Disco duro 32 GB Ram 4 GB Chrome Os Color Negro", "description": "Laptop Acer Chromebook 311 C733 C2DS 11 6 Intel Celeron N4020 Disco duro 32 GB Ram 4 GB Chrome Os Color Negro", "unit_price": 1200000, "quantity": 1, "sku": "AEHLATAB305", "shippable": true} ], "currency": "MXN", "customer_info": {"customer_id": "cus_2q2gYBjaVtMcSQ4Pi" }, "metadata": {"description": "compra en Abacco" }, "checkout": [{ "name": "compra en Abacco", "allowed_payment_methods": [ "cash", "card", "bank_transfer" ], "monthly_installments_options": [ 3, 6, 9, 12 ], "monthly_installments_enabled": true, "on_demand_enabled": true, "type": "Integration"} ]} response: {"livemode":false,"amount":2200000,"currency":"MXN","amount_refunded":0,"customer_info":{"email":"[email protected]","phone":"+52123456789","name":"Monitoreo Tecnofin","corporate":false,"customer_id":"cus_2q2gYBjaVtMcSQ4Pi","object":"customer_info"},"shipping_contact":{"receiver":"Monitoreo Tecnofin","phone":"+52-123456789","address":{"street1":"Guanajuato 240","city":"Cuauhtemoc","state":"Distrito Federal","residential":true,"object":"shipping_address","postal_code":"06700"},"id":"ship_cont_2q2hcN1b6y6U9iZ3q","object":"shipping_contact","created_at":0},"object":"order","id":"ord_2q2hcN1b6y6U9iZ3r","metadata":{"description":"compra en Abacco"},"created_at":1625272284,"updated_at":1625272284,"line_items":{"object":"list","has_more":false,"total":2,"data":[{"name":"Laptop Acer Chromebook 311 C733 C2DS 11 6 Intel Celeron N4020 Disco duro 32 GB Ram 4 GB Chrome Os Color Negro","description":"Laptop Acer Chromebook 311 C733 C2DS 11 6 Intel Celeron N4020 Disco duro 32 GB Ram 4 GB Chrome Os Color Negro","unit_price":1200000,"quantity":1,"sku":"AEHLATAB305","object":"line_item","id":"line_item_2q2hcN1b6y6U9iZ3o","parent_id":"ord_2q2hcN1b6y6U9iZ3r","metadata":{},"antifraud_info":{}},{"name":"Laptop Dell Chromebook 3100 11 6 Intel Celeron N4020 Disco duro 32 GB Ram 4 GB Chrome Os Color Negro","description":"Laptop Dell Chromebook 3100 11 6 Intel Celeron N4020 Disco duro 32 GB Ram 4 GB Chrome Os Color Negro","unit_price":1000000,"quantity":1,"sku":"DEHLATAB306","object":"line_item","id":"line_item_2q2hcN1b6y6U9iZ3n","parent_id":"ord_2q2hcN1b6y6U9iZ3r","metadata":{},"antifraud_info":{}}]}}" y en la documentacion dice que debe responder con un modulo como este: "checkout": { "id": "42a4c95e-0db2-4ae8-9bb3-ea681acc8281", "object": "checkout", "status": "Issued", "allowed_payment_methods": ["cash", "card", "bank_transfer"], "needs_shipping_contact": true, "livemode": true },

Posted by Diego cervantes 2 months ago

1
ANSWERED

Pago recurrente Oxxo

Al momento de realizar una peticion cURL obtengo los datos json //peticion curl --request POST \ --url https://api.conekta.io/customers \ --header 'accept: application/vnd.conekta-v2.0.0+json' \ -u XXXXXXXXXXXXXXXXXXX: \ --header 'content-type: application/json' \ --data '{ "name": "Fulanito", "email": "[email protected]", "phone": "+5218181818181", "payment_sources": [{ "type": "oxxo_recurrent" }] }' Con ello obtengo la respuesta: { "livemode": true, "name": "Customer", "email": "[email protected]", "phone": "+52800000001", "id": "cus_2dE21qm6AwEkAV6vddZG", "object": "customer", "created_at": 1625091071, "corporate": false, "custom_reference": "", "payment_sources": { "object": "list", "has_more": false, "total": 1, "data": [ { "id": "off_ref_2q21qm6DilD9V6vZH", "object": "payment_source", "type": "oxxo_recurrent", "provider": "Oxxo", "reference": "93001481144221", "barcode": "93001481144221", "barcode_url": "https://s3.amazonaws.com/cash_payment_barcodes/93001481144221.png", "expires_at": 0, "created_at": 1625091071, "parent_id": "cus_2q21qm6AH3kAV6vZG" } ] } } Lo que no me queda claro es dónde o cómo le voy a decir a Conekta el monto a pagar por parte del cliente y cómo puedo crear las refecencias personalizadas (si es que es posible), por más que busco en documentación o internet no logro encontrar solucion. El objetivo es que el cliente pague XX$ recurrentemente en oxxo con una referencia fija y que dicho monto pueda variar si genera algún recargo (por ejemplo). De antemano gracias, Saludos! VG

Posted by Victor 2 months ago