pokepay_sdk

Creator: coderz1093

Last updated:

0 purchases

pokepay_sdk Image
pokepay_sdk Images
Add to Cart

Description:

pokepay sdk

Pokepay Flutter SDK #
API Document reference #
Please refer to this document
Install #

In the pubspec.yaml of the project, add the following:

dependencies:
pokepay_sdk: ^YOUR_VERSION
copied to clipboard

Then run this

flutter pub get
copied to clipboard

Then you can use Pokepay SDK in your project.

Usage #

How to use OAthClient with FlutterWebAuth

PokepayOAuthClient oauthClient = PokepayOAuthClient(clientId: YOUR_CLIENT_ID,clientSecret: YOUR_CLIENT_SCRET, env: APIEnv.DEVELOPMENT);
String authUrl = oauthClient.getAuthorizationUrl();
String result = await FlutterWebAuth.authenticate(url: authUrl, callbackUrlScheme: 'pocketchange'));
AccessToken accessToken = await oauthClient.getAccessToken(Uri.parse(result).queryParameters['code']));
copied to clipboard

How to use the client

PokepayAPI(env: APIEnv.YOUR_ENV,accessToken: YOUR_ACCESS_TOKEN,);
copied to clipboard

Call API, for example, create account

PokepayAPI api = PokepayAPI(env: APIEnv.YOUR_ENV,accessToken: YOUR_ACCESS_TOKEN,);
Account createdAccount = await api.createAccount(name:your_wallet_name, privateMoneyId: your_private_money_id);
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.