#farhan1212

1 messages · Page 1 of 1 (latest)

brittle geyserBOT
gleaming fulcrum
#

The setup intent is used to create and save payment method data, payment intents are used to collect funds

low blade
#

I dont want to use 3ds

gleaming fulcrum
#

What do you want to do?

low blade
#

$stripe = new \Stripe\StripeClient(json_decode(site('stripe'))->stripe_secret);
$intent = $stripe->setupIntents->create(['usage' => 'on_session']);

gleaming fulcrum
#

Can you describe in words what you are trying to do?

low blade
#

"id": "sub_1NaOGMEMaWP6ZjJoMoyGEgJm",
I am receiving status incomplete by using the method above

gleaming fulcrum
#

What are you trying to do, overall?

#

The ID is for a subscription but the code you shared is referencing setup intents

low blade
#

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?

gleaming fulcrum
#

I recommend you review the doc I linked and see if that meets your needs

low blade
#

a simple question, is setting webhook necessary for completion status?

gleaming fulcrum
#

Are you using Checkout or a direct integration?

low blade
#

direct integration

gleaming fulcrum
low blade
#

"id": "sub_1NaOGMEMaWP6ZjJoMoyGEgJm",
can you pls tell why this trnasction returned status incomplete and no payment was deducted from the card?

gleaming fulcrum
#

The payment intent required 3DS authentication

#

It wasn't provided

#

So the payment failed

#

So we expect that means the customer is present when you are charging the card and will be able to authenticate the purchase

low blade
#

customer is present where?

gleaming fulcrum
#

When you attempt to create the Subscription

low blade
#

yes I used my own card

gleaming fulcrum
#

The card required 3DS

low blade
#

I could not understand the meaning of "customer is present"?

gleaming fulcrum
#

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

low blade
#

what are the next steps after receving imcomplete status, what should I do next?

gleaming fulcrum
#

You should bring the user on-session to complete the 3DS authentication

#

Or use a different payment method

low blade
#

how can i bring the user on-session?

#

and which different payment method I can use?

brittle geyserBOT
gleaming fulcrum
#

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

low blade
#

😫

#

feeling helpless

urban orchid
#

Hello! I'm taking over and catching up...

#

Can you tell me at a high level what you're trying to build?

low blade
#

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

urban orchid
#

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?

low blade
#

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

urban orchid
low blade
#

yes