Closed neo1992 closed 2 years ago
It seems you're not passing the mandateId
into your CreateSubscriptionAsync
call.
@DianaKoenraadt Thank you, that was it. I now see a new subscription in Mollie :)
However, it's not realistic right now, as you can see in my code I'm now using a hardcoded ConsumerAccount
value, IBAN in this case. How would I get that IBAN number in a production environment? I assume it's not something customers have to fill out themselves (maybe the same also goes for customer name). Do you know?
You should really refer to the API documentation at Mollie.com. That's where I got my previous answer for you ;) Or their chat. Mollie offers good support.
I believe what I did in my application is I created a payment with the IPaymentClient
, which I marked as SequenceType.First
. Mollie then creates the mandate for me, with the IBAN number that the customer uses for the first payment. See here https://docs.mollie.com/payments/recurring
(FYI, this github is not maintaned by Mollie.com)
Hi,
Above information is correct. The readme that is provided in this repository is meant as a reference guide on how to use the library. If you'd like to learn more on how Mollie recurring payments work, I'd like to refer you to the official Mollie documentation.
I'd also like to add that while it is true that this library is not owned by Mollie, I am in regular contact with Mollie regarding any changes they make to their API. Mollie also pays me to maintain and keep this library up to date. There are also talks to add this library to the official Mollie Github.
If you have any further questions, do not hesitate to ask.
Kind regards, Vincent
In my case I want the first payment to be equal to any subsequent monthly payments, so I believe there's no need for an initial bank account test payment of 0.01, although that amount is what I'm using in the code below, but just for test purposes.
I get error:
On the last line of
StartSubscription
:Dim subscriptionResponse As Mollie.Api.Models.Subscription.SubscriptionResponse = Await subscriptionClient.CreateSubscriptionAsync(mollieCustomerId, subscriptionRequest)
A customer is successfully created, but the mandate apparently is not. On a separate note: I'm also unsure where I would actually get the IBAN code that I've now hardcoded.
When I check the Mollie Dashboard I see:
So not sure what I'm missing here. Here's what I do: