Safe Haskell | None |
---|---|
Language | Haskell2010 |
- newApplePaySession :: MonadDOM m => Word -> ApplePayPaymentRequest -> m ApplePaySession
- supportsVersion :: MonadDOM m => ApplePaySession -> Word -> m Bool
- supportsVersion_ :: MonadDOM m => ApplePaySession -> Word -> m ()
- canMakePayments :: MonadDOM m => ApplePaySession -> m Bool
- canMakePayments_ :: MonadDOM m => ApplePaySession -> m ()
- canMakePaymentsWithActiveCard :: (MonadDOM m, ToJSString merchantIdentifier) => ApplePaySession -> merchantIdentifier -> m Bool
- canMakePaymentsWithActiveCard_ :: (MonadDOM m, ToJSString merchantIdentifier) => ApplePaySession -> merchantIdentifier -> m ()
- openPaymentSetup :: (MonadDOM m, ToJSString merchantIdentifier) => ApplePaySession -> merchantIdentifier -> m Bool
- openPaymentSetup_ :: (MonadDOM m, ToJSString merchantIdentifier) => ApplePaySession -> merchantIdentifier -> m ()
- begin :: MonadDOM m => ApplePaySession -> m ()
- abort :: MonadDOM m => ApplePaySession -> m ()
- completeMerchantValidation :: (MonadDOM m, ToJSVal merchantSession) => ApplePaySession -> merchantSession -> m ()
- completeShippingMethodSelectionUpdate :: MonadDOM m => ApplePaySession -> ApplePayShippingMethodUpdate -> m ()
- completeShippingContactSelectionUpdate :: MonadDOM m => ApplePaySession -> ApplePayShippingContactUpdate -> m ()
- completePaymentMethodSelectionUpdate :: MonadDOM m => ApplePaySession -> ApplePayPaymentMethodUpdate -> m ()
- completePaymentResult :: MonadDOM m => ApplePaySession -> ApplePayPaymentAuthorizationResult -> m ()
- completeShippingMethodSelection :: MonadDOM m => ApplePaySession -> Word -> ApplePayLineItem -> [ApplePayLineItem] -> m ()
- completeShippingContactSelection :: MonadDOM m => ApplePaySession -> Word -> [ApplePayShippingMethod] -> ApplePayLineItem -> [ApplePayLineItem] -> m ()
- completePaymentMethodSelection :: MonadDOM m => ApplePaySession -> ApplePayLineItem -> [ApplePayLineItem] -> m ()
- completePayment :: MonadDOM m => ApplePaySession -> Word -> m ()
- pattern STATUS_SUCCESS :: forall a. (Num a, Eq a) => a
- pattern STATUS_FAILURE :: forall a. (Num a, Eq a) => a
- pattern STATUS_INVALID_BILLING_POSTAL_ADDRESS :: forall a. (Num a, Eq a) => a
- pattern STATUS_INVALID_SHIPPING_POSTAL_ADDRESS :: forall a. (Num a, Eq a) => a
- pattern STATUS_INVALID_SHIPPING_CONTACT :: forall a. (Num a, Eq a) => a
- pattern STATUS_PIN_REQUIRED :: forall a. (Num a, Eq a) => a
- pattern STATUS_PIN_INCORRECT :: forall a. (Num a, Eq a) => a
- pattern STATUS_PIN_LOCKOUT :: forall a. (Num a, Eq a) => a
- validatemerchant :: EventName ApplePaySession onvalidatemerchant
- paymentmethodselected :: EventName ApplePaySession onpaymentmethodselected
- paymentauthorized :: EventName ApplePaySession onpaymentauthorized
- shippingmethodselected :: EventName ApplePaySession onshippingmethodselected
- shippingcontactselected :: EventName ApplePaySession onshippingcontactselected
- cancel :: EventName ApplePaySession oncancel
- newtype ApplePaySession = ApplePaySession {}
- gTypeApplePaySession :: JSM GType
Documentation
newApplePaySession :: MonadDOM m => Word -> ApplePayPaymentRequest -> m ApplePaySession Source #
supportsVersion :: MonadDOM m => ApplePaySession -> Word -> m Bool Source #
supportsVersion_ :: MonadDOM m => ApplePaySession -> Word -> m () Source #
canMakePayments :: MonadDOM m => ApplePaySession -> m Bool Source #
canMakePayments_ :: MonadDOM m => ApplePaySession -> m () Source #
canMakePaymentsWithActiveCard :: (MonadDOM m, ToJSString merchantIdentifier) => ApplePaySession -> merchantIdentifier -> m Bool Source #
canMakePaymentsWithActiveCard_ :: (MonadDOM m, ToJSString merchantIdentifier) => ApplePaySession -> merchantIdentifier -> m () Source #
openPaymentSetup :: (MonadDOM m, ToJSString merchantIdentifier) => ApplePaySession -> merchantIdentifier -> m Bool Source #
openPaymentSetup_ :: (MonadDOM m, ToJSString merchantIdentifier) => ApplePaySession -> merchantIdentifier -> m () Source #
begin :: MonadDOM m => ApplePaySession -> m () Source #
abort :: MonadDOM m => ApplePaySession -> m () Source #
completeMerchantValidation :: (MonadDOM m, ToJSVal merchantSession) => ApplePaySession -> merchantSession -> m () Source #
completeShippingMethodSelectionUpdate :: MonadDOM m => ApplePaySession -> ApplePayShippingMethodUpdate -> m () Source #
completeShippingContactSelectionUpdate :: MonadDOM m => ApplePaySession -> ApplePayShippingContactUpdate -> m () Source #
completePaymentMethodSelectionUpdate :: MonadDOM m => ApplePaySession -> ApplePayPaymentMethodUpdate -> m () Source #
completePaymentResult :: MonadDOM m => ApplePaySession -> ApplePayPaymentAuthorizationResult -> m () Source #
completeShippingMethodSelection :: MonadDOM m => ApplePaySession -> Word -> ApplePayLineItem -> [ApplePayLineItem] -> m () Source #
completeShippingContactSelection :: MonadDOM m => ApplePaySession -> Word -> [ApplePayShippingMethod] -> ApplePayLineItem -> [ApplePayLineItem] -> m () Source #
completePaymentMethodSelection :: MonadDOM m => ApplePaySession -> ApplePayLineItem -> [ApplePayLineItem] -> m () Source #
completePayment :: MonadDOM m => ApplePaySession -> Word -> m () Source #
pattern STATUS_SUCCESS :: forall a. (Num a, Eq a) => a Source #
pattern STATUS_FAILURE :: forall a. (Num a, Eq a) => a Source #
pattern STATUS_INVALID_BILLING_POSTAL_ADDRESS :: forall a. (Num a, Eq a) => a Source #
pattern STATUS_INVALID_SHIPPING_POSTAL_ADDRESS :: forall a. (Num a, Eq a) => a Source #
pattern STATUS_INVALID_SHIPPING_CONTACT :: forall a. (Num a, Eq a) => a Source #
pattern STATUS_PIN_REQUIRED :: forall a. (Num a, Eq a) => a Source #
pattern STATUS_PIN_INCORRECT :: forall a. (Num a, Eq a) => a Source #
pattern STATUS_PIN_LOCKOUT :: forall a. (Num a, Eq a) => a Source #
validatemerchant :: EventName ApplePaySession onvalidatemerchant Source #
paymentmethodselected :: EventName ApplePaySession onpaymentmethodselected Source #
paymentauthorized :: EventName ApplePaySession onpaymentauthorized Source #
shippingmethodselected :: EventName ApplePaySession onshippingmethodselected Source #
shippingcontactselected :: EventName ApplePaySession onshippingcontactselected Source #
newtype ApplePaySession Source #
Functions for this inteface are in JSDOM.ApplePaySession. Base interface functions are in: