PayMongoSDK class

🚧 DO NOT USE SECRET KEY IN PRODUCTION

Following methods will use secret key

  • createPayment Initialize PayMongo SDK.

The code provided is an example of using a secret key

final publicKeyClient = PayMongoSDK(publicKey);
final secretKeyClient = PayMongoSDK(secretKey);
Available Extensions

Constructors

PayMongoSDK(String secret, {BaseClient? http, String apiUrl = 'api.paymongo.com'})
Following methods will use secret key

Properties

hashCode → int
The hash code for this object.
no setterinherited
http → BaseClient?
custom http. be sure you include your api key to have basic base64 authorization headers.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
secret → String
key generated from paymongo dashboard you can use --dart-define command to store your private key.
final

Methods

get<T>(PayMongoOptions options) → Future<T>
make GET response
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
post<T>(PayMongoOptions options) → Future<T>
make POST response.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited