Currently in the process of creating a customized payment module for my django application and in need of some assistance. At the moment, I am using Stripe's Checkout for handling payments, but I find it restrictive as it doesn't allow for complete customization of the checkout page to suit my preferences. I also prefer to keep users on my website throughout the payment process.
During my research in Stripe's documentation, I discovered the "Custom Payment Flow" feature, which appears to be what I am looking for. I envision a flow where when a user clicks on the "Buy product" button, they are directed to a checkout page that I have personalized with HTML. This customized checkout page will display product details, a personal information form, and the Stripe payment form below.
It is my understanding that upon page load, I will need to update a variable named items using jQuery or JavaScript to populate it with the specific item or items the user wishes to purchase.
// The items the customer wants to buy
const items = [{ id: "xl-tshirt" }];
However, I am unsure how to manage the personal information that will be collected from the user.
If anyone could offer some guidance on how to proceed with this integration, it would be greatly appreciated.