-
Notifications
You must be signed in to change notification settings - Fork 136
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
Stripe Integration #568
Stripe Integration #568
Conversation
authored-by: David Igón <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After this changes we can try to publish it in beta and test it there.
Thanks for the effort!
src/Omnipay/Stripe/Subscription/Message/SubscriptionRequest.php
Outdated
Show resolved
Hide resolved
|
||
$session = $this->stripe->checkout->sessions->create([ | ||
'customer' => $this->getStripeCustomer($data['user'])->id, | ||
'success_url' => $this->getRedirectUrl('/dashboard/subscriptions'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When the invest is successfull, it should be redirected to the step 3 of the invest process, where the user can update their fiscal information and so on.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we only need to this fix and then we can publish it.
src/Omnipay/Stripe/Subscription/Message/SubscriptionRequest.php
Outdated
Show resolved
Hide resolved
* add calls for project and reward to get subscribable rewards for a given project * add creator controller and first view * add new copies for creator landing * add posts for creator landing * add strong to user name in creator landing * add project section to creator layout * fixes on creator css * show all rewards in creator landing ordered by subscribable and amount * change grid layout for creator subscriptions and change it to slider * add links to share creator landing page * move social share in creator to partial * add channels to creator landing * move creator partials to public * add styles to slider arrows in creator subscriptions * Add 'creator' role (#579) * Only let admins allow stripe and subscribables * Redirect user to stripe checkout to purchase subscription * Add 'creator' role * Cleaner code for createAdminSidebar function * remove unnecessary partial * fixes in redirects in creator controller --------- Co-authored-by: Daniel Subiabre García <[email protected]>
This PR adds the following behaviour:
StripeSubscriptionPaymentMethod
implements the integration. It calls the Omnipay gateway implemented for stripe subscriptions atOmnipay\Stripe\Subscription
which handles the actual logic to create subscriptions at Stripe.