mollie / mollie-api-php

Mollie API client for PHP
http://www.mollie.com
BSD 2-Clause "Simplified" License
553 stars 191 forks source link

It would be great to create a subscription while creating a payment. Sending payment information is kind of redundant. #522

Closed picocodes closed 3 years ago

sandervanhooft commented 3 years ago

Hi @picocodes,

Thanks for posting this feature request. Can you elaborate a bit on your use case?

picocodes commented 3 years ago

Thanks, @sandervanhooft,

Currently, we can not create a subscription for new customers (i.e, customers who do not have a valid mandate). We first have to execute this code, then create the subscription after successful payment.

If would be great if it was possible to pass the subscription parameters such as recurring interval and times to the "$customer->createPayment".

sandervanhooft commented 3 years ago

Ok, that clears it up. I had the same issue, therefore created cashier-mollie - but it's Laravel only.

@MollieRick can you perhaps register this feature request somewhere internally? I second it.

MollieRick commented 3 years ago

I do not really see the benefit here. These are really two separate actions and flows since creating a customer is not always only for subscriptions.

sandervanhooft commented 3 years ago

It's about the separate first-payment and start-subscription call, not the create-customer-call.

Having these calls separate requires a lot of complex logic to get a seamless experience in the initial checkout. With "seamless" I mean without making two payments (and invoices) to start the subscription.

I know this is not easily changed, but it makes sense to track requests like these somewhere.

sandervanhooft commented 3 years ago

Closing this for now, let me know if it should be reopened.