DVPaymentGateway class abstract

A payment gateway: Stripe PaymentIntents, Adyen, a card terminal.

Both calls carry an idempotency key, and an implementation passes it to the gateway, which answers a repeated key with its first answer. That is what makes a retried charge a single capture and a retried refund a single credit.

Constructors

DVPaymentGateway()

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

charge({required String orderId, required String customerKey, required DVMoney amount, required String idempotencyKey}) → Future<DVGatewayCharge>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
refund({required String chargeReference, required DVMoney amount, required String idempotencyKey}) → Future<DVGatewayRefund>
toString() → String
A string representation of this object.
inherited

Operators

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