-
Notifications
You must be signed in to change notification settings - Fork 205
W-20504299: refactor of clientSecret(Stripe) and shippingPreference(PayPal) #3524
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: t/team404/sfp-on-pwa
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 |
|---|---|---|
|
|
@@ -268,7 +268,8 @@ const SFPaymentsSheet = forwardRef((props, ref) => { | |
|
|
||
| // Track created payment intent | ||
| const paymentIntent = { | ||
| client_secret: orderPaymentInstrument.paymentReference.clientSecret, | ||
| client_secret: | ||
| orderPaymentInstrument.paymentReference.gatewayProperties?.stripe?.clientSecret, | ||
|
Author
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 is obviously very stripe specific. I dont think the branch supports Adyen in any way yet but keep me honest 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. I actually addressed this in my PR since it was blocking me testing the fail order if I didn't. I created a separate util function so that we can add gateway specific logic the instead |
||
| id: orderPaymentInstrument.paymentReference.paymentReferenceId | ||
| } | ||
|
|
||
|
|
||
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 actually addressed this in my PR since it was blocking me testing the fail order if I didn't.