public class PaymentHandler extends AbstractHandler
| Constructor and Description |
|---|
PaymentHandler(String baseUrl) |
| Modifier and Type | Method and Description |
|---|---|
PaymentResponse |
cancelPayment(String paymentId)
Some payment methods are cancellable for an amount of time, usually until the next day.
|
PaymentResponse |
cancelPayment(String paymentId,
QueryParams params)
Some payment methods are cancellable for an amount of time, usually until the next day.
|
PaymentResponse |
createPayment(PaymentRequest body)
Payment creation is elemental to the Mollie API: this is where most payment implementations start off.
|
PaymentResponse |
createPayment(PaymentRequest body,
QueryParams params)
Payment creation is elemental to the Mollie API: this is where most payment implementations start off.
|
PaymentResponse |
getPayment(String paymentId)
Retrieve a single payment object by its payment token.
|
PaymentResponse |
getPayment(String paymentId,
QueryParams params)
Retrieve a single payment object by its payment token.
|
Pagination<PaymentListResponse> |
listPayments()
Retrieve all payments created with the current website profile, ordered from newest to oldest.
|
Pagination<PaymentListResponse> |
listPayments(QueryParams params)
Retrieve all payments created with the current website profile, ordered from newest to oldest.
|
delete, delete, delete, get, get, patch, patch, post, post, postWithoutBody, validateResponsepublic PaymentHandler(String baseUrl)
public PaymentResponse createPayment(PaymentRequest body) throws MollieException
body - PaymentRequest can be build with the builder patternMollieException - when there went something wrongpublic PaymentResponse createPayment(PaymentRequest body, QueryParams params) throws MollieException
body - Pa ymentRequest can be build with the builder patternparams - A map of query parametersMollieException - when there went something wrongpublic PaymentResponse getPayment(String paymentId) throws MollieException
paymentId - payment tokenMollieException - when there went something wrongpublic PaymentResponse getPayment(String paymentId, QueryParams params) throws MollieException
paymentId - payment tokenparams - A map of query parametersMollieException - when there went something wrongpublic PaymentResponse cancelPayment(String paymentId) throws MollieException
The isCancelable property on the Payment object will indicate if the payment can be canceled.
paymentId - payment tokenMollieException - when there went something wrongpublic PaymentResponse cancelPayment(String paymentId, QueryParams params) throws MollieException
The isCancelable property on the Payment object will indicate if the payment can be canceled.
paymentId - payment tokenparams - A map of query parametersMollieException - when there went something wrongpublic Pagination<PaymentListResponse> listPayments() throws MollieException
The results are paginated.
MollieException - when there went something wrongpublic Pagination<PaymentListResponse> listPayments(QueryParams params) throws MollieException
The results are paginated.
params - A map of query parametersMollieException - when there went something wrongCopyright © 2020. All rights reserved.