Integrating REST APIs

Please Note: As an ISV / Paysafe Partner, you will need to complete all of the below "merchant" steps on behalf of the Parent Merchant Legal Entity (PMLE) that your merchants will be operating under.

Once you have successfully integrated with the Google Pay API, you can now complete your integration with our REST APIs to process Google Pay transactions.

  1. Get a Paysafe single-use token using the data provided by Google Pay

    POST /customervault/v1/googlepaysingleusetokens

    The Test environments of Google and Paysafe return payment tokens that you can use for test purposes only. These tokens are not live chargeable tokens.

    You should check the value of the paymentMethod whether it is "CARD_ON_FILE" or "TOKENIZED CARD". Based on this information, you should use only the corresponding Paysafe merchant id.

  2. In the response, you will find a paymentToken value and the cardBin to include with your Authorization or Purchase request in the Card Payments API.

    If the paymentMethod is CARD_ON_FILE, then you should invoke the 3DS flow in compliance with the SCA requirements.
  3. From your server, call the Card Payments API to process a transaction using the single-use token.

    From your server, use the single-use token (paymentToken) to make an authorization or purchase request to our Card Payments API.

    This call needs to be made using the API key for server-to-server API calls.

  4. POST /cardpayments/v1/accounts/account_id/auths

  5. Send the response your server receives from the Card Payments API to the web.

    The Card Payments API will return a response (successful or failed) to your server, which you need to send back to your application.

    The request and response format is the same as for regular tokenized card payments requests and responses.

Did you find this page useful?