laravel / cashier-mollie

MIT License
376 stars 63 forks source link

Setting the quantity on the SubscriptionBuilder only works when the user has a mandate #70

Closed sebastiaands closed 4 years ago

sebastiaands commented 4 years ago

When I create a new subscription it looks like I can set the quantity on the SubscriptionBuilder: $user->newSubscription($name, $plan)->quantity(10)->create();

This does work fine when the user already has a mandate, but is doesn't work when the payment is done using iDEAL.

sandervanhooft commented 4 years ago

Hi @sebastiaands ,

That's unfortunate. Can you share the payment 1) metadata and 2) amount? It's in the Mollie Dashboard.

sebastiaands commented 4 years ago

Hi @sandervanhooft ,

Thank you for your response. Hereby an example of the metadata:

{
  "owner": {
    "type": "App\\Organisation",
    "id": 34
  },
  "actions": [
    {
      "handler": "Laravel\\Cashier\\FirstPayment\\Actions\\StartSubscription",
      "description": "Abonnement voor één expertise",
      "subtotal": {
        "currency": "EUR",
        "value": "175.00"
      },
      "taxPercentage": "21.0000",
      "plan": "one_expertise",
      "name": "partners",
      "quantity": 4
    }
  ]
}
sandervanhooft commented 4 years ago

Thanks!

Preparing a fix in #71

sandervanhooft commented 4 years ago

Just released a fix