MastercardPaymentService class

Mastercard Payment Service

Properties

config MastercardConfig
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

authorizePayment({required String orderId, required MastercardCardDetails cardDetails, required double amount, String? currency, String? authenticationId, Map<String, dynamic>? billingAddress, Map<String, dynamic>? customerInfo}) Future<MastercardPaymentResponse>
Authorize Payment (without capture)
capturePayment({required String orderId, required String authorizationTransactionId, required double amount, String? currency}) Future<MastercardPaymentResponse>
Capture authorized payment
dispose() → void
getTransactionStatus({required String orderId, required String transactionId}) Future<MastercardPaymentResponse>
Get transaction status
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
processPayment({required String orderId, required MastercardCardDetails cardDetails, required double amount, String? currency, String? authenticationId, Map<String, dynamic>? billingAddress, Map<String, dynamic>? shippingAddress, Map<String, dynamic>? customerInfo, String? description}) Future<MastercardPaymentResponse>
Process Direct Payment
refundPayment({required String orderId, required String originalTransactionId, required double amount, String? currency, String? reason}) Future<MastercardPaymentResponse>
Refund payment
toString() String
A string representation of this object.
inherited

Operators

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