Integrating Paysafe REST API

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 Apple Pay JS API or the Paysafe Request SDK, you can now complete your integration with our REST APIs to process Apple Pay transactions.

You need both your API Keys – API key for single-use token and Card API key.

Make the following sequence of API calls once you get the payload from the Apple Pay Session:

  1. Get a single-use token using the Apple Pay payment bundle

    If you have integrated Paysafe Request SDK, you already have the Paysafe single-use token. You don't need to call this endpoint.

    POST /customervault/v1/applepaysingleusetokens

    Use the API key for single-use token.

  2. Call the Card Payments API using the single-use token to process the transaction

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

    Use the Card API key.

    Call the following endpoint from your server to take payment:

    POST /cardpayments/v1/accounts/account_id/auths

  3. Send the response your server receives from the Card Payments API to the website.

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

Did you find this page useful?