px-android icon indicating copy to clipboard operation
px-android copied to clipboard

Create CardToken?

Open TesLake opened this issue 2 years ago • 1 comments

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.

TesLake avatar Jul 18 '22 20:07 TesLake

Hi, it's ok to use this method in production but you should use the service APIs directly on your app.

guchito9 avatar Aug 04 '22 14:08 guchito9