#farhan1212
1 messages · Page 1 of 1 (latest)
The setup intent is used to create and save payment method data, payment intents are used to collect funds
You can read about each in our docs
I dont want to use 3ds
What do you want to do?
$stripe = new \Stripe\StripeClient(json_decode(site('stripe'))->stripe_secret);
$intent = $stripe->setupIntents->create(['usage' => 'on_session']);
Can you describe in words what you are trying to do?
"id": "sub_1NaOGMEMaWP6ZjJoMoyGEgJm",
I am receiving status incomplete by using the method above
What are you trying to do, overall?
The ID is for a subscription but the code you shared is referencing setup intents
In my website,I have three different plans, planid of which I have set on my stripe account, I want users to come on my website, select plan, subscribe, and payment should be deducted from their cards on monthly basis, it would be great if the the first payment is immediate, rather than after 1 month, and payment should be charged automatically each month
$stripe = new \Stripe\StripeClient(json_decode(site('stripe'))->stripe_secret);
$intent = $stripe->setupIntents->create(['usage' => 'on_session']);
Is this code useless for subscriptions?
Okay, that is how our basic subscription integration works; https://stripe.com/docs/billing/subscriptions/build-subscriptions
I recommend you review the doc I linked and see if that meets your needs
a simple question, is setting webhook necessary for completion status?
Are you using Checkout or a direct integration?
direct integration
Then yes, we cover that here: https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements#webhooks
"id": "sub_1NaOGMEMaWP6ZjJoMoyGEgJm",
can you pls tell why this trnasction returned status incomplete and no payment was deducted from the card?
The payment intent required 3DS authentication
It wasn't provided
So the payment failed
You created the Payment Method with usage: "on_session" https://dashboard.stripe.com/logs/req_a7AcOpRJFN26rU
So we expect that means the customer is present when you are charging the card and will be able to authenticate the purchase
customer is present where?
When you attempt to create the Subscription
yes I used my own card
The card required 3DS
I could not understand the meaning of "customer is present"?
Meaning when you create the subscription you have the customer interacting with an interface you control
So you can retrieve the incomplete payment Intent and use it to display the 3DS UI to them
what are the next steps after receving imcomplete status, what should I do next?
You should bring the user on-session to complete the 3DS authentication
Or use a different payment method
I think you need to step way back and review how our Subscription integrations work
Start at the very beginning of the doc I linked, build the test integration, and see if that makes more sense to you
Hello! I'm taking over and catching up...
Can you tell me at a high level what you're trying to build?
actually it is already build in my website but i don know whats wrong there, its a subscription actually
"id": "sub_1NaOGMEMaWP6ZjJoMoyGEgJm",
trnasctions return status incomplete and i have no clue fixing it,also payment is not deducted from card
Right, so it sounds like it's not built. But I don't know what you're trying to build. Can you describe your desired payment flow?
In my website,I have three different plans, planid of which I have set on my stripe account, I want users to come on my website, select plan, subscribe, and payment should be deducted from their cards on monthly basis, it would be great if the the first payment is immediate, rather than after 1 month, and payment should be charged automatically each month
Okay, so you've been following this guide? https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements
yes