#alvish
1 messages · Page 1 of 1 (latest)
Hi there!
we are using nodejs
Can you share more context on what you are trying to do? You are creating subscriptions with free trials? How are you creating the subscriptions?
yes we are creating subscriptions and we have some paid and free trial plan
we have integrated all
but now we want to verify the card if user select the free trial plan
How do you collect the card details for subscription with a free trial? With a setupintent?
stripe checkout form
Then Stripe will automatically do some verification on the card for you. But yes the first payment of the subscription can still fail.
You can learn more about this here: https://support.stripe.com/questions/check-if-a-card-is-valid-without-a-charge
If you want to avoid this, then you could ask for a $1 fee when creating the subscription. But still, the following payment can still fail, for example because the card doesn't have enough funds.
Yes, but when the card verifies successfully we have to refund his deduct 1$ back.
How can we implement this functionality ??
Because we are giving free trail for 30 days.and we have to deduct 1$.so which functionality we can use in strip checkout page?
generally this is not something we recommend, banks and card networks don't like this behaviour and customers can find it confusing.
there's no built in way to do it using Checkout, you'd need a more custom integration
to be clear, Stripe already validates the card and runs a $0 charge and refunds it and such, as my colleague linked to the docs about. You shouldn't be charging it yourself to 'test' the card.