tappayflutterplugin

Creator: coderz1093

Last updated:

0 purchases

tappayflutterplugin Image
tappayflutterplugin Images

Languages

Categories

Add to Cart

Description:

tappayflutterplugin

tappayflutterplugin #
This is a Flutter plugin that help developer to use Tappay.
Getting Started #
How to setup #
Please check the official document of TapPay.

iOS: https://github.com/TapPay/tappay-ios-example
android: https://github.com/TapPay/tappay-android-example

Usage #
Direct Pay #
1. Set up your environment #
Tappayflutterplugin.setupTappay(
appId: appId,
appKey: appKey,
serverType: TappayServerType.sandBox,
errorMessage: (error) {
print(error);
});
copied to clipboard
2. Get prime #
PrimeModel prime = await Tappayflutterplugin.getPrime(
cardNumber: cardNumber,
dueMonth: dueMonth,
dueYear: dueYear,
ccv: ccv,
);
copied to clipboard
Easy wallet #
IsEasyWalletAvailable #
bool isEasyWalletAvailable = await Tappayflutterplugin.isEasyWalletAvailable()
copied to clipboard
Get prime #
PrimeModel prime = await Tappayflutterplugin.getEasyWalletPrime(
universalLink: universalLink,
);
copied to clipboard
Redirect to Easy wallet #
TPDEasyWalletResult result = await Tappayflutterplugin.redirectToEasyWallet(
universalLink: universalLink,
paymentUrl: paymentUrl,
);
copied to clipboard
Parse to Easy wallet result #

After finished the payment process, tappay will give you an uri from onNewIntent in android. Use this uri to query LinePay result.

TPDEasyWalletResult result = await Tappayflutterplugin.parseToEasyWalletResult(
universalLink: universalLink,
uri: uri,
);
copied to clipboard
Get Easy wallet result #
TPDEasyWalletResult result = await Tappayflutterplugin.getEasyWalletResult();
copied to clipboard
LinePay #
IsLinePayAvailable #
bool isLinePayAvailable = await Tappayflutterplugin.isLinePayAvailable()
copied to clipboard
Get prime #
PrimeModel prime = await Tappayflutterplugin.getLinePayPrime(
universalLink: universalLink,
);
copied to clipboard
Redirect to LinePay #

In android, you have to go to next step, to get result.

TPDLinePayResult result = await Tappayflutterplugin.redirectToLinePay(
universalLink: universalLink,
paymentUrl: paymentUrl,
);
copied to clipboard
Parse to LinePay result #

After finished the payment process, tappay will give you an uri from onNewIntent in android. Use this uri to query LinePay result.

TPDLinePayResult result = await Tappayflutterplugin.parseToLinePayResult(
universalLink: universalLink,
uri: uri,
);
copied to clipboard
Get LinePay result #
TPDLinePayResult result = await Tappayflutterplugin.getLinePayResult();
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.