paymongo_sdk 1.6.1 copy "paymongo_sdk: ^1.6.1" to clipboard
paymongo_sdk: ^1.6.1 copied to clipboard

Unofficial PayMongo SDK written in Dart for flutter.

PayMongo SDK #

PayMongo

Flutter package for paymongo #

The flutter package for paymongo will be in separate package. This is to separate what endpoints to use in the frontend or backend APIs.

Create Account #

you can register your account here https://dashboard.paymongo.com/login.

API Keys #

Go to Developers and locate the Public Key and Secret Key. copy the key and use it in your project.

TODO #

Payment Documentation Production
GCash 🚧
Debit/Credit 🚧
PayMaya 🚧 🚧
Grab Pay 🚧

Let me know if you have concerns with the SDK by creating an issue

Usage #

full example project.

/// for dart standalone project usage
import 'package:paymongo_sdk/paymongo_sdk.dart'

void main() async {
    /// apiKey can be either public key or secret key.
    /// but do not use secret key in your front-end.
    
    final publicSDK = PaymongoClient<PaymongoPublic>(apiKey);
    final data = SourceAttributes(
    type: 'gcash',
    amount: amount,
    currency: 'PHP',
    redirect: const Redirect(
        success: "https://google.com/success",
        failed: "https://google.com/failed",
    ),
    billing: billing,
    );

    final result = await publicSDK.instance.source.create(data);
}

11
likes
100
pub points
56%
popularity

Publisher

unverified uploader

Unofficial PayMongo SDK written in Dart for flutter.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

equatable, http, meta

More

Packages that depend on paymongo_sdk