#koolknow
1 messages · Page 1 of 1 (latest)
how can i do this thing ??
hi, I'd start at https://stripe.com/docs/payments/accept-a-payment
okay, will this do everything i need ??
not sure but you can investigate, that's the starting point for building a Stripe integration
the documentation is on flask and im want to do it in django
you'll have to adapt it in that case, we unfortunately can't have sample projects using every existing framework.
okay
im not getting it
soma i have created a project in django. which will calculate the price using the routes. now i want to charge the price from the customer. so i want the stripe payment gateway to be integrated in my project so can you help me out??
Did you read the link shared above? https://stripe.com/docs/payments/accept-a-payment
yes i have but i still didnt understand how to do it
Which part you don't understand?
as you know the documentation is in flask
like i have my own pricing algorithm. and with that price i want to charge the user. can i want to make sure that the payment is checked. if it is completed or not
How are you accepting payments? Checkout Session, Payment Element, something else?
At which step in the link above are you stuck exactly?
look soma i have a private ride booking system. and customer cannot book a ride without paying for the ride. according to the price i want a checkout page to be shown to the customer. and when he pays for the ride.means his ride has been booked
If you want to accept a payment with Stripe, then please read https://stripe.com/docs/payments/accept-a-payment
And if you have a question about a specific step in the guide, please let me know.
okay
step 2 in the DOCS
Redirect your customer to Stripe Checkout
im having problem on that
<html>
<head>
<title>Buy cool new product</title>
</head>
<body>
<!-- Use action="/create-checkout-session.php" if your server is PHP based. -->
<form action="/create-checkout-session" method="POST">
<button type="submit">Checkout</button>
</form>
</body>
</html>
what's the problem/question?
this is the only html i have to add??
Yes, it's just a link to your backend, who will then create the Checkout Session and redirect users to the payment page.