Hi So i've been customising Cartridge to work with a booking system for a while.
I think i've almost got the basic processes working correctly. But, i have one thing currently that i don't quite understand. I'm using Stripe for payments and at the payment page step i am creating a customer with the payment handler. That works fine. The problem is that i cant seem to add the returned customer id to the session with request.session['order']['stripe_customer_id'] = customer_id However, i can do it perfectly well with request.session['stripe_customer_id'] = customer_id. But now i just want to understand why it doesn't work the other way. Now i know that changing request.session['foo']['bar'] means it doesn't know it's been modified. But the checkout steps function calls request.session.modified = True at the end when it sets request.session['order']['step'] so it should know to update. I even added in request.session.modified = True below where i've added the ['stripe_customer_id'] but its made no difference. The point where i'm adding the ['stripe_customer_id'] is above the final confirmation step where it saves the order. Just in case that's relevant. I'm starting to think this is just me not understanding how the Django sessions work as I'm still learning Django. Would really appreciate some advice on this one folks as i've reached the stage where i'm going round in circles. Cheers. -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.