#jignesh_13529
1 messages · Page 1 of 1 (latest)
That looks like some JSON parsing error. Have you tried downloaded the example code and run exactly its file?
yes i tried and follow same exactly instruction also
Open create.php
on the line you have
$stripe->paymentIntent->create([
please change it to
$stripe->paymentIntents->create([
Note the s
Sorry, we have flagged and it should be fixed soon
thanks its work. can i asked you one more question ?
Sure
I dont know which payment method good for our requirement.
We want to collect final grand total payment and get transaction id and redirect to success url or fail url. We dont want to transfer items to stripe checkout which best one for us ?
What do you mean by transfer items to Stripe Checkout?
i mean products name
Sorry don't really follow the question. Could you elaborate on what do you mean by transfer products name?
Forgot about product name which one suitable for me please let me know
in php
I just need button that redirect me to stripe
https://stripe.com/docs/checkout/quickstart this Doc, when you choose "Prebuilt checkout page" is the exact example you need to have a button to redirect to Stripe
'line_items' => [[
# Provide the exact Price ID (e.g. pr_1234) of the product you want to sell
'price' => '{{PRICE_ID}}',
'quantity' => 1,
]],
there we have to provide price and quantity for each item right ?
Yes correct
ok
if i dont want to send price and qty separately i just want to send single grand total figure then possible ?
No you need to specify price and quantity. You can give quantity = 1, and price as your grand total
<b>Fatal error</b>: Uncaught (Status 400) (Request req_15z7VgVLForvIs) The price parameter should be the ID of a price object, rather than the literal numerical price. Please see https://stripe.com/docs/billing/prices-guide#create-prices for more information about how to set up price objects.
thrown in <b>K:\xampp\htdocs\stripe-sample-code2\vendor\stripe\stripe-php\lib\Exception\ApiErrorException.php</b> on line <b>38</b><br />
getting error