Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error create token #7

Open
willy1096 opened this issue Sep 13, 2024 · 0 comments
Open

error create token #7

willy1096 opened this issue Sep 13, 2024 · 0 comments

Comments

@willy1096
Copy link

willy1096 commented Sep 13, 2024

var instance = Conekta();
instance.setBearerAuth("bearerAuth", "key");
// final privatekey = sl().getConektaPrivateKey();
// instance.dio.options.baseUrl = 'https://api.conekta.io/token';
final api = instance.getTokensApi();
final tokenCard = TokenCard((c)=>c
..name = request.name
..number = request.cardNumber
..cvc = request.cvc
..expMonth = request.expMonth
..expYear = request.expYear);

try {
var token = Token((b) => b..card.replace(tokenCard));
final response = await api.createToken(token: token,acceptLanguage: 'es');
}

error:
"details": [
{
"debug_message": "We can only process data from cards that have been properly tokenized or that come from a site that meets PCI compliance. If your site meets the standards , send a copy of your certificate and PCI contacto@conekta attribute io requests access.",
"message": "Solamente podemos procesar datos de tarjetas que han sido tokenizadas o que provengan de sitios seguros que cumplan los estándares de PCI.",
"param": null,
"code": "conekta.errors.authentication.tokenization.no_js_agent"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant