airwallex / airwallex-payment-android

Airwallex PA Android SDK
MIT License
8 stars 12 forks source link

[MOB-1952] Open low-level API for confirming card payment #109

Closed aw-hector closed 3 months ago

aw-hector commented 3 months ago

This enables two public low-level apis:

fun confirmPaymentIntent(
        session: AirwallexSession,
        card: PaymentMethod.Card,
        billing: Billing?,
        saveCard: Boolean = false,
        listener: PaymentResultListener
)
fun confirmPaymentIntent(
        session: AirwallexPaymentSession,
        paymentConsentId: String,
        listener: PaymentResultListener
)

So that merchant can use their own custom UI to collect card payment info and use these apis to confirm a payment intent or create a payment consent, both APIs fully handle 3DS verification except cancellation.