-
Notifications
You must be signed in to change notification settings - Fork 359
chore(clerk-js): Address leftover commerce TODOs #6183
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@clerk/clerk-js': patch | ||
--- | ||
|
||
Cleanup leftover Commerce-launch TODOs |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,6 @@ import { LineItems } from '@/ui/elements/LineItems'; | |
|
||
import { useCheckoutContext } from '../../contexts'; | ||
import { Box, descriptors, Flex, localizationKeys, useLocalizations } from '../../customizables'; | ||
// TODO(@COMMERCE): Is this causing bundle size issues ? | ||
import { EmailForm } from '../UserProfile/EmailForm'; | ||
import { useCheckoutContextRoot } from './CheckoutPage'; | ||
|
||
|
@@ -101,7 +100,6 @@ export const AddEmailForm = () => { | |
padding: t.space.$4, | ||
})} | ||
> | ||
{/* TODO(@COMMERCE): How does ths operate for orgs ? */} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This flow works for orgs by grabbing the current member's email (once added) and associating that with the payer record |
||
<EmailForm | ||
title={localizationKeys('commerce.checkout.emailForm.title')} | ||
subtitle={localizationKeys('commerce.checkout.emailForm.subtitle')} | ||
|
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -250,7 +250,7 @@ const AddPaymentSourceForm = ({ children }: PropsWithChildren) => { | |||||||||
const { setupIntent, error } = await stripe.confirmSetup({ | ||||||||||
elements, | ||||||||||
confirmParams: { | ||||||||||
return_url: '', // TODO(@COMMERCE): need to figure this out | ||||||||||
return_url: '', | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We prevent payment methods that require a redirect, so this param is never used (though required) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are we plan to support them in the future ? Are we planning to communicate that they will need to bump sdk versions in order to use it at that point ? Maybe at least we so something like, unless
Suggested change
Suggested change
|
||||||||||
}, | ||||||||||
redirect: 'if_required', | ||||||||||
}); | ||||||||||
|
@@ -294,7 +294,7 @@ const AddPaymentSourceForm = ({ children }: PropsWithChildren) => { | |||||||||
? { | ||||||||||
recurringPaymentRequest: { | ||||||||||
paymentDescription: `${t(localizationKeys(checkout.planPeriod === 'month' ? 'commerce.paymentSource.applePayDescription.monthly' : 'commerce.paymentSource.applePayDescription.annual'))}`, | ||||||||||
managementURL: displayConfig.homeUrl, // TODO(@COMMERCE): is this the right URL? | ||||||||||
managementURL: displayConfig.homeUrl, | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this will probably land them to the index page of their website or Would it be better to do |
||||||||||
regularBilling: { | ||||||||||
amount: checkout.totals.totalDueNow?.amount || checkout.totals.grandTotal.amount, | ||||||||||
label: checkout.plan.name, | ||||||||||
|
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.
is there a reason we have seperate chunks between UP and OP for plans, but not for statements and PAs ?