Foro
FLUTTER + CONEKTA API
tengo este error con conekta y flutter
- Me aparece que debo instalar conekta:^6.0.0-beta.2, la cosa es que no funciona por que sale error en un regex.
Intento instalar la versión 6.0.2 y aparece este error: Because every version of flutter_test from sdk depends on meta 1.10.0 and conekta >=6.0.0 depends on meta 1.9.1, flutter_test from sdk is incompatible with conekta >=6.0.0.
Posted by jose francisco perez merino about 1 month ago
Conekta plugin + woocommerce
Hola algunos pedidos me salen con esta leyenda:
Awaiting the conekta payment El estado del pedido cambió de Pendiente de pago a En espera.
Y después se cancelan o no llegan a la información del Dashboard de Conekta
alguien sabe a qué se deba ?
Posted by Alex about 1 month ago
Problema con conexión Conekta
Hola ya me traté de comunicar por correo y obtengo las respuestas de que todo está bien y no hay ningún error al parecer. Pero obtengo el mismo error de este foro. Si, tengo la versión de dart 3.2.6(stable).
import 'package:conekta/conekta.dart';
Future<void> main() async {
var instance = Conekta();
instance.setBearerAuth("bearerAuth", "**********\*\***********");
final api = instance.getCustomersApi();
var customer = Customer((b) => b
..name = 'Francisco Perez'
..email = '[[email protected]](mailto:[email protected])'
..phone = '5555555555'
);
var response = await api.createCustomer(customer: customer);
print(response.data);
El error: Unhandled exception:
FormatException: Invalid group (?i)^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \\t](;.)?$
Posted by Francisco float about 1 month ago
Conekta Customer Email Null in C# library ..
hello im use the Conekta 6.07
```
var customer = new Customer()
{
Name = user.FirstName + " " + user.LastName,
Email = user.Email,
Phone = user.CellPhone,
};
```
i hardcode the Customer information with string and have the same error email is required ... can help me
Posted by pedro manuel salas galindo about 1 month ago
El usuario no está recibiendo el correo electrónico con el template de notificación
Hola!
El usuario no está recibiendo el correo electrónico con el template de notificación enviado por Conekta. Tengo dos tiendas, y mientras en una de ellas el correo con el template de pago de OXXO llega correctamente, en la otra tienda no está llegando. ¿Qué debo hacer para asegurarme de que también llegue en la otra tienda?
Posted by Jose about 1 month ago
Obtener por separado comisión de pago y de meses sin intereses
Hola, ¿hay manera que con el endpoint <https://developers.conekta.com/reference/gettransactions> se obtengan por separado las comisiones de pago y de financiamiento a meses sin intereses??
Ya que cuando el pago es a meses sin intereses la comisión que devuelve gettransactions es la de comisión de pago + comisión MSI.
```json
```
{
"amount": 248000,
"fee": 28828,
"net": 219172,
"currency": "MXN",
"status": "pending",
"type": "capture",
"livemode": false,
"id": "65ce377e2e22a3002a0dcc5c",
"charge": "65ce377e2e22a3002a0dcc3d",
"created_at": 1708013438,
"object": "transaction"
}
Posted by Omar about 1 month ago
En SuccessUrl no se puede obtener los datos de la transaccion con charge_id
Hola, cuando se realiza un pago con tarjeta, en mi acción SuccessUrl obtengo los datos de la orden con <https://developers.conekta.com/reference/getorderbyid> eso me devuelve el json que pongo más adelante, donde se ve que el estatus del pago es pagado, pero si en el SuccessUrl intento obtener los datos de la transacción con <https://developers.conekta.com/reference/gettransactions> filtrándolas por charge_id no encuentra ninguna transacción, entre 10 y 15 segundos después que fui redirigido a SuccessUrl se recibe el webhook charge.paid, en este punto si consulto la transacción ya obtiene los datos.
La pregunta es porque no puedo obtener los datos de la transacción en el SuccessUrl cuando la orden ya está pagada sin tener que esperar al webhook charge.paid???
```json
{
"livemode": false,
"amount": 248000,
"currency": "MXN",
"payment_status": "paid",
"amount_refunded": 0,
"split_payment": null,
"customer_info": {
"email": "[email protected]",
"phone": "8331111111",
"name": "Omar",
"corporate": false,
"customer_id": "cus_2udimhRFsexircbTr",
"object": "customer_info",
"customer_custom_reference": "1"
},
"shipping_contact": null,
"channel": {
"segment": "Checkout",
"checkout_request_id": "f5b577bd-436d-4df7-8636-9cf2a47fd8cf",
"checkout_request_type": "HostedPayment",
"id": "channel_2vRmEC2hBihm19dxA"
},
"fiscal_entity": null,
"checkout": {
"id": "f5b577bd-436d-4df7-8636-9cf2a47fd8cf",
"name": "Curso",
"livemode": false,
"emails_sent": 0,
"success_url": "https://localhost:5001/s/p/conekta-payment-status",
"failure_url": "https://localhost:5001/s/p/conekta-payment-status",
"payments_limit_count": null,
"paid_payments_count": 0,
"sms_sent": 0,
"status": "Issued",
"type": "HostedPayment",
"recurrent": false,
"starts_at": 1707976800,
"expires_at": 1708017281,
"allowed_payment_methods": [ "card", "bank_transfer", "cash" ],
"exclude_card_networks": [],
"needs_shipping_contact": false,
"monthly_installments_options": [ 3, 6 ],
"monthly_installments_enabled": true,
"redirection_time": 30,
"force_3ds_flow": false,
"plan_id": null,
"metadata": {},
"can_not_expire": false,
"object": "checkout",
"is_redirect_on_failure": true,
"slug": "f5b577bd436d4df786369cf2a47fd8cf",
"url": "https://pay.conekta.com/checkout/f5b577bd436d4df786369cf2a47fd8cf"
},
"object": "order",
"id": "ord_2vRmEC2hBihm19dx9",
"metadata": {
"customer_IDCuenta": "1"
},
"is_refundable": true,
"processing_mode": null,
"created_at": 1708009911,
"updated_at": 1708009922,
"line_items": {
"object": "list",
"has_more": false,
"total": 2,
"data": [
{
"name": "Libro",
"description": "Libro",
"unit_price": 59000,
"quantity": 1,
"sku": null,
"tags": null,
"brand": null,
"type": null,
"object": "line_item",
"id": "line_item_2vRmEC2hBihm19dx6",
"parent_id": "ord_2vRmEC2hBihm19dx9",
"metadata": {},
"antifraud_info": {}
},
{
"name": "Curso",
"description": "Curso",
"unit_price": 162931,
"quantity": 1,
"sku": null,
"tags": null,
"brand": null,
"type": null,
"object": "line_item",
"id": "line_item_2vRmEC2hBihm19dx5",
"parent_id": "ord_2vRmEC2hBihm19dx9",
"metadata": {},
"antifraud_info": {}
}
]
},
"shipping_lines": null,
"tax_lines": {
"object": "list",
"has_more": false,
"total": 1,
"data": [
{
"description": "IVA",
"amount": 26069,
"object": "tax_line",
"id": "tax_lin_2vRmEC2hBihm19dx7",
"parent_id": "ord_2vRmEC2hBihm19dx9",
"metadata": null
}
]
},
"discount_lines": null,
"charges": {
"object": "list",
"has_more": false,
"total": 1,
"data": [
{
"id": "65ce29c1ceda440027dc7fc1",
"livemode": false,
"created_at": 1708009921,
"currency": "MXN",
"failure_code": null,
"failure_message": null,
"monthly_installments": null,
"device_fingerprint": "dc9b091a8d4dbe14352e0fe46016147e",
"channel": {
"segment": "Checkout",
"checkout_request_id": "f5b577bd-436d-4df7-8636-9cf2a47fd8cf",
"checkout_request_type": "HostedPayment",
"id": "channel_2vRmEKjXAWxV56LwQ"
},
"payment_method": {
"name": "omar",
"exp_month": "12",
"exp_year": "30",
"auth_code": "196595",
"object": "card_payment",
"type": "credit",
"normalized_device_fingerprint": null,
"last4": "5100",
"brand": "mastercard",
"issuer": "banorte_pr",
"account_type": "BANORTE",
"contract_id": null,
"country": "MX",
"fraud_score": null,
"fraud_indicators": [],
"token_id": "tok_2vRmEKGe1Hd1EsFiA",
"antifraud_is_self_service_rules": false
},
"object": "charge",
"description": "Payment from order",
"is_refundable": true,
"reference_id": null,
"status": "paid",
"amount": 248000,
"paid_at": 1708009922,
"customer_id": "cus_2udimhRFsexircbTr",
"order_id": "ord_2vRmEC2hBihm19dx9",
"customer_custom_reference": "1",
"refunds": null
}
]
}
}
```
Posted by Omar about 1 month ago
Catch error on web checkout tokenizer
I'm testing the web checkout tokenizer with the card number 4311 0000 0000 0000. Nothing happens after I click the continue button. Checking in the developer console on chrome I get a 422 error code and checking the answer of the tokens endpoint i get this
{
"object": "error",
"type": "parameter_validation_error",
"message": "Some of the card information is invalid. Please review the information and try again.",
"message_to_purchaser": "Alguno de los datos de la tarjeta es inválido. Revisa la información y vuelve a intentarlo.",
"param": "card\[card[number]]",
"code": "invalid_number",
"validation_error": null
}
But I'm trying to get this error message in the onCreateTokenError event of the web tokenizer with no luck. This information can be read in this event or how can i get this info in code?
Posted by Cesar Cazares about 1 month ago
401 Unauthorized + PHP
Hola Buenas tardes estoy realizando una prueba de conexion con la api de conekta atraves de php, pero obtengo el error 401 Unauthorized, ya estuve verificando mi apikey y es la correcta, estoy probando con este codigo
<?php
require_once 'vendor/autoload.php';
$config = Conekta\\Configuration::getDefaultConfiguration()->setAccessToken('miApiKey');
$apiInstance = new Conekta\\Api\\CustomersApi(
new GuzzleHttp\\Client(),
$config
);
$customer = new \\Conekta\\Model\\Customer(array(
'name' => 'Nombre del Cliente',
'email' => '[[email protected]](mailto:[email protected])',
'phone' => '+5215555555555',
'payment_sources' => \[
[
'type' => 'card',
'token_id' => 'tok_test_visa_4242'
]
]
));
$accept_language = "es";
$x_child_company_id = "6441b6376b60c3a638da80af";
try {
$result = $apiInstance->createCustomer($customer, $accept_language, $x_child_company_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CustomersApi->createCustomer: ', $e->getMessage(), PHP_EOL;
} catch (\\Conekta\\ProcessingError $error) {
echo "Error de procesamiento: " . $error->getMessage();
} catch (\\Conekta\\ParameterValidationError $error) {
echo "Error de validación de parámetros: " . $error->getMessage();
} catch (\\Conekta\\Handler $error) {
echo "Error general: " . $error->getMessage();
}
?>
al llamar el archivo atraves de postman me manda el siguiente error
![](https://files.readme.io/55e6b07-image.png)
Posted by juan Contreras about 2 months ago
Puedo identificar si los payments se originan usando distintas secret_key
Hola, tengo una cuenta de Conketa para pagos con tarjeta y me gustaría identificar cual fue en el nombre de la clave secreta utilizada para hacer la solicitud del cobro via api. ¿Es posible identificar esto en algún reporte?
Posted by Martin about 2 months ago