Trigger secure native modal contexts for Apple Pay, Google Pay, and sensitive authentication sheets.
Trigger native secure modal contexts for Apple Pay, Google Pay, and sensitive authentication sheets. Nativine provides isolated native modal viewports that prevent webview script inspection during high-security payment processing.
Sensitive payment authorizations require isolated native UI contexts to meet Apple and Google store guidelines. Nativine's Secure Modal plugin renders native sheet viewports above your web application:
PKPaymentAuthorizationViewController) with biometric Face ID / Touch ID verification.merchant.com.yourcompany.app).To present an Apple Pay or Google Pay payment sheet from your web checkout page, call nativine.secureModal.presentApplePay():
nativine.secureModal.presentApplePay({
merchantId: 'merchant.com.yourcompany.app',
countryCode: 'US',
currencyCode: 'USD',
summaryItems: [
{ label: 'Order Total', amount: '49.99' }
],
callback: 'onApplePayTokenReceived',
onError: 'onApplePayCancelled'
});
| Parameter | Type | Description |
|---|---|---|
merchantId | string | Required. Registered Apple Merchant ID. |
summaryItems | array | Required. Array of line item objects with label and amount strings. |
Apple Pay requires an iOS device with a configured Wallet card. Xcode Simulator supports simulated Apple Pay test cards.
Yes. The encrypted PKPayment token string is returned to your callback so your backend payment processor can complete the charge.