Relative Content

Tag Archive for pythondjangostripe-payments

Django stripe expand data to webhook

i sending order data by post request to stripe and creating session and set my order data in line_items, problem is that i want this line_items data to expand to stripe webhook view and by this data creating order and payment history, i tryed first to set this data to

Stripe promocode: how to verify that user have redeemed the promocode before or not

I have a Django project configured with Stripe for payments. I have created promocodes for discounts, which can only be redeemed once per customer. The problem is that I want to validate whether a given customer has already redeemed a specific promocode. If they haven’t redeemed it, I want to proceed to the next step; otherwise, I want to stop the customer at that point.