omise_flutter 0.1.0 copy "omise_flutter: ^0.1.0" to clipboard
omise_flutter: ^0.1.0 copied to clipboard

outdated

A package for integrating to Omise REST API. It targets only for a client-side usage to create a token, create a source and retrieve a capability of your account.

omise_flutter #

A package for integrating Omise API

Getting Started #

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})

Usage

OmiseFlutter omise = OmiseFlutter(YOUR_PUBLIC_KEY);
final response = await omise.token.create("John Doe", "4242424242424242", "12", "2020", "123");

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})

Usage

OmiseFlutter omise = OmiseFlutter(YOUR_PUBLIC_KEY);
final response = await omise.source.create(10000, "thb", "internet_banking_bay");

Retrieve a capability #

retrieve()

Usage

OmiseFlutter omise = OmiseFlutter(YOUR_PUBLIC_KEY);
final response = await omise.capability.retrieve();
14
likes
0
pub points
72%
popularity

Publisher

verified publisheropn.ooo

A package for integrating to Omise REST API. It targets only for a client-side usage to create a token, create a source and retrieve a capability of your account.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

crypto, flutter, http, json_annotation, json_serializable

More

Packages that depend on omise_flutter