Handling Storefront & Price Changes
Approve or cancel a queued purchase when the storefront or price changes between enqueue and execution, using OnsidePaymentQueueDelegate.
The delegate
protocol OnsidePaymentQueueDelegate: AnyObject {
@MainActor func onsidePaymentQueue(
_ queue: OnsidePaymentQueue,
shouldContinue transaction: OnsidePaymentTransaction,
in storefront: OnsideStorefront
) -> Bool
@MainActor func onsidePaymentQueue(
_ queue: OnsidePaymentQueue,
shouldContinue transaction: OnsidePaymentTransaction,
in storefront: OnsideStorefront
) async -> Bool
}Implement the gate
Related
Last updated
Was this helpful?