GeneralPayment class

Implemented types
Available extensions

Constructors

GeneralPayment.new()

Properties

generalPayment GeneralPayment
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
is_payment_gateway_initialized bool
getter/setter pair
onGeneralPayment GeneralPaymentFunction
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
xendit Xendit
latefinal

Methods

createInvoice({String forUserId = "", String withFeeRule = "", required String external_id, required int amount, String? description, String? payer_email, Map? customer, Map? customer_notification_preference, int? invoice_duration, String? success_redirect_url, String? failure_redirect_url, List<String>? payment_methods, String? currency, bool? fixed_va, String? callback_virtual_account_id, String? mid_label, String? reminder_time_unit, int? reminder_time, String? locale, List? items, List? fees, bool? should_authenticate_credit_card, Map<String, String>? headers, required GeneralPaymentAuth generalPaymentAuth}) Future<Invoice>

Available on GeneralPayment, provided by the GeneralPaymentExtensionCreateInvoice extension

ensureInitialized({Client? httpClient}) → void
getInvoice({String forUserId = "", required String invoice_id, required GeneralPaymentAuth generalPaymentAuth}) Future<Invoice>

Available on GeneralPayment, provided by the GeneralPaymentExtensiongetInvoice extension

getWalletAccountbyId({String? walletId, bool isOwned = true, required GeneralPaymentAuth generalPaymentAuth}) Future<Account>

Available on GeneralPayment, provided by the GeneralPaymentExtensiongetWalletAccountbyId extension

invokeBuilder<T>({required GeneralPaymentInvokeParameters<T> parameters}) FutureOr<T>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paymentInvokeBuilder<T>({required GeneralPaymentAuth generalPaymentAuth, required InvokeFunctionBuilder<T> onXendit, required InvokeFunctionBuilder<T> onMidtrans, required InvokeFunctionBuilder<T> onCoinlox, required InvokeFunctionBuilder<T> onUnknown}) FutureOr<T>
toString() String
A string representation of this object.
inherited
utilsAddHeaders({required Map<String, String> headers, required Map? newHeaders}) → void

Operators

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

Static Properties

httpClient ↔ Client
latefinal
is_http_client_initialized bool
getter/setter pair

Static Methods

ensureInitializedGeneralPayment({required Client httpClient}) → void