#koolknow

1 messages · Page 1 of 1 (latest)

austere riverBOT
hard jackal
#

how can i do this thing ??

round heron
hard jackal
#

okay, will this do everything i need ??

round heron
#

not sure but you can investigate, that's the starting point for building a Stripe integration

hard jackal
#

the documentation is on flask and im want to do it in django

round heron
#

you'll have to adapt it in that case, we unfortunately can't have sample projects using every existing framework.

hard jackal
#

okay

austere riverBOT
hard jackal
#

im not getting it

sweet basin
#

Hi! I'm taking over this thread.

#

How can I help?

hard jackal
#

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??

sweet basin
hard jackal
#

yes i have but i still didnt understand how to do it

sweet basin
#

Which part you don't understand?

hard jackal
#

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

sweet basin
#

How are you accepting payments? Checkout Session, Payment Element, something else?
At which step in the link above are you stuck exactly?

hard jackal
#

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

sweet basin
hard jackal
#

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>

sweet basin
#

what's the problem/question?

hard jackal
#

this is the only html i have to add??

sweet basin
#

Yes, it's just a link to your backend, who will then create the Checkout Session and redirect users to the payment page.

hard jackal
#

okay

#

then i have to create a checkout session function

#

right?