Instance Method

completeMerchantValidation

Completes the validation for a merchant session.

Declaration

void completeMerchantValidation(any merchantSession);

Parameters

merchantSession

An opaque message session object, received from the Apple Pay server.

Discussion

Your server receives the merchant session object when it calls the Payment Session endpoint as described in Providing Merchant Validation.

You must pass the valid merchant session object to the completeMerchantValidation method to enable the user to authorize a transaction.

The guidelines for working with a merchant session are:

  • Request a new merchant session object for each transaction. You can only use a merchant session object a single time.

  • The merchant session object expires five minutes after it is created.

  • Never request the merchant session from the client. The request must be sent from your server.

See Also

Getting Merchant Validation

begin

Begins the merchant validation process.

onvalidatemerchant

An event handler that is called when the payment sheet is displayed.

ApplePayValidateMerchantEvent

An event object that contains the validation URL.