Overview

Set the PrimerHeadlessUniversalCheckoutUIDelegate in order to receive callbacks from Primer SDK about UI events.

primerHeadlessUniversalCheckoutUIDidStartPreparation

This method will be called when the SDK starts preparing to tokenize the payment method.

1
func primerHeadlessUniversalCheckoutUIDidStartPreparation(for paymentMethodType: String)
swift
copy

primerHeadlessUniversalCheckoutUIDidShowPaymentMethod

This method will be called when the payment method UI gets displayed.

1
func primerHeadlessUniversalCheckoutUIDidShowPaymentMethod(for paymentMethodType: String)
swift
copy