-
Notifications
You must be signed in to change notification settings - Fork 44.7k
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
feat(platform): Implement top-up flow for PAYG System #9050
base: dev
Are you sure you want to change the base?
Conversation
β Deploy Preview for auto-gpt-docs-dev canceled.
|
β Deploy Preview for auto-gpt-docs canceled.
|
await User.prisma().update( | ||
where={"id": user_id}, data={"stripeCustomerId": customer.id} | ||
) | ||
user.stripeCustomerId = customer.id |
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.
await User.prisma().update( | |
where={"id": user_id}, data={"stripeCustomerId": customer.id} | |
) | |
user.stripeCustomerId = customer.id | |
user = await User.prisma().update( | |
where={"id": user_id}, data={"stripeCustomerId": customer.id} | |
) |
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.
Or even better: avoid calling Prisma here and add set_stripe_customer_id in model class on user.py
} | ||
], | ||
mode="payment", | ||
success_url="",# TODO kcze |
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.
So these will be webhook URLs ?
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.
These are redirect urls after checkout
|
||
if (!stripe) { | ||
console.error("Stripe failed to load"); | ||
return; |
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.
Should we throw an error instead ?
This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request. |
WIP
Changes ποΈ
Checklist π
For code changes:
Example test plan
For configuration changes:
.env.example
is updated or already compatible with my changesdocker-compose.yml
is updated or already compatible with my changesExamples of configuration changes