Mobile SDK walkthrough

You can use the AffiniPay mobile SDK to embed a payment screen into your mobile apps. Using this screen and an optional AffiniPay card reader or manual entry, your merchants can take credit card payments securely through your mobile apps.

The mobile SDK screen collects payment details. Your backend server, which must already be connected to the AffiniPay Payment Platform, submits the charge.

After you integrate the mobile SDK into your mobile app, it’s easy for your merchants to make a charge. Here’s the full charge workflow, using all mobile SDK screens:

1: Obtain and tokenize payment details

  1. Through the mobile SDK screens in your mobile app, the merchant:
    • Enters an amount to be charged.
    • Connects the AffiniPay card reader into the mobile device and swipes or inserts the credit card. Alternately, the merchant can manually enter the card number, expiration date, and CVV.
  2. The mobile SDK submits the payment information and cardholder details to the AffiniPay Payment Gateway in exchange for a one-time payment token.

2: Submit the charge

  1. The mobile app submits the one-time payment token, amount, and other payment-related information to your backend server.

  2. Your backend server submits the charge to the AffiniPay Payment Gateway.

  3. The AffiniPay Payment Gateway returns the charge ID to your backend server.

AffiniPay has sample backend and mobile apps that you can download and install to familiarize yourself with how this process works.

Next step

To start taking payments, integrate the Android or iOS mobile SDK screen into your mobile app.