Skip to main content

Setup Tappay

Prerequisites

  • Please create a Tappay account and get the app ID from Tappay Dashboard.
  • Create Merchant ID and Apple Pay Certificate from Apple Developer(Apple Pay is required).
  • Integrate your Merchant with Tappay Dashboard.
  • Please add the following config in your app.
{
"expo": {
"plugins": [
[
"expo-tappay", {
"applePay":{
"enable":true,
"merchantId": "YOUR_MERCHANT_ID", // replace with your Merchant ID
},
"linePay": {
"enable": true
},
"generic": {
"enable": true
},
}
]
]
}
}

Apple Pay

ParameterTypeDescription
enablebooleanWhether to enable Apple Pay
merchantIdstringYour Apple Pay merchant identifier registered with Apple

Line Pay

ParameterTypeDescription
enablebooleanWhether to enable Line Pay

Generic Card Payment

ParameterTypeDescription
enablebooleanWhether to enable Generic Card Payment

Usage

Setup Tappay

This method configures the Tappay instance. This setup must be completed before any Apple Pay transaction can be processed.

ParameterTypeDescription
appIdnumberYour Tappay App ID
appKeystringYour Tappay App Key
serverTypeServerTypeYour Tappay Server Type

Server Type

  • sandbox: for testing
  • production: for production
import Tappay from "expo-tappay";

const tappay = new Tappay({
appId: 11340, // replace with your Tappay App ID
appKey: "app_whdEWBH8e8Lzy4N6BysVRRMILYORF6UxXbiOFsICkz0J9j1C0JUlCHv1tVJC", // replace with your Tappay App Key
serverType: "sandbox",
});