#dist
1 messages · Page 1 of 1 (latest)
hi
Hi,
I've tried in models.py use x variable as a global and share it with stripe_views.py but it didn't work
Could you share what error you are getting ?
yes, now when I added something like this the error is:
I want to take a totalPrice to my Stripe session
from Order.py to Stripe_view_py
have you got any idea?
Honestly now, as I'm not having the whole flow, and it seems like more Python question rather than stripe
I guess you right
could you do a test like changing the x * 100 with a hard coded value, just to check if you manage to create a Stripe Checkout Session ?
If I'd valued x = 10 for example, Session will be pop up
I have no idea, how to take the totalPrice and share to my Stripe as x ;/
So yeah, it's more likely a Python question rather than Stripe question 😦 I advice you ask in Python communities (aka StackOverview) you should get better advice on that