configure

Call this method to configure EmbeddedPaymentElement or when the IntentConfiguration values you used to configure EmbeddedPaymentElement (amount, currency, etc.) change.

This ensures the appropriate payment methods are displayed, collect the right fields, etc.

  • Note: Upon completion, paymentOption may become null if it's no longer available.