MethodChannelGetnetDeeplinkPayments class
The MethodChannelGetnetDeeplinkPayments class is the default implementation of GetnetDeeplinkPaymentsPlatform, using method channels to communicate with native platform code for handling Getnet payments and refunds.
This implementation manages state to ensure only one operation is
processed at a time and handles communication with the native platform
via the MethodChannel
.
- Inheritance
-
- Object
- GetnetDeeplinkPaymentsPlatform
- MethodChannelGetnetDeeplinkPayments
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodChannel → MethodChannel
-
The MethodChannel used to interact with native platform code.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
checkStatus(
{required String callerId}) → Future< Transaction?> -
Checks the status of a transaction via the native platform.
Returns a Transaction containing the transaction status, or
null
if the operation fails. Throws an exception if an error occurs during platform communication. ThecallerId
parameter is the transaction identifier.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
payment(
{required double amount, required PaymentTypeEnum paymentType, required String callerId, int installments = 1, String? creditType, bool? allowPrintCurrentTransaction}) → Future< Transaction?> -
Processes a payment request via the native platform.
override
-
refund(
{required double amount, DateTime? transactionDate, String? cvNumber, String? originTerminal, bool? allowPrintCurrentTransaction}) → Future< Transaction?> -
Processes a refund request via the native platform.
override
-
reprint(
) → Future< String?> -
Reprints the last transaction receipt via the native platform.
Returns a String containing the reprint result, or
null
if the operation fails. Throws an exception if an error occurs during platform communication. This method is only available on Android.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited