omise_flutter

Creator: coderz1093

Last updated:

Add to Cart

Description:

omise flutter

omise_flutter #
A third-party Flutter package for integrating with Omise API
Installation #
More information: https://pub.dev/packages/omise_flutter

Add this to your package's pubspec.yaml file:

dependencies:
omise_flutter: ^0.1.6
copied to clipboard

Install it from the command

flutter pub get
copied to clipboard

Import it

import 'package:omise_flutter/omise_flutter.dart';
copied to clipboard
Usage #
Create a token #
create(String name, String number, String expirationMonth,
String expirationYear, String securityCode,
{String city,
String country,
String postalCode,
String state,
String street1,
String street2,
String phoneNumber})
copied to clipboard
Usage
OmiseFlutter omise = OmiseFlutter(YOUR_PUBLIC_KEY);
final response = await omise.token.create("John Doe", "4242424242424242", "12", "2020", "123");
copied to clipboard
Create a source #
create(int amount, String currency, String type,
{String barcode,
String email,
int installmentTerm,
String name,
String storeId,
String storeName,
String terminalId,
String phoneNumber,
bool zeroInterestInstallments})
copied to clipboard
Usage
OmiseFlutter omise = OmiseFlutter(YOUR_PUBLIC_KEY);
final response = await omise.source.create(10000, "thb", "internet_banking_bay");
copied to clipboard
Retrieve a capability #
retrieve()
copied to clipboard
Usage
OmiseFlutter omise = OmiseFlutter(YOUR_PUBLIC_KEY);
final response = await omise.capability.retrieve();
copied to clipboard

License

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

Files:

Customer Reviews

There are no reviews.