Code Monkey home page Code Monkey logo

Comments (11)

sandervanhooft avatar sandervanhooft commented on June 12, 2024 1

So the scheduled cashier:run would use this mandate to fulfill the payment? Till then the payment will be pending on Mollie's side.

No. The payment is generated using the mandate. In live mode, methods like SEPA/directdebit may take up to a few days too clear. In test mode, Mollie allows you to update the status of a mandated payment manually. It's a bit cumbersome, but if you fetch the payment there should be a link included which takes you (developer/tester) to the screen to do this.

from cashier-mollie.

marijnbent avatar marijnbent commented on June 12, 2024 1

This clears everything up! In case of iDeal, SEPA takes care of the payments after the first payment. Ofcourse 😓! Tested it with a creditcard and it works like expected.

Sorry for all the messages, but thanks for your helpful responses!

from cashier-mollie.

sandervanhooft avatar sandervanhooft commented on June 12, 2024

That’s correct behavior

from cashier-mollie.

marijnbent avatar marijnbent commented on June 12, 2024

Could you elaborate? As the payment is generated in Mollie, shouldn't swap() return the link to let the user pay?

from cashier-mollie.

sandervanhooft avatar sandervanhooft commented on June 12, 2024

The first payment uses the redirect to obtain a mandate. This mandate is used for all subsequent payments.

from cashier-mollie.

sandervanhooft avatar sandervanhooft commented on June 12, 2024

Also, too small order amounts do not result in a payment, but in balance being subtracted. A BalanceTurnedStale event will be dispatched if there’s no other order item scheduled for the future.

from cashier-mollie.

sandervanhooft avatar sandervanhooft commented on June 12, 2024

When swapping a subscription plan, there’s already a mandate for the user.

from cashier-mollie.

marijnbent avatar marijnbent commented on June 12, 2024

Check. So the scheduled cashier:run would use this mandate to fulfill the payment? Till then the payment will be pending on Mollie's side.

Using the announcement "https://github.com/laravel/cashier-mollie#updating-customer-payment-mandates" I could force the creation of a new mandate when swapping plans, to simulate a swapViaMollieCheckout (like newSubscriptionViaMollieCheckout).

Thanks for the explanation!

from cashier-mollie.

marijnbent avatar marijnbent commented on June 12, 2024

Edit: Woops, reading your reply now

I run into the following situation right now.

  1. User select and pays for plan A.
  2. User upgrade to plan B
  3. Subscription of user is changed, order is created for the the amount - costs of first plan, status of order/payment is 'open'
  4. When running cashier:run, 'Created 0 orders.' is returned. Payment on the Mollie dashboard stays on pending. Am I missing something?

from cashier-mollie.

sandervanhooft avatar sandervanhooft commented on June 12, 2024

Hopes that explains it :)

from cashier-mollie.

sandervanhooft avatar sandervanhooft commented on June 12, 2024

No problem, it's a complex flow to fully grasp, especially with all the ifs and buts because of the big range of payment methods supported .

Trust me I know :).

from cashier-mollie.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.