#raam
1 messages · Page 1 of 1 (latest)
Hi there,
What Stripe product are you using, this is anew integration?
Product with recurring price
You can use Stripe Checkout
and specify payment_method_collection: 'always' in order to collect the payment method even if the subscription start with trial
You can refer to this link for more details about building the integration:
https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=checkout
here is the parm that you need to make sure you set it:
https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_method_collection
but there is an issue in that,the payment was not happen but there is a billing of 10 bucks just for free trails,why it is happening like that?
but there is a billing of 10
Could you please share the subscriptionId you are referring to?
yes
But before that,i want this method in stripe element instead of checkout session
@iron prism
@deft gull
Help me @deft gull
@tardy elm be patient please.
there's a tab at the top of the page to change it to "Custom code" which shows the Elements integration
Yes @hollow bolt
what's your current question?
Hey guys want to save the card details of the customer,then i want. To start the subscription with free trial periods.Thanks in Advance.
With stripe element
but i am doing that but,the amount was deducted like 10 bucks while we are subscribed through free trail method
cool. Reply to this then please
@hollow bolt
yes?
you haven't shared the subscription ID(sub_xxx ) relating to the issue you're describing. That was the next step.
thanks, will take a look in a bit and get back to you
you didn't pass a trial period on the request : https://dashboard.stripe.com/test/logs/req_5zDYExRTtG2InE
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
did you set the trial period on the Price directly instead?
if so, you need to pass trial_from_plan:true so that it is used, but in general that approach is deprecated and you should just pass trial_period_days on the API request creating the subscription.