method createOnDemandPayment documentation in bbn\Api\Permissions\MollieManager

Charging immediately on-demand.

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); }

Charging immediately on-demand. BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way

This website uses cookies to ensure you get the best experience on our website.