FlutterMidtransCC class

A Calculator.

Constructors

FlutterMidtransCC(String midtransProductionUrl, String midtransStagingUrl, String serverKey, String clientKey, {bool isProduction = true})

Properties

clientKey String
client_key can be found on your midtrans dashboard
final
hashCode int
The hash code for this object. [...]
read-only, inherited
isProduction bool
if true, production url will be used if false, staging url will be used
final
midtransProductionUrl String
enter your production url
final
midtransStagingUrl String
enter your staging url
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
serverKey String
server_key can be found on your midtrans dashboard
final

Methods

getCreditCardToken(String cardNumber, String expiryDate, String expiryYear, String cvv) Future<Response>
generate credit card token, so we can access 3DS [...]
midtransCharge(String tokenId, String orderId, String grossAmount, List<Map> itemDetails, Map customerDetails) Future<Response>
Do charge on your transaction [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited
webview3DS({String transactionId, String url, Function onClosePressed, Function onCompleteRedirect}) Widget

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited