#ArunBhat

1 messages · Page 1 of 1 (latest)

sharp craterBOT
quaint copper
#

Hi there, what do you mean by 2 step payment?

cloud vapor
#

authorization and capture

quaint copper
cloud vapor
#

By default capture will happen automatically, but we need capture separately once the order is completed

quaint copper
#

Did you have a chance to read the doc that I sent to you earlier?

cloud vapor
#

yes i am going through that, i think that will work.
thank you for the help

cloud vapor
#

How can i add PaymentIntentService to SessionCreateOptions

quaint copper
#

I don't understand this question, do you have a code to share?

cloud vapor
#

var options = new SessionCreateOptions
{
LineItems = new List<SessionLineItemOptions>
{
new SessionLineItemOptions
{
// Provide the exact Price ID (for example, pr_1234) of the product you want to sell
Price = intent.Id,
Quantity = 1,
},
},

            Mode = "payment",
            SuccessUrl = domain + "WebForm1.aspx?test=123",
            CancelUrl = domain + "cancel.aspx",
        };
#

i have created the intent service but after that how can i redirect to stripe

quaint copper
#

Why are you using SessionCreateOptions? I though we are talking about PaymentIntents API?

#

I'd suggest you to use the example code in the doc I sent to you earlier to get started.

cloud vapor
#

after PaymentIntentService creation what should be the next step

#

i mean how can i redirect to stipe page?

quaint copper
#

Or do you prefer to use Stripe checkout for auth and capture?

cloud vapor
#

we prefer stripe checkout, can we do that?

quaint copper
#

You can then call the PaymentIntents capture API to capture the PaymentIntent that created in the checkout session.