#.saberkhan

1 messages · Page 1 of 1 (latest)

topaz ravenBOT
rustic silo
#

Can you provide the Checkout Sesison id?

last lotus
#

"cs_test_a18bihFo3yfo8ZWPDz6iWKiMRHzA9EIDSJjoXMeASceS7eV1jNjBFgFDSn",

rustic silo
#

I only see you have created this Checkout Session, but no customer has completed paying

last lotus
#

How can I make customer to make it pay. I input automatic in the request payload.

rustic silo
#

What do you mean by "make customer to make it pay"?

#

Checkout Session returns a link, you share the link to the customer, they view the screen and pay

last lotus
#

In the Stripe example, payment intent created and only input was quantity, price and mode as payment.

rustic silo
#

Sorry which example?

last lotus
rustic silo
#

oh right, lemme look closer

last lotus
#

ok

rustic silo
#

The price is too small

#

Can you try a bit larger amount?

last lotus
#

Let me try

#

Still payment intent is null here is the id of the checkout session cs_test_a1EVaEtrTmbV5DLpTT668p9xRI6o4qjkVBFvV1MsU9zfPjYJoHsomkzsOg

rustic silo
#

That's weird, hold on

last lotus
#

ok

rustic silo
#

https://stripe.com/docs/upgrades#2022-08-01 From API version 2022-08-01,

A PaymentIntent is no longer created during Checkout Session creation in payment mode. Instead, a PaymentIntent will be created when the Session is confirmed.

Keep track of changes and upgrades to the Stripe API.

last lotus
#

How can I confirm the checkout session during creation of checkout

rustic silo
#

That's a different thing, like I said above Checkout does not behave like that. You will need to open the URL and input the test card and click "Pay"

last lotus
#

Will you share test card number? thank you

rustic silo
#

You have a bunch here https://stripe.com/docs/testing

Use test cards to validate your Stripe integration without moving real money. Test a variety of international scenarios, including successful and declined payments, card errors, disputes, and bank authentication. You can also test non-card payment methods.

last lotus
#

Thank you!

#

Payment Intent is creted! Thank you again.

last lotus
#

Is it possible to create a price object inputting multiple line items?

rustic silo
#

Not sure what that means

#

You can have a Price beforehand, or on-the-fly when creating PaymentIntent

last lotus
#

Checkout session requires price object, so I want to create multiple line items consisting of different products with different prices and using the price API to create price object and pass the price object id to the Checkout seesion.

rustic silo
#

You can create the CheckoutSession without creating a Price object before hand

#

use the price_data

last lotus
#

Let me look

last lotus
#

Yes it works. Thank you again!

#

Question, instead of redirecting user to stripe URL to pay with credit card information, is it possible for user to say on my website and enter credit card information assuming I comply with PCI?

rustic silo
#

That's PaymentElement

#

It's a Stripe built UI you can embed into your own website

#

It takes more effort, but it's what you are asking

last lotus
#

We can do that.

rustic silo