0
I am using the Pagseguro API Git and I’m unable to find how to generate the credit card token to make the checkout transparent.
In the example project you have the following command:
// Sets a credit card token.
checkout.Token = "9a476b3a36124756a343712754638c7c";
In the documentation of Pagseguro have to generate the token have to make the following request via Javascript
PagSeguroDirectPayment.createCardToken({
cardNumber: NUMERO_DO_CARTAO,
brand: BANDEIRA,
cvv: CODIGO_DE_SEGURANCA,
expirationMonth: MES_DE_EXPIRACAO,
expirationYear: ANO_DE_EXPIRACAO,
success: FUNCAO_DE_CALLBACK_PARA_SUCESSO,
error: FUNCAO_DE_CALLBACK_PARA_FALHA,
complete: FUNCAO_DE_CALLBACK_PARA_TODAS_AS_CHAMADAS
});
Does anyone know if they have how to generate the Token via the Pagseguro API?
According to the documentation, to do this you need to use their Javascript library. However I think you can use a Webbrowser in your app to try to embed this.
– Tony