UnifiedCheckoutConfig.fromPaymentIntention constructor

UnifiedCheckoutConfig.fromPaymentIntention({
  1. required String publicKey,
  2. required PaymentIntentionResponse response,
  3. String? title,
  4. String? description,
})

Create from Payment Intention Response

Implementation

factory UnifiedCheckoutConfig.fromPaymentIntention({
  required String publicKey,
  required PaymentIntentionResponse response,
  String? title,
  String? description,
}) {
  return UnifiedCheckoutConfig(
    publicKey: publicKey,
    clientSecret: response.clientSecret,
    title: title,
    description: description,
  );
}