getPaymentIntent

abstract suspend fun getPaymentIntent(): PaymentIntent

Retrieves a PaymentIntent using suspend functions. This method should perform any necessary API calls or business logic to create and return a PaymentIntent.

Return

The PaymentIntent

Throws

if unable to retrieve the PaymentIntent