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

Update method to avoid clash with laravel cashier #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

arthurnassar
Copy link

@arthurnassar arthurnassar commented May 12, 2024

Currently applications can use both stripe connect to split payment between users and there's use cases where the same users that will receive those transfers could also be subscribers of a subscription or can buy goods on the platform or website.

Because of this there's cases where we will want Users to be both payable and billable (using laravel Cashier)

In this specific case we could have method clash because Cashier currently implements the pay method in order to charge customers.

This PR aims to solve this method name clashing, also aligns the name with the conventional name that stripe uses, making it easier to use.

It also updates the Readme examples to avoid misusage

This is a breaking change

Currently both billable and payable implement the same pay method. This can break applications that can have users that will receive and pay on the platform in case of affiliate links for example

This is a breaking change
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.

None yet

2 participants