px-android
px-android copied to clipboard
Create CardToken?
I am using MercadoPagoService to create card tokens in an Android App like this:
val mpServices = MercadoPagoServices(context, publicKey, null)
val cardToken = CardToken(
cardNumber,
cardExpirationMonth,
cardExpirationYear,
securityCode,
cardholderName,
"",
""
)
mpServices.createToken(cardToken, object : Callback<Token?>() {
.....
}
its working correctly but I get a message that the CardToken object is deprecated, is it ok to use this method in production code or is there a newer approach to creating CardTokens from android?
Thank you.
Hi, it's ok to use this method in production but you should use the service APIs directly on your app.