-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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: Add support for managing account holder in payment module #11015
base: develop
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
6 Skipped Deployments
|
|
f58080f
to
430878f
Compare
/snapshot-this |
🚀 A snapshot release has been made for this PRTest the snapshots by updating your yarn add @medusajs/admin-bundler@2.2.1-snapshot-20250117103757 yarn add @medusajs/admin-sdk@2.2.1-snapshot-20250117103757 yarn add @medusajs/admin-shared@2.2.1-snapshot-20250117103757 yarn add @medusajs/admin-vite-plugin@2.2.1-snapshot-20250117103757 yarn add @medusajs/dashboard@2.2.1-snapshot-20250117103757 yarn add create-medusa-app@2.2.1-snapshot-20250117103757 yarn add @medusajs/cli@2.2.1-snapshot-20250117103757 yarn add medusa-dev-cli@2.2.1-snapshot-20250117103757 yarn add @medusajs/medusa-oas-cli@2.2.1-snapshot-20250117103757 yarn add @medusajs/core-flows@2.2.1-snapshot-20250117103757 yarn add @medusajs/framework@2.2.1-snapshot-20250117103757 yarn add @medusajs/js-sdk@2.2.1-snapshot-20250117103757 yarn add @medusajs/modules-sdk@2.2.1-snapshot-20250117103757 yarn add @medusajs/orchestration@2.2.1-snapshot-20250117103757 yarn add @medusajs/types@2.2.1-snapshot-20250117103757 yarn add @medusajs/utils@2.2.1-snapshot-20250117103757 yarn add @medusajs/workflows-sdk@2.2.1-snapshot-20250117103757 yarn add @medusajs/icons@2.2.1-snapshot-20250117103757 yarn add @medusajs/ui-preset@2.2.1-snapshot-20250117103757 yarn add @medusajs/medusa@2.2.1-snapshot-20250117103757 yarn add @medusajs/telemetry@2.2.1-snapshot-20250117103757 yarn add @medusajs/test-utils@2.2.1-snapshot-20250117103757 yarn add @medusajs/api-key@2.2.1-snapshot-20250117103757 yarn add @medusajs/auth@2.2.1-snapshot-20250117103757 yarn add @medusajs/cache-inmemory@2.2.1-snapshot-20250117103757 yarn add @medusajs/cache-redis@2.2.1-snapshot-20250117103757 yarn add @medusajs/cart@2.2.1-snapshot-20250117103757 yarn add @medusajs/currency@2.2.1-snapshot-20250117103757 yarn add @medusajs/customer@2.2.1-snapshot-20250117103757 yarn add @medusajs/event-bus-local@2.2.1-snapshot-20250117103757 yarn add @medusajs/event-bus-redis@2.2.1-snapshot-20250117103757 yarn add @medusajs/file@2.2.1-snapshot-20250117103757 yarn add @medusajs/fulfillment@2.2.1-snapshot-20250117103757 yarn add @medusajs/index@2.2.1-snapshot-20250117103757 yarn add @medusajs/inventory@2.2.1-snapshot-20250117103757 yarn add @medusajs/link-modules@2.2.1-snapshot-20250117103757 yarn add @medusajs/locking@2.2.1-snapshot-20250117103757 yarn add @medusajs/notification@2.2.1-snapshot-20250117103757 yarn add @medusajs/order@2.2.1-snapshot-20250117103757 yarn add @medusajs/payment@2.2.1-snapshot-20250117103757 yarn add @medusajs/pricing@2.2.1-snapshot-20250117103757 yarn add @medusajs/product@2.2.1-snapshot-20250117103757 yarn add @medusajs/promotion@2.2.1-snapshot-20250117103757 yarn add @medusajs/auth-emailpass@2.2.1-snapshot-20250117103757 yarn add @medusajs/auth-github@2.2.1-snapshot-20250117103757 yarn add @medusajs/auth-google@2.2.1-snapshot-20250117103757 yarn add @medusajs/file-local@2.2.1-snapshot-20250117103757 yarn add @medusajs/file-s3@2.2.1-snapshot-20250117103757 yarn add @medusajs/fulfillment-manual@2.2.1-snapshot-20250117103757 yarn add @medusajs/locking-postgres@2.2.1-snapshot-20250117103757 yarn add @medusajs/locking-redis@2.2.1-snapshot-20250117103757 yarn add @medusajs/notification-local@2.2.1-snapshot-20250117103757 yarn add @medusajs/notification-sendgrid@2.2.1-snapshot-20250117103757 yarn add @medusajs/payment-stripe@2.2.1-snapshot-20250117103757 yarn add @medusajs/region@2.2.1-snapshot-20250117103757 yarn add @medusajs/sales-channel@2.2.1-snapshot-20250117103757 yarn add @medusajs/stock-location@2.2.1-snapshot-20250117103757 yarn add @medusajs/store@2.2.1-snapshot-20250117103757 yarn add @medusajs/tax@2.2.1-snapshot-20250117103757 yarn add @medusajs/user@2.2.1-snapshot-20250117103757 yarn add @medusajs/workflow-engine-inmemory@2.2.1-snapshot-20250117103757 yarn add @medusajs/workflow-engine-redis@2.2.1-snapshot-20250117103757
|
430878f
to
c370fd0
Compare
/snapshot-this |
🚀 A snapshot release has been made for this PRTest the snapshots by updating your yarn add @medusajs/admin-bundler@2.2.1-snapshot-20250117121342 yarn add @medusajs/admin-sdk@2.2.1-snapshot-20250117121342 yarn add @medusajs/admin-shared@2.2.1-snapshot-20250117121342 yarn add @medusajs/admin-vite-plugin@2.2.1-snapshot-20250117121342 yarn add @medusajs/dashboard@2.2.1-snapshot-20250117121342 yarn add create-medusa-app@2.2.1-snapshot-20250117121342 yarn add @medusajs/cli@2.2.1-snapshot-20250117121342 yarn add medusa-dev-cli@2.2.1-snapshot-20250117121342 yarn add @medusajs/medusa-oas-cli@2.2.1-snapshot-20250117121342 yarn add @medusajs/core-flows@2.2.1-snapshot-20250117121342 yarn add @medusajs/framework@2.2.1-snapshot-20250117121342 yarn add @medusajs/js-sdk@2.2.1-snapshot-20250117121342 yarn add @medusajs/modules-sdk@2.2.1-snapshot-20250117121342 yarn add @medusajs/orchestration@2.2.1-snapshot-20250117121342 yarn add @medusajs/types@2.2.1-snapshot-20250117121342 yarn add @medusajs/utils@2.2.1-snapshot-20250117121342 yarn add @medusajs/workflows-sdk@2.2.1-snapshot-20250117121342 yarn add @medusajs/icons@2.2.1-snapshot-20250117121342 yarn add @medusajs/ui-preset@2.2.1-snapshot-20250117121342 yarn add @medusajs/medusa@2.2.1-snapshot-20250117121342 yarn add @medusajs/telemetry@2.2.1-snapshot-20250117121342 yarn add @medusajs/test-utils@2.2.1-snapshot-20250117121342 yarn add @medusajs/api-key@2.2.1-snapshot-20250117121342 yarn add @medusajs/auth@2.2.1-snapshot-20250117121342 yarn add @medusajs/cache-inmemory@2.2.1-snapshot-20250117121342 yarn add @medusajs/cache-redis@2.2.1-snapshot-20250117121342 yarn add @medusajs/cart@2.2.1-snapshot-20250117121342 yarn add @medusajs/currency@2.2.1-snapshot-20250117121342 yarn add @medusajs/customer@2.2.1-snapshot-20250117121342 yarn add @medusajs/event-bus-local@2.2.1-snapshot-20250117121342 yarn add @medusajs/event-bus-redis@2.2.1-snapshot-20250117121342 yarn add @medusajs/file@2.2.1-snapshot-20250117121342 yarn add @medusajs/fulfillment@2.2.1-snapshot-20250117121342 yarn add @medusajs/index@2.2.1-snapshot-20250117121342 yarn add @medusajs/inventory@2.2.1-snapshot-20250117121342 yarn add @medusajs/link-modules@2.2.1-snapshot-20250117121342 yarn add @medusajs/locking@2.2.1-snapshot-20250117121342 yarn add @medusajs/notification@2.2.1-snapshot-20250117121342 yarn add @medusajs/order@2.2.1-snapshot-20250117121342 yarn add @medusajs/payment@2.2.1-snapshot-20250117121342 yarn add @medusajs/pricing@2.2.1-snapshot-20250117121342 yarn add @medusajs/product@2.2.1-snapshot-20250117121342 yarn add @medusajs/promotion@2.2.1-snapshot-20250117121342 yarn add @medusajs/auth-emailpass@2.2.1-snapshot-20250117121342 yarn add @medusajs/auth-github@2.2.1-snapshot-20250117121342 yarn add @medusajs/auth-google@2.2.1-snapshot-20250117121342 yarn add @medusajs/file-local@2.2.1-snapshot-20250117121342 yarn add @medusajs/file-s3@2.2.1-snapshot-20250117121342 yarn add @medusajs/fulfillment-manual@2.2.1-snapshot-20250117121342 yarn add @medusajs/locking-postgres@2.2.1-snapshot-20250117121342 yarn add @medusajs/locking-redis@2.2.1-snapshot-20250117121342 yarn add @medusajs/notification-local@2.2.1-snapshot-20250117121342 yarn add @medusajs/notification-sendgrid@2.2.1-snapshot-20250117121342 yarn add @medusajs/payment-stripe@2.2.1-snapshot-20250117121342 yarn add @medusajs/region@2.2.1-snapshot-20250117121342 yarn add @medusajs/sales-channel@2.2.1-snapshot-20250117121342 yarn add @medusajs/stock-location@2.2.1-snapshot-20250117121342 yarn add @medusajs/store@2.2.1-snapshot-20250117121342 yarn add @medusajs/tax@2.2.1-snapshot-20250117121342 yarn add @medusajs/user@2.2.1-snapshot-20250117121342 yarn add @medusajs/workflow-engine-inmemory@2.2.1-snapshot-20250117121342 yarn add @medusajs/workflow-engine-redis@2.2.1-snapshot-20250117121342
|
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.
LGTM, would be good to add a ticket for documenting keys we are defining here like pp_stripe_stripe_customer_id
Yes definitely, @shahednasser can you have a look and decide what deserves to be documented in the docs? There is the part of There is also the new interface of a payment provider |
if (stripeId !== data.customer) { | ||
return await this.initiatePayment(input) | ||
} else { |
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.
question: Don't we need to deal with this scenario still?
- I initialize my cart as a guest customer
- Go through the checkout flow and create payment sessions
- I sign in -> should update the customer on the payment intent
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.
Actually, I am not sure our workflows are wired up to deal with this right now.
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.
They are not, and this method is not even called.
I was gonna ask you why https://github.com/medusajs/medusa/pull/9348/files was closed actually, as I imagine that's where these flows would be implemented
c370fd0
to
1b5d9d9
Compare
1b5d9d9
to
35b9fd7
Compare
BREAKING: The
context
anddata
fields were removed from the payment session endpoint as they pose a security risk, since they are open-ended.The endpoint should only accept what is absolutely necessary to be provided by the client, nothing more.