Instance Method

createFallbackLink(amount:breakdown:)

Generates a fallback payment link in case Tap to Pay fails.

Declaration

func createFallbackLink(amount: Int, breakdown: PaymentBreakdown?) async throws -> FallbackResponse

Parameters

amount

The amount to request payment for (in cents).

breakdown

Optional payment breakdown details.

Return Value

A FallbackResponse with a URL to present to the customer.

Discussion

This provides a browser-based payment experience as a backup to in-person payments.