#AdityaCodal-customer
1 messages · Page 1 of 1 (latest)
👋 happy to help
if you want we could use this thread to continue chatting
instead of the main channel
okay
where is your Stripe Account located in?
India
yes unfortunately, Search is currently unavailable in India
okay so, It's possible to change regional
in that case if you're going to operate in India, there's no reason for you to change the location otherwise you might end up testing things that would eventually not work in the country you operate in
India has very specific set of rules/regulations/limitations
okay
I've another question related stripe
I'm use this reference -> https://stripe.com/docs/billing/subscriptions/fixed-price#add-elements-to-your-page
I'v created product/price and subscription in stripe dashboard
Right now I've required create subscription with charge/capture payment from customer and status required to complete.
I'm flow use as
- Create setup intent and generate
client_secretand pass to frontend html page - There way to load stripe element using stripe.js and get
payment_method(payment method id) - After calling
create subscriptionapi and there create subscription
Problem:
-
But issue is subscription are created but status are still showing as a
incomplete. -
How can I create capture or charges from customer.?
Hi @agile ferry can you please answer for above question thanks!
yes I can just bare with me, I'm trying my best to answer everyone as fast as humanly possible 🙈
could you please share the code you're using? or a request id? here's how you could find one https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
yes sorry, I'm taking a look
again sorry for the late reply
discord has been quite busy the last couple of hours
could you please provide some request ids to take a better look? here's how you can find one https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
req_6ERngKeGHsShaA
any update ? thanks
sorry not really, looking right now
Taking over here, catching up!
What's the issue exactly? The status: 'incomplete'?
Hi @drifting onyx How can I capture payment on this subscription
I need capture payment or create charge on subscription.
Can you please explain how to invoice paid flow work?
Sure, the underlying Payment Intent (pi_3LE9q9SDupx40suj13d1qeO9) has a status of requires_action, which means auth/3DS was requested
okay so ^this flow how to work with stripe.js
This is expected with payment_behavior: 'default_incomplete' (the default): https://stripe.com/docs/api/subscriptions/create#create_subscription-payment_behavior
Use allow_incomplete to create subscriptions with status=incomplete if the first invoice cannot be paid. Creating subscriptions with this status allows you to manage scenarios where additional user actions are needed to pay a subscription’s invoice. For example, SCA regulation may require 3DS authentication to complete payment. See the SCA Migration Guide for Billing to learn more. This is the default behavior.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
You'd use confirmPayment with Stripe.js and the PI client_secret: https://stripe.com/docs/js/payment_intents/confirm_payment
It's already setup from frontend side let me explain my setup with step
- Create setup intent (Backend)
passclient_secretto frontend - stripe.confirmSetup (Frontend)
pass payment method (pm_1LEBe5SDupx40sujPrvvdjUT) to backend - then I'm create subscription with below code (backend)
// Create the subscription
const subscription = await stripe.subscriptions.create({
customer: req.body.customerId,
items: [{ price: 'price_HGd7M3DV3IMXkC' }],
expand: ['latest_invoice.payment_intent'],
});
That's not the pm_xxx you passed here though: https://dashboard.stripe.com/test/logs/req_6ERngKeGHsShaA
Anyway, I suspect this is related to RBI regulations somehow: https://stripe.com/docs/india-recurring-payments
And your integration is a little non-standard to what we recommend: https://stripe.com/docs/billing/subscriptions/build-subscriptions
Is there a reason you create a Setup Intent separately?
Yeah the issue is the subscription creation is triggering a new setup_future_usage mandate for the recurring/off-session payments (basically ignoring the pm_xxx you passed)
You need to refactor your integration to how we recommend (create the subscription first, then capture payment details and confirm in Stripe.js): https://stripe.com/docs/billing/subscriptions/build-subscriptions