Manage Cards

Enterprise SDK / Core Concepts

A user may have multiple cards, but one will be marked as “promoted”. This means that this card will be attempted to be charged first when a payment is made.

Several requests are supported by the SDK:

  • Requesting information on all of the user’s cards. The user’s CVV and full credit card number are not included.
  • Adding a credit/debit card.
  • Promoting a card. This will automatically “unpromote” the currently promoted card.
  • Deleting a card.

iOS

Cards are represented by the LUCreditCard class. Use LUCreditCardRequestFactory to create requests.

Android

Cards are represented by the CreditCard class. Use the CreditCardRequestFactory to create the credit card request. The response should be parsed with the CreditCardJsonFactory if the response status is LevelUpStatus.OK.