Cards

CardManager object needs to be obtained first to start working with cards:

val mercuryo: Mercuryo = Mercuryo.create(...)  
val cardManager: CardManager = mercuryo.card

List of cards

To get a list of linked cards, call the method:

cardManager.getCards(limit: Int, offset: Int): List<Card>

Adding card

cardManager.bindCard(holderName: String, number: String, cvv: String, expirationMonth: String, expirationYear: String, redirectUrl: String): BindCard

Parameter

Description

holderName

Cardholder name

number

Number of card

cvv

CVV of card

expirationMonth

Expiration month

expirationYear

Expiration year

redirectUrl

URL where user will be redirected to after operation. Example: http://my.mercuryo.io/orders?invoice={invoice_id}

Removing card

To delete a card call the deleteCard method passing the card identifier.

cardManager.deleteCard(cardId: String) 

Last updated

Was this helpful?