How It Works

Regardless of how you integrate with the Paysafe Android SDK, the same Card Payments API is used for processing purchase requests with Paysafe. However, there are differences between the flow for Google Pay and the flow for card payments from an Android mobile app.

  • Mobile Payments (Direct Input in Android App) – For card payments from an Android mobile app, the user enters card data on their mobile device. This card data is sent securely to the Paysafe Customer Vault, where it is tokenized, and the payment processing requests are made from the merchant server via a server-side SDK. The user can select from a list of cards they have tokenized within the Customer Vault.
  • Google Pay – Google Pay allows customer to use any credit or debit card in their Google account, plus their Android Pay credentials they have provisioned to their phone.

How Mobile Payments Work

  1. The user enters card details in the Android mobile app.

  2. The Android mobile app collects the payment and order data and sends it to the Paysafe Customer Vault API, which returns a single-use token to the mobile device. Single-use tokens are valid for only 15 minutes and are not consumed by verification.

  3. This single-use token is sent to the server-side SDK, from which a purchase request is sent to Paysafe Card Payments API.

  4. If desired, the user profile can be saved by indicating this on the mobile app. In this case, the server-side SDK sends the single-use token to the Paysafe Customer Vault API and in return receives a reusable payment token that is stored on the merchant's server.

    You can convert this temporary, single-use payment token into a permanent, re-usable payment token by using it to create a profile in the Customer Vault. Permanent tokens make it possible to implement capabilities such as recurring billing (perhaps used to pay a subscription) or a "remember me" feature.

Android Mobile App Payment Flow

Android Mobile App Payment Flow

How Google Pay Works

  1. The customer registers one or more credit and/or debit cards with their Google account.
  2. To allow Google Pay transactions, the customer must configure their Google account on their mobile device.
  3. Once the customer's Google account is configured on the device, Google Pay can access the list of cards registered with it – including cards registered with Android Pay – and return them to Paysafe in an encrypted payload.
  4. Once the user taps the Google Pay button in the merchant's mobile app, the list of cards is populated.
  5. The customer must select one of the cards to proceed with the transaction.
  6. Once the card is selected, the encrypted payload for that card is sent to the Paysafe Customer Vault API.
  7. The Customer Vault API validates the payload, decrypts it, and returns a single-use payment token.

Google Pay Flow

Did you find this page useful?