@boreal star pressed the 🧑💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:
Code
const session = await this.stripeService.stripe.checkout.sessions.create({
mode: 'subscription',
customer: user?.stripeCustomerId,
line_items: [
{
price: subscription?.stripePriceId,
quantity: 1,
},
],
payment_method_types: ['card', 'paypal'],
success_url: successUrl,
cancel_url: cancelUrl
})
Question
I have a few subscription plans on my account, and I allow my end customers to subscribe to them by creating a session. A user might already have a card attached to their account, or if not, a card gets attached as the default during the subscription process.
Additionally, I made sure that all my cards have "allow_redisplay": "always" set through code.
However, on the subscription session screen hosted by Stripe, the user's default card does not appear. Users are required t
What have you already attempted?
I tried updating the card configuration to ensure "allow_redisplay": "always" is set correctly – initially, this wasn't the case.
Regarding the request to display all cards: unfortunately, it seems the system doesn't support showing multiple cards simultaneously. As a workaround, we can display the default card by default. Let me know if that works for now, or if you'd like to explore alternative solutions.
What are you working on?
A client side ecommerce project with subscription