PaymentIntent<T extends PaymentGateway> class

Implemented types
Mixed in types

Constructors

PaymentIntent(String apiKey, String url, [T? httpClient])

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

attach(String id, PaymentIntentAttach attributes) Future<PaymentIntentAttachResponse>
Attach payment
override
create(PaymentIntentAttributes attributes) Future<PaymentIntentResponse>
Create data R along with P
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onPaymentListener({required String paymentMethod, required PaymentIntentAttributes attributes, Future<bool> onRedirect(String url)?, String returnUrl = 'https://www.google.com/success'}) Future<PaymentResult?>
Shortcut for using Card/PayMaya API. Must have PaymentMethodResponse to continue..
retrieve(int id) Future<PaymentIntentResponse>
Retrieve data R
override
retrieveIntentClient(String paymentIntentId, String clientKey) Future<PaymentIntentResponse>
Retrieve payment intent. Used for re-query to check payment status
override
serialize<T>(Response response, String path, {T onSerializedCallback(Object json)?}) → T
Convert Json response to T and throws ClientException for client error response.
inherited
toString() String
A string representation of this object.
inherited

Operators

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