User mandate id not updated on first payment #5
Comments
The controller essentially picks the strategy for handling the request, and returns it:
|
Regarding not updating the mandate_id field:
|
Hello, I understand why it's using the standard redirect. Something seems to go wrong when it tries to create a valid mandate. For testing purposes I used one of my digital ocean droplets to have a website which is available from the outside. I tried to create a subscription and I can see on Mollie's end that everything went well. Here's what I can see in my Mollie test dashboard: As you can see the webhook was called succesfully. Anyhow there was no mandate created for the user. I'm going to scratch everything and go through the documentation from A-Z again to see if I missed something. In the meanwhile, do you think I could be forgetting something or so? Thanks in advance! |
Hi @aFluxx , Thanks for clearing that up. Can you check whether the |
Hey Sander, I tried to do as you asked (Bear with me since I'm a beginning developer learning all this stuff whilest I'm doing it💃 ). I've created a
I've registered the
Ive then used a service you recommended to test webhooks locally. mollie/laravel-mollie#55 (comment) https://i.gyazo.com/4a578f11f0714163b8b3745059fca935.png So I know the webhook is working since I can see in the Mollie dashboard that I'm actually creating testusers: https://i.gyazo.com/44569dbeb45b786acca6fa74bded17d3.png But I don't see any |
Hi @aFluxx , That webhook service is great, but it does not forward the call to the app itself. So the app webhook does not get triggered, and so the event does not get dispatched. For this to work you will need to make a request to the app webhook manually. You can use something like The request:
|
Just found the culprit, preparing a PR to fix it. Appears that using a |
Hey Sander, Just to let you know, I updated the package to the latest version, everything works fine. Also, the correct redirect is now triggered via the controller. Thanks man! Have a nice day! PS: First bug squashed ^^ |
Thanks @aFluxx , also for following up! :) |
Prepare v0.2.4
Hello there,
I'm testing out with the __invoke method provided in the docs:
When creating a new subscription it doesn't ever seem to hit the following line:
return redirect()->view('feed.index')->with('success', 'Welcome to the ' . $plan . ' plan');
Somewhere in the following lines:
It seems to standard go to the
'redirect_url' => config(app.ur),
provided in the config file. Which doesn't let me add a custom success message.On another note, after doing a succesful subscription payment
$user->subscribed($plan)
keeps returning false. It seems a mollie_customer_id is created, but not a mandate, which I think is necessary for subscriptions?https://i.gyazo.com/3d99c5b76ac4cfb054a1e7ae3bedbd26.png
The text was updated successfully, but these errors were encountered: