How to do a transaction in Mollie
- Creating a transaction in Payhub:
curl --location 'https://api.payhub.cm.com/v1/accounts/05e1ee3f-301d-4648-a165-df012dad4902/transactions' --header 'X-CM-SSO-ACCOUNTGUID: 03e8f0a0-43ec-4def-977b-2c9c670f89ac' --header 'Content-Type: application/json' --data '{
"additionalData": null,
"amount": {
"currency": "EUR",
"amount": "124.84"
},
"allowedMethods": [
"ideal"
],
"card": null,
"connectionId": "cb8fa55b-6c71-4882-a645-03a0b5b7fe63",
"consumer": null,
"description": "NUIK Summer Sessions presents Pictu",
"expiresAtUtc": "2025-10-18T09:51:56Z",
"id": "d69ceee5-687a-4633-ba6e-9fc13a79a755",
"customerReference": "NUIKPM38862784EQ17S7",
"returnUrlSuccess": "https://test.com",
"returnUrlFailure": "https://facebook.com"
}'
It give the following response:
{
"id": "992bb0ed-0011-4ff9-831d-1bdfc9872879",
"accountId": "05e1ee3f-301d-4648-a165-df012dad4902",
"amount": {
"currency": "EUR",
"amount": "124.84"
},
"status": "Created",
"type": "Payment",
"reference": "",
"allowedMethods": [
"ideal"
],
"providerReference": "tr_rBM9v95kJD",
"providerData": {},
"description": "NUIK Summer Sessions presents Pictu",
"connectionId": "cb8fa55b-6c71-4882-a645-03a0b5b7fe63",
"relatedTransactionId": null,
"expiresAtUtc": "2024-10-21T07:48:50Z",
"additionalData": {},
"redirectUrl": "https://payhub.cm.com/l/t4rfNCI4Pz0LaSY0mf0aV",
"returnUrlSuccess": "https://test.com",
"returnUrlFailure": "https://facebook.com"
}
On clicking the redirect URL you will land in Mollie’s payment window:

you will redirected to the respective page based on the status of the payment.
You can find the test cards here: https://docs.mollie.com/reference/testing#testing-different-types-of-cards
Use this account to test Mollie connection in production:
https://www.cm.com/en-gb/app/marketplace/05e1ee3f-301d-4648-a165-df012dad4902/payment/cb8fa55b-6c71-4882-a645-03a0b5b7fe63