You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Set correct allow_redisplay value for spms with link (#4501)
## Summary
Set allow_redisplay value when signing up for link and saving a new
payment method
## Motivation
allow_redisplay was not being set.
## Testing
Updated existing test
## Changelog
<!-- Is this a notable change that affects users? If so, add a line to
`CHANGELOG.md` and prefix the line with one of the following:
- [Added] for new features.
- [Changed] for changes in existing functionality.
- [Deprecated] for soon-to-be removed features.
- [Removed] for now removed features.
- [Fixed] for any bug fixes.
- [Security] in case of vulnerabilities.
-->
Copy file name to clipboardexpand all lines: StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet+API.swift
+8-2
Original file line number
Diff line number
Diff line change
@@ -456,7 +456,7 @@ extension PaymentSheet {
456
456
case.success(let paymentDetails):
457
457
if elementsSession.linkPassthroughModeEnabled {
458
458
// If passthrough mode, share payment details
459
-
linkAccount.sharePaymentDetails(id: paymentDetails.stripeID, cvc: paymentMethodParams.card?.cvc){ result in
459
+
linkAccount.sharePaymentDetails(id: paymentDetails.stripeID, cvc: paymentMethodParams.card?.cvc, allowRedisplay: paymentMethodParams.allowRedisplay){ result in
Copy file name to clipboardexpand all lines: StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/STPPaymentMethodAllowRedisplay.swift
+1-1
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ import Foundation
16
16
/// Use always to indicate that this payment method can always be shown to a customer in a checkout flow.
0 commit comments