-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[MBL-1391] Payment Intent StripeIntentContextType and CheckoutID #2057
[MBL-1391] Payment Intent StripeIntentContextType and CheckoutID #2057
Conversation
163fe42
to
b6017d4
Compare
) { | ||
self.projectId = projectId | ||
self.amountDollars = amountDollars | ||
self.digitalMarketingAttributed = digitalMarketingAttributed | ||
self.paymentIntentContext = paymentIntentContext | ||
} | ||
} |
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.
Out of scope for this PR, but this type seems redundant to GraphAPI.CreatePaymentIntentInput
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
…ttps://github.com/kickstarter/ios-oss into scott/mbl-1391/late-pledge-payment-intent-context
Generated by 🚫 Danger |
90830ff
to
8362cfa
Compare
@@ -334,6 +337,7 @@ public final class PledgePaymentMethodsViewModel: PledgePaymentMethodsViewModelT | |||
) | |||
clientSecretSignal = stripeIntentService.createPaymentIntent( | |||
for: project.graphID, | |||
checkoutId: checkoutId, |
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 this one already graph-encoded?
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.
Nope!
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, assuming that everywhere you needed the encoded GraphQL ID is correct
📲 What
Updates the call to CreatePaymentIntent to include the StripeIntentContextType and the Checkout ID.
🤔 Why
We need this information to store additional metadata in the payment intent when it's created for on-session payments. This is helpful when the backend tries to debug any issues during checkout.
🛠 How
Checkout ID
CreateCheckoutMutation
to .createPaymentIntent call sitesContext
paymentIntentContext
(defined in GraphAPI model) toCreatePaymentIntentInput
.createPaymentIntent
call sites👀 See
No UI changes
♿️ Accessibility
No accessibility changes needed
🏎 Performance
Same
✅ Acceptance criteria
⏰ Next Steps