#ocardenas
1 messages · Page 1 of 1 (latest)
Hi there, are you following this guide for checkout integration? https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=checkout
Hi, I was seeing this guide https://stripe.com/docs/payments/checkout/how-checkout-works#lifecycle
Ok, which part do you need me to explain?
I want to use the api for make the integration with stripe
$checkout_session = \Stripe\Checkout\Session::create([
'line_items' => [[
# Provide the exact Price ID (e.g. pr_1234) of the product you want to sell
'price' => '{{PRICE_ID}}',
'quantity' => 1,
]],
'mode' => 'payment',
'success_url' => $YOUR_DOMAIN . '/success.html',
'cancel_url' => $YOUR_DOMAIN . '/cancel.html',
]);
this part please
I need to create a product inside of Stripe?
could make this integration without send the price_id and only send the total price
?
No you can't. The checkout session API requires a price. You can either provide a price ID, or pass in a price_data (https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-line_items-price_data) and Stripe will generate a new price object inline.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I understand
I have other doubt, If I use PaymentIntent directly always I have to use StripeElements?
You can use Stripe Elements. Here's how you can get started https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements
Ok, my doubt is I could create an own form?
and for Example manage the data of credit card?
You can, but it's not recommended. Handling sensitive credit card information in your application requires getting PCI compliance by yourself.
sorry for the question but whats is PCI?
Hey! Taking over for my colleague. Let me catch up.
You can find here a full guide to PCI compliance:
https://stripe.com/guides/pci-compliance
Thanks a lot
I have other question if I manage the credit card information for my side
what flow I'll have to follow to the integration?
What do you mean by this ? like storing card details in your integrations ?
Yes for example in this example https://stripe.com/docs/payments/quickstart
I have to create a PaymentIntent
after that create payment element
and handle the submit event
but in this case I create the payment element and manage the credit card data
Yeah for sure
Sorry I have other doubt, are you have a guide for vue.js?
AFAIK, we don't have an official guide for Vue.js,
but you can refer to this librairy from the community:
https://stripe.com/docs/libraries/community#:~:text=Vue-,Vue Stripe,-Joff Tiquez
Sorry I have other doubt If I want to go direct to api without Stripe Elements
how I can do this?
What do you mean by "go direct to api"?
I was reading this page
and in this have a this section
If I would like to use this option
how i should be the integration?
You should absolutely not use a direct API integration like that
Requires additional SAQ compliance outside of that covered by Stripe's payment UIs, which for most users is a non-starter
I'd strongly advise against this, do you have the necessary PCI compliance?