I'm using the PayPal API Git and I can not figure out how to generate the credit card token to do the transparent checkout.
In the sample project you have the following command:
// Sets a credit card token.
checkout.Token = "9a476b3a36124756a343712754638c7c";
In the PagSeguro documentation you have to generate the token you have who 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 it is possible to generate the Token via the PagSeguro API?