stripe-payments

Stripe Subscription using stripe.Subscription.create function does not provide client_secret with Django

Stripe Subscription using stripe.Subscription.create function does not provide client_secret with Django Question: As suggested here , I am using stripe.Subscription.create function to create a subscription for the users in my Django DRM and expect to have a client secret that is associated with the subscription and the related payment_intent. However following is the error that …

Total answers: 1

do i need to use stripe listen – stripe cli in production?

do i need to use stripe listen – stripe cli in production? Question: Is it required to run in command line: stripe listen –forward-to localhost:5000/webhook to receive stripe events to the webhook endpoint or does the endpoint automatically receive events if it is added to the stripe webhooks dashboard? I’m trying to ask if stripe …

Total answers: 1

Stripe payment do something when payment is successfull Django

Stripe payment do something when payment is successfull Django Question: I have an app about posting an advertises and by default i made an expiration date for every advertise (30 days) now i wanna use stripe to extend the expiration date. what i have so far is the checkout but i want when the payment …

Total answers: 1

Django Stripe InvalidRequestError: Request req_******: Not a valid URL

Django Stripe InvalidRequestError: Request req_******: Not a valid URL Question: I’m using Stripe with django, but while clicking the checkout it return the stripe.error.InvalidRequestError: Request req_N8rlEhXn42Cyxz: Not a valid URL (due to this question, First i tried my localhost:8000/payment/done then tried it using ngrok so that it could be accessible globaly, but still not working). …

Total answers: 2

Stripe: No signatures found matching the expected signature for payload using Django

Stripe: No signatures found matching the expected signature for payload using Django Question: I am getting the below error while Stripe calling the defined Web hook No signatures found matching the expected signature for payload I am following this article: https://stripe.com/docs/billing/subscriptions/checkout#provision-and-monitor And I have following code: @csrf_exempt def saaswebhookview(request): try: stripe.api_key = settings.STRIPE_SECRET_KEY webhook_secret = …

Total answers: 6

stripe: How to convert stripe model object into JSON to get complete hierarchical data?

stripe: How to convert stripe model object into JSON to get complete hierarchical data? Question: How can I convert the stripe model object into JSON to receive complete hierarchical data at client end? stripeCustomer = stripe.Customer.retrieve(<stripe customer id>) sendResponseToClient(stripeCustomer) I am receiving only 1st level of data as json at client end, second level data …

Total answers: 2

stripe: iterate over ALL coupons

stripe: iterate over ALL coupons Question: I’m using stripe in my website. I’m trying to check if a user supplied input matches a coupon but I can’t figure out how to iterate over all coupons (it appears I always need to enter a limit which can range from 1 to 100): https://stripe.com/docs/api/python#list_coupons Here’s what I’ve …

Total answers: 3