GetnetDeeplinkPaymentsPlatform class abstract
The GetnetDeeplinkPaymentsPlatform abstract class defines the contract for platform-specific implementations of Getnet deeplink payments.
This class acts as an interface, delegating calls to a specific platform implementation. By default, the MethodChannelGetnetDeeplinkPayments implementation is used.
Developers can override the platform implementation by setting GetnetDeeplinkPaymentsPlatform.instance to a custom implementation.
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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. -
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, String? creditType, bool? allowPrintCurrentTransaction}) → Future< Transaction?> - Processes a payment with the provided parameters.
-
refund(
{required double amount, DateTime? transactionDate, String? cvNumber, String? originTerminal, bool? allowPrintCurrentTransaction}) → Future< Transaction?> - Processes a refund for a transaction with the provided parameters.
-
reprint(
) → Future< String?> -
Reprints a last transaction receipt.
Returns a String containing the reprint result, or
null
if the operation fails. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ GetnetDeeplinkPaymentsPlatform
-
Gets the current platform-specific implementation instance.
getter/setter pair