https://docs.mollie.com/payments/recurring#payments-recurring-charging-on-demand
function(array $payment_data, string $customer_id, string $mandate_id)
{
if (!$this->customerHasValidMandate(
$customer_id,
$mandate_id,
array_key_exists('testmode', $payment_data) ? ['testmode' => $payment_data['testmode']] : [])
) {
// If the mandate is not valid then creates a new one by having
// The customer performs a first payment: createPaymentFirstTime()
// Then update the new customer and mandate id in database.
return null;
}
$payment_data = array_merge($payment_data, ['sequenceType' => 'recurring']);
return $this->createPayment($payment_data, $customer_id, $mandate_id);
}