Before you begin

This guide assumes that you know how to

Accept payments with iPAY88

Prepare the API

iPAY88 requires the following data to process a payment successfully. Pass the following data in the client session, or in the payment request (for manual payment creation).

Parameter NameRequiredDescription
3-letter currency code in ISO 4217 format, e.g. USD for US dollars
  1. order
Details of the line items of the order
  1. order
  2. lineItems

Description of the line item

  1. order

Must by MY

  1. customer

First name of the customer

  1. customer

Last name of the customer

  1. customer

Customer email address

Prepare the SDK for payments

Pre-requisites

iPay88 requires the installation of a separate library via Cocoapods.

If you are using Cocoapods, add the line below in your Podfile

12345678
target 'App' do  //...    pod 'PrimerSDK'  // Add the line below to enable iPay88  pod 'PrimerIPay88SDK' end
jsx
copy

Handle payment method

Use the function showPaymentMethod to start the iPay88 payment flow:

1
PrimerHeadlessUniversalCheckout.current.showPaymentMethod("IPAY88_CARD")
swift
copy

Limitations

    Go live

    You don’t need to do anything particular to go live — just make sure to use production credentials.