PaymentHandler class

Constructors

PaymentHandler(Map<String, String>? headers)

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

cancel(String paymentId) Future<MolliePaymentResponse>
Some payment methods are cancellable for an amount of time, usually until the next day. Or as long as the payment status is open. Payments may be canceled manually from the Dashboard, or automatically by using this endpoint. The isCancelable property on the Payment object will indicate if the payment can be canceled.
create(MolliePaymentRequest payment) Future<MolliePaymentResponse>
Payment creation is elemental to the Mollie API: this is where most payment implementations start off. Once you have created a payment, you should redirect your customer to the URL in the _links.checkout property from the response. To wrap your head around the payment process, an explanation and flow charts can be found in the Payments API Overview.
get(String paymentId) Future<MolliePaymentResponse>
Retrieve a single payment object by its payment token.
listPayments() Future<List<MolliePaymentResponse>>
Retrieve all payments. TODO fix payments attributes changing depending on order or payment api
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
update(String paymentId, Map map) Future<MolliePaymentResponse>
This endpoint can be used to update some details of a created payment. You can update weebhookUrl, redirectUrl, description and metadata

Operators

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