session

HTTP method: POST

This endpoint initiates a new payment using the Card Wallet flow and retrieves merchant session data.

  • Sends a payment request with all relevant payment information to the payment gateway so the payment can be registered for later authorization.
  • Includes any additional data required by the wallet provider to retrieve a session used to proceed with the payment (for example, for Apple Pay the validationUrl is appended).
  • The returned session object (Body.WalletData.Session in our response) must be passed to session.completeMerchantValidation(JSON.parse(merchantSession)); to enable payment authorization.