Skip to content
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

Set correct allow_redisplay value for spms with link #4501

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wooj-stripe
Copy link
Collaborator

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

@@ -505,7 +510,8 @@ extension PaymentSheet {
let shouldSave = false // always false, as we don't show a save-to-merchant checkbox in Link VC

if elementsSession.linkPassthroughModeEnabled {
linkAccount.sharePaymentDetails(id: paymentDetails.stripeID, cvc: paymentDetails.cvc) { result in
// allowRedisplay is nil since we are not saving a payment method.
linkAccount.sharePaymentDetails(id: paymentDetails.stripeID, cvc: paymentDetails.cvc, allowRedisplay: nil) { result in
Copy link
Collaborator Author

@wooj-stripe wooj-stripe Jan 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@davidme-stripe - a bit unclear here on capturing allowRedisplay. Is it possible to have a checkbox when given .withPaymentDetails?

@wooj-stripe wooj-stripe marked this pull request as ready for review January 24, 2025 01:30
@wooj-stripe wooj-stripe requested review from a team as code owners January 24, 2025 01:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant