method createPaymentFirstTime documentation in bbn\Api\Permissions\MollieManager

Create a payment for the first time for the user.

Once you have created a payment, you should redirect your customer to the URL in the $payment['_links']['checkout']['href']

This will return the customerId and mandateId in the response.

function($customer, array $payment_data) { $customer = \is_array($customer) ? $this->mollie->customers->create($customer)->id : $customer; $payment_data = array_merge($payment_data, ['sequenceType' => 'first']); try { return $this->createPayment($payment_data, $customer); } catch (\Exception $e) { throw new \Exception($e->getMessage()); } }

Create a payment for the first time for the user. 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.