webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
ApplePaySession Interface Reference

import"ApplePaySession.idl";

Inheritance diagram for ApplePaySession:
EventTarget

Public Member Functions

void begin ()
 
void abort ()
 
void completeMerchantValidation (any merchantSession)
 
void completeShippingMethodSelection (unsigned short status, ApplePayLineItem newTotal, sequence< ApplePayLineItem > newLineItems)
 
void completeShippingContactSelection (unsigned short status, sequence< ApplePayShippingMethod > newShippingMethods, ApplePayLineItem newTotal, sequence< ApplePayLineItem > newLineItems)
 
void completePaymentMethodSelection (ApplePayLineItem newTotal, sequence< ApplePayLineItem > newLineItems)
 
void completePayment (unsigned short status)
 
- Public Member Functions inherited from EventTarget
void addEventListener ([AtomicString] DOMString type, EventListener? callback, optional(AddEventListenerOptions or boolean) options=false)
 
void removeEventListener ([AtomicString] DOMString type, EventListener? callback, optional(EventListenerOptions or boolean) options=false)
 
boolean dispatchEvent (Event event)
 

Static Public Member Functions

static boolean supportsVersion (unsigned long version)
 
static boolean canMakePayments ()
 
static Promise< booleancanMakePaymentsWithActiveCard (DOMString merchantIdentifier)
 
static Promise< booleanopenPaymentSetup (DOMString merchantIdentifier)
 

Public Attributes

const unsigned short STATUS_SUCCESS = 0
 
const unsigned short STATUS_FAILURE = 1
 
const unsigned short STATUS_INVALID_BILLING_POSTAL_ADDRESS = 2
 
const unsigned short STATUS_INVALID_SHIPPING_POSTAL_ADDRESS = 3
 
const unsigned short STATUS_INVALID_SHIPPING_CONTACT = 4
 
const unsigned short STATUS_PIN_REQUIRED = 5
 
const unsigned short STATUS_PIN_INCORRECT = 6
 
const unsigned short STATUS_PIN_LOCKOUT = 7
 
attribute EventHandler onvalidatemerchant
 
attribute EventHandler onpaymentmethodselected
 
attribute EventHandler onpaymentauthorized
 
attribute EventHandler onshippingmethodselected
 
attribute EventHandler onshippingcontactselected
 
attribute EventHandler oncancel
 

Member Function Documentation

◆ abort()

void ApplePaySession::abort ( )

◆ begin()

void ApplePaySession::begin ( )

◆ canMakePayments()

static boolean ApplePaySession::canMakePayments ( )
static

◆ canMakePaymentsWithActiveCard()

static Promise<boolean> ApplePaySession::canMakePaymentsWithActiveCard ( DOMString  merchantIdentifier)
static

◆ completeMerchantValidation()

void ApplePaySession::completeMerchantValidation ( any  merchantSession)

◆ completePayment()

void ApplePaySession::completePayment ( unsigned short  status)

◆ completePaymentMethodSelection()

void ApplePaySession::completePaymentMethodSelection ( ApplePayLineItem  newTotal,
sequence< ApplePayLineItem newLineItems 
)

◆ completeShippingContactSelection()

void ApplePaySession::completeShippingContactSelection ( unsigned short  status,
sequence< ApplePayShippingMethod newShippingMethods,
ApplePayLineItem  newTotal,
sequence< ApplePayLineItem newLineItems 
)

◆ completeShippingMethodSelection()

void ApplePaySession::completeShippingMethodSelection ( unsigned short  status,
ApplePayLineItem  newTotal,
sequence< ApplePayLineItem newLineItems 
)

◆ openPaymentSetup()

static Promise<boolean> ApplePaySession::openPaymentSetup ( DOMString  merchantIdentifier)
static

◆ supportsVersion()

static boolean ApplePaySession::supportsVersion ( unsigned long  version)
static

Member Data Documentation

◆ oncancel

attribute EventHandler ApplePaySession::oncancel

◆ onpaymentauthorized

attribute EventHandler ApplePaySession::onpaymentauthorized

◆ onpaymentmethodselected

attribute EventHandler ApplePaySession::onpaymentmethodselected

◆ onshippingcontactselected

attribute EventHandler ApplePaySession::onshippingcontactselected

◆ onshippingmethodselected

attribute EventHandler ApplePaySession::onshippingmethodselected

◆ onvalidatemerchant

attribute EventHandler ApplePaySession::onvalidatemerchant

◆ STATUS_FAILURE

const unsigned short ApplePaySession::STATUS_FAILURE = 1

◆ STATUS_INVALID_BILLING_POSTAL_ADDRESS

const unsigned short ApplePaySession::STATUS_INVALID_BILLING_POSTAL_ADDRESS = 2

◆ STATUS_INVALID_SHIPPING_CONTACT

const unsigned short ApplePaySession::STATUS_INVALID_SHIPPING_CONTACT = 4

◆ STATUS_INVALID_SHIPPING_POSTAL_ADDRESS

const unsigned short ApplePaySession::STATUS_INVALID_SHIPPING_POSTAL_ADDRESS = 3

◆ STATUS_PIN_INCORRECT

const unsigned short ApplePaySession::STATUS_PIN_INCORRECT = 6

◆ STATUS_PIN_LOCKOUT

const unsigned short ApplePaySession::STATUS_PIN_LOCKOUT = 7

◆ STATUS_PIN_REQUIRED

const unsigned short ApplePaySession::STATUS_PIN_REQUIRED = 5

◆ STATUS_SUCCESS

const unsigned short ApplePaySession::STATUS_SUCCESS = 0

The documentation for this interface was generated from the following file: