#Sapna Verma

1 messages · Page 1 of 1 (latest)

hollow solsticeBOT
sinful sonnet
civic lotus
#

when a payment is successful, the payment element creates something for success cases?

sinful sonnet
#

Sorry, I'm not understanding your question? what you mean by "creates something" ?

civic lotus
#

when some payment is successfully done, what will be the action at iframe?

#

any success message from stripe?

sinful sonnet
hollow solsticeBOT
civic lotus
#

if the subscription creating creates a payment, in what cases we use the setupintent and paymentintent, please clarify

sinful sonnet
#

When creating a Subscription using API, you don't need to use Setup/Payment Intent APIs. just use the Subscription API following the guide I share above.

civic lotus
#

hello, I dont use Paymentintent and collect the payment through Subscription api....i guess i won't be able to listen to the events like payment_intent.succeeded or payment_intent.failed....right?

#

how will i handle the successful and failed cases

astral kraken
civic lotus
#

payment action

astral kraken
#

which payment action?

#

do you mean the first payment of the subscription, that's done when the customer is signing up for the subscription on your site initially? or some later recurring payment on the subscription?

civic lotus
#

later recurrring payment

astral kraken
civic lotus
#

In the case of card verification checks, does stripe send the results on the iframe like error on verification etc.

astral kraken
#

what specifically do you call a "card verification check"?

#

we do show validation errors in our PaymentElement for example.

civic lotus
astral kraken
#

those happen when the payment attempt is made

#

so they come in the Promise from confirmPayment for example, and you would show those in your UI according to our docs

civic lotus
#

will there be any responses like success/errors somewhere

#

i am referring to the free Radar

#

basic Radar that comes free

#

plaese throw some light on this topic

#

i use braintree, they charge $1 to the card and thus validates the card.

astral kraken
#

you should test it in test mode and it will make more sense.

civic lotus
#

i just wanted to know a little think - where the error codes like declined codes be shown --in the iframe itself?

astral kraken
#

no, they're in the error.message returned from the confirmPayment promise for example, and then you can show them in your page

civic lotus
#

if the subscription is created and the charge is made using Subscription API, we will listen to the event customer.subscription.created. Which event wll be fired in case of failed payment?

#

i am not using intents until this point

astral kraken
#

you must use Intents, that's not optional

astral kraken
civic lotus
#

you must use Intents, that's not optional
--I used subscriptionapi to create a subcription and add a payment method...till then i did not create any intent. or Will i need to create intent for payments

#

please guide

astral kraken
#

creating a subscription and passing a paymentmethod directly is legacy and does not support 3D Secure

civic lotus
#

u mean I must use paymentintent and not subscription api

#

or both?

#

I dont see the parameters for recurring option in the payment intent's

#

api

astral kraken
#

both

#

it's all described in the docs, how you create a Subscription and use the PaymentIntent which is returned.

hollow solsticeBOT
sweet cloud
#

👋 taking over for my colleague. Let me know if there's any follow-up Qs I can answer!

civic lotus
#

hey Tarzan, I am using subscription API along with the setupIntent API for future payments. If the request a trial extension, update subscription with new trial_end will suffice or I should use some update setupIntent as well

#

?

#

i am still awaiting your reply

sweet cloud
#

you really don't need the SetupIntent for configuring a trial period

#

and you don't even need it with Subscription API

civic lotus
#

then what would i need..

#

how do i enable trials

#

and how to create subscriptions after the trial end

sweet cloud
#

do you need to collect the payment method before or after the trial ends?

civic lotus
#

before the trial ends

sweet cloud
#

so on creation right?

civic lotus
#

before the trial ends...in between the trial period

#

not when the trial is created...sometime after that

sweet cloud
#

ok are you using Checkout to create the subscription?

civic lotus
#

no i have plans of my product..so cant use checkout

#

I must use SetupIntent for saving the card details, and paymentintent for processign the payment

#

ami correct?

sweet cloud
civic lotus
#

i cant use checkout flow because what i am selling is a saas product

sweet cloud
#

where did you read that you can't?

civic lotus
#

as in out of checkout and paymentintent, i should use intents as they have the latest support and upgrades

sweet cloud
#

Checkout uses Intents under the hood

#

Checkout is a low-code solution

civic lotus
#

i cant provide checkout to the plans. its a subsciption

sweet cloud
#

Checkout allows subscriptions

civic lotus
#

i cant allow this - , learn how to add a button to your website that creates a Checkout Session.

sweet cloud
#

you just need to change the mode from "payment" to "susbcription"

civic lotus
#

the checkout button

sweet cloud
#

no not the checkout button

#

this is a different integration path

#

please read through the link I provided earlier

civic lotus
#

point no 3 says - Create a Checkout Session
Client and Server
Add a checkout button to your website that calls a server-side endpoint to create a Checkout Session.

sweet cloud
#

this could be any button

#

no necessarily a button saying "Checkout"

#

the idea is that you want something that "triggers" the creation of the Checkout Session

#

regardless what that trigger is

civic lotus
#

also, for point no- 6 and 6, i am not planning to use customer portal

sweet cloud
#

what are you planning to do?

#

you can choose the Custom-Code route if you don't want to build your integration around Checkout

civic lotus
#

checkout looks better...will i need subscription api as well...for creating teh subscriptions?

sweet cloud
#

to get the client_secret for your Payment Elements

#

checkout looks better
if you use Checkout you don't need to create the Subscription yourself

#

the Checkout Session will do it for you

#

but in that case I would recommend collecting the payment method from the start with Checkout

civic lotus
#

also, can i bypass the customer portal usage

sweet cloud
#

yes you don't need the customer portal, this is optional

civic lotus
#

also, Continue to provision each month (if billing monthly) as you receive invoice.paid events. what if i am using my wn invoicing than Stripe's....will it work even then

sweet cloud
#

that's irrelevant of how you create the subscription

#

you will still get the invoice.paid events

civic lotus
#

so even I dont use Stripe's Invoice.. i will get the invoice events

sweet cloud
#

the Checkout will create the Subscription for you, and the Subscription will generate the invoices and you don't have to create the invoices manually yourself

civic lotus
#

ok

hollow solsticeBOT
civic lotus
#

one more thing, the checkout lets me create the trials and the payment towards subscription before the end of the trial?

mortal surge
#

Hi! I'm taking over my colleague. Please, give me a moment to catch up.

civic lotus
#

what is the parameter to collect the payment details?

mortal surge
#

What do you mean?

civic lotus
#

the payment_method isnt there in the session object

mortal surge
civic lotus
#

I have a case when the customer pays before the trial ends, he pays but that will make the payment for future when the trial ends, shall I usemode setup for those paymnets

#

in create session api

#

although the product is of subscription type...

mortal surge
#

No, you should use mode:"subscription in this case.

civic lotus
#

?

#

ok

mortal surge
#

Please, let me know if you have any other questions.

civic lotus
#

yes

#

customer_creation can be used upon subscription?

#

it says - Can only be set in payment and setup mode.

#

but if_required
The Checkout Session will only create a Customer if it is required for Session confirmation. Currently, only subscription mode Sessions require a Customer.

#

i want to create a customer when payment details are entered...so i will select customer_creation as always...right?

mortal surge
#

You can create a Customer before creating a Checkout Session

#

And then pass the Customer ID when creating a Checkout Session

civic lotus
#

i dont want that...only creating after the session's payment details are added

#

is it possible? as given

mortal surge
civic lotus
#

this is not my question'

hollow solsticeBOT
mortal surge
#

I need more context to answer your question correctly. That's why I am asking for the request ID.

civic lotus
#

i want to create a customer only during checkout when the payment details are enetered

#

?

#

how do i handle failed payments in case of checkouts

oblique mason
#

What are you looking to handle about the payment failures?

civic lotus
#

i am using checkout for payments

#

want to handle payment faillutres via checkout session

#

the help only talk about the paymentintents

oblique mason
#

What about the failure are you looking to handle? The Checkout page itself will surface any errors to the user and help them retry the payment