App Clips
Hyperswitch App Clip is a lightweight version of your iOS app that launches instantly (via QR code, NFC, or link) to let users complete payments quickly without installing the full app.
Last updated
Was this helpful?
Was this helpful?
@objc func openPaymentSheet(_ sender: Any) {
var config = PaymentSheet.Configuration()
config.primaryButtonLabel = "Purchase ($2.00)"
config.appearance = PaymentSheet.Appearance()
hyperViewModel.paymentSession?.presentPaymentSheetLite(
viewController: self,
configuration: config
) { result in
switch result {
case .completed:
self.statusLabel.text = "Payment complete"
case .failed(let error):
self.statusLabel.text = "Payment failed: \(error)"
case .canceled:
self.statusLabel.text = "Payment canceled."
}
}
}