Masterpass

Server-Side Implementationanchor

availability

Masterpass has been replaced with the latest unified checkout experience offered through Visa known as Secure Remote Commerce (SRC). If you were previously using Masterpass, you will need to integrate with SRC.

SRC is currently in a limited release to eligible merchants, and the API is subject to change. It was introduced in Android v2, iOS v4, and JavaScript v3 of our Client SDKs.

Contact us to request access to the release.

Creating transactionsanchor

Creating a Masterpass transaction is the same as creating any other transaction with a nonce.

Collect device data from the client and include the deviceDataFromTheClient in the transaction.

  1. PHP
$result = $gateway->transaction()->sale([
  'amount' => '10.00',
  'paymentMethodNonce' => $nonceFromTheClient,
  'deviceData' => $deviceDataFromTheClient,
  'options' => [
    'submitForSettlement' => True
  ]
]);

if ($result->success) {
  // See $result->transaction for details
} else {
  // Handle errors
}

Vaulting Masterpassanchor

important

Vaulting can only be used to support recurring transactions. You will need to obtain approval from Masterpass in order to do so.

Once you have been approved for recurring transactions, your customer's Masterpass card selection can be saved to your Vault and used for recurring transactions. If you attempt to vault a Masterpass card without first going through the approval process, you will get a validation error: "Nonce is not vaultable."

  1. PHP
$result = $gateway->paymentMethod()->create([
    'customerId' => '12345',
    'paymentMethodNonce' => nonceFromTheClient
]);

You can also save the customer's Masterpass card to your Vault at the same time as your transaction by using Transaction: Sale with options.storeInVault or options.storeInVaultOnSuccess . You can create a recurring transaction by using Transaction: Sale with recurring .

It is important to note that Masterpass does not support split shipments or one-off transactions with vaulted payment information. If you attempt to create a non-recurring transaction from a vaulted Masterpass card, you'll receive a validation error: "Vaulted cards from this payment method can only be used for recurring transactions."

Card verificationanchor

Card verification in the gateway is not supported with Masterpass. Masterpass automatically verifies a card when the customer adds it to their wallet.


Next Page: Testing and Go Live