PaymentIntentProvider
interface PaymentIntentProvider
Interface for providing PaymentIntent objects asynchronously. This allows consumer applications to provide payment intents on demand rather than having to provide them upfront when creating payment sessions.
Simple Implementation Example
class MyPaymentProvider(private val apiKey: String, private val userId: String?) : PaymentIntentProvider {
override fun provide(callback: PaymentIntentCallback) {
// Your implementation here - any complexity, any properties
// No need to worry about Parcelable or Serializable
}
}Content copied to clipboard
The SDK handles all the complexity of passing providers between activities automatically.
Types
Link copied to clipboard
interface PaymentIntentCallback
Callback interface for receiving PaymentIntent results