Receiving Payment from UpLift
  • 20 Jun 2023
  • 1 Minute to read
  • Dark
    Light

Receiving Payment from UpLift

  • Dark
    Light

Article summary

Receiving Payment from Uplift

One of the most important callback method is the didCreateVirtualCard. The ULPMVirtualCard, which is received in this call, is a virtual payment card that will be used to pay for the booking.

/**
 * You can find a Kotlin example in the example project's PayActivity.kt. 
 * You can check the whole paying mechanism here.
 */
  override fun didCreateVirtualCard(ulVirtualCard: ULPMVirtualCard) {
    // Pay the current order in your system with the received virtual card 
}

Virtual Card Schema

The customer’s contact information will be used for the virtual payment card. The following indicates the expected property types of the virtualCard object. For more information please check the ULPMVirtualCard class.

data class ULPMVirtualCard(
    val ccv: String?,
    val cardNumber: String?,
    val expirationMonth: Int?,
    val expirationYear: Int?,
    val nameOnCard: String?,
    val cardType: String?,
    val contact: ULContact?,
    val cardToken: String?,
    val cardId: String?
)

Was this article helpful?