ios-oss
ios-oss copied to clipboard
[MBL-1391] Payment Intent StripeIntentContextType
📲 What
Updates the call to CreatePaymentIntent to include the StripeIntentContextType.
- We did this somewhat recently for the SetupIntent calls. Same idea here.
🤔 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
- Adds
paymentIntentContext(defined in GraphAPI model) toCreatePaymentIntentInput - Updates
.createPaymentIntentcall sites
👀 See
No UI changes
♿️ Accessibility
No accessibility changes needed
🏎 Performance
Same
✅ Acceptance criteria
- [x] No changes to normal Crowdfunding checkout flow
- [x] No changes to Late Pledge checkout flow
- [x] No changes to creating Setup Intents and Payment Intents
⏰ Next Steps
- [ ] Update the Late pledge feature flag to block late pledges on app versions that don't pass in the additional metadata (i.e. older app versions)
- [x] Note this for regression testing in the upcoming release since this touches pieces of both checkout flows.