#.saberkhan
1 messages · Page 1 of 1 (latest)
Can you provide the Checkout Sesison id?
"cs_test_a18bihFo3yfo8ZWPDz6iWKiMRHzA9EIDSJjoXMeASceS7eV1jNjBFgFDSn",
I only see you have created this Checkout Session, but no customer has completed paying
How can I make customer to make it pay. I input automatic in the request payload.
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
In the Stripe example, payment intent created and only input was quantity, price and mode as payment.
Sorry which example?
oh right, lemme look closer
ok
Let me try
Still payment intent is null here is the id of the checkout session cs_test_a1EVaEtrTmbV5DLpTT668p9xRI6o4qjkVBFvV1MsU9zfPjYJoHsomkzsOg
That's weird, hold on
ok
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.
How can I confirm the checkout session during creation of checkout
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"
Will you share test card number? thank you
You have a bunch here https://stripe.com/docs/testing
Is it possible to create a price object inputting multiple line items?
Not sure what that means
You can have a Price beforehand, or on-the-fly when creating PaymentIntent
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.
You can create the CheckoutSession without creating a Price object before hand
use the price_data
Let me look
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?
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
We can do that.