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

Support for upcoming changes to Stripe Prefilling saved cards in Checkout #1671

Closed
mrpritchett opened this issue Apr 25, 2024 · 3 comments
Closed

Comments

@mrpritchett
Copy link

On May 1, 2024, Stripe is changing how cards saved during checkout are going to be made available during checkout for future purchases. It looks like a few new checkout session options are going to be made available to ensure compatibility with current systems.

Is there any way we can get support these things in Cashier? I apologize is this isn't the right forum for this kind of request. Spent about 15 minutes trying to decide which "bucket" it belonged in.

https://support.stripe.com/questions/prefilling-saved-cards-in-checkout

@driesvints
Copy link
Member

Thanks for proposing this! I think we can do something here yeah. I'm seeing this as a new HandlesPaymentMethods concern trait which can be placed on the CheckoutBuilder, SubscriptionBuilder and PerformsCharges trait. This can then keep two properties, one for https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-saved_payment_method_options-allow_redisplay_filters and one for https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-saved_payment_method_options-payment_method_save

Then, these could be set by different methods like allowSavingPaymentMethod, disableSavingPaymentMethod, alwaysRedisplayPaymentMethod, limitRedisplayPaymentMethod, etc.

Lastly, these can then be wired up through the __construct of the CheckoutBuilder.

Would love a PR for this!

@mrpritchett
Copy link
Author

I'm snowed under today and tomorrow, but will try my best to send in a PR Wednesday.

@driesvints
Copy link
Member

Gonna close this now but feel free to send in a PR if you want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants