ChargeService class

URL: https://developer.intuit.com/app/developer/qbpayments/docs/api/resources/all-entities/charges#capture-charge-funds Send and receive payments using credit cards and debit cards. Applicable for US and Canada only

Constructors

ChargeService({required String baseUrl, required AuthenticationService authenticationService})

Properties

authenticationService AuthenticationService
final
baseUrl String
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

captureCharge({required String requestId, required String chargeId, required String amount, String? description, PaymentContext? context, String? realmId, String? authToken}) Future<Charge>
Capture charge funds
createCharge({required String requestId, required Charge charge, String? realmId, String? authToken}) Future<Charge>
To charge a credit card, you create a new charge object. If your API key is in development mode, the supplied card won't actually be charged, though everything else will occur as if in production mode.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readCharge({required String chargeId, String? realmId, String? authToken}) Future<Charge>
Retrieves the details of a charge that has been previously created. Supply the id as returned in the charges response body from the previous create operation.
readRefund({required String chargeId, required String refundId, String? realmId, String? authToken}) Future<Charge>
Retrieve dull or partial refund.
refundCharge({required String requestId, required String chargeId, required String amount, String? description, PaymentContext? context, String? realmId, String? authToken}) Future<Charge>
Full or partial refund an existing charge.
toString() String
A string representation of this object.
inherited
voidTransaction({required String requestId, required String chargeRequestId, String? realmId, String? authToken}) Future<Charge>
Processes a void of a charge request that times out. It cannot be used to void a charge that has already been settled. Provide the request_id of the original charge as a query parameter.

Operators

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