When the submit method is called, the SDK will attempt to create a payment based on the raw data set in the rawData method. If no data is set, the SDK will call the primerHeadlessUniversalCheckoutDidFail method.

1
func submit()
swift
copy