#dist

1 messages · Page 1 of 1 (latest)

trim cliffBOT
compact sluice
#

hi

winter furnace
#

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 ?

compact sluice
#

yes, now when I added something like this the error is:

#

I want to take a totalPrice to my Stripe session

#

have you got any idea?

winter furnace
#

Honestly now, as I'm not having the whole flow, and it seems like more Python question rather than stripe

compact sluice
#

I guess you right

winter furnace
#

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 ?

compact sluice
#

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 ;/

winter furnace
#

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

compact sluice
#

that's right

#

I have to seek into a Django / Python community