/* Import the client and set your API key */
const mollie = require("@mollie/api-client")({
apiKey: "test_BThW5anPMSsEAz6ze6u9ptG67aSCzp",
});
/* Create a new payment */
const payment = await mollie.payments.create({
amount: {
value: "10.00",
currency: "EUR",
},
description: "Trip to Croatia",
redirectUrl: "http://mollie.com",
webhookUrl: "http://mollie.com",
});