Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subscription Payment also looks at renewal orders for mandate. #1

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

basserd
Copy link
Owner

@basserd basserd commented Aug 22, 2023

I've noticed the following scenario:

  • Customer pays for subscription initially.
  • A mandate will be given and saved on the parent Order.
  • If for some reason the payment fails (this could be the bank just refusing the payment due to more strict authentication nowadays) and requires manual payment, there will be a new mandate within Mollie & within the Renewal Order.
  • When renewing the subscription again (after the interval is due again) the newly created mandate won't be used for the latest renewal order payment.
  • The old mandate will be used again (which is expired/revoked).

I decided it would be better to also check for mandates on the renewal orders instead of changing the parent order mandate. Since this would remove history of what mandates are used.

I've noticed the following scenario:
- Customer pays for subscription initially. 
- A mandate will be given and saved on the parent Order.
- If for some reason the payment fails (this could be the bank just refusing the payment due to more strict authentication nowadays) and requires manual payment, there will be a new mandate within Mollie & within the Renewal Order.
- When renewing the subscription again (after the interval is due again) the newly created mandate won't be used for the latest renewal order payment.
- The old mandate will be used again (which is expired/revoked).

I decided it would be better to also check for mandates on the renewal orders instead of changing the parent order mandate. Since this would remove history of what mandates are used.
@basserd
Copy link
Owner Author

basserd commented Aug 22, 2023

Oh and I also fixed a small type of $subcriptionParentOrder to $subscriptionParentOrder within the file I was working in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant