#ijsje
1 messages · Page 1 of 1 (latest)
stripe.checkout.Session.create is my function
checkout_session = stripe.checkout.Session.create( success_url='<>', cancel_url='<>', payment_method_types=['ideal', 'bancontact', 'card'], mode='subscription', customer=customer_id, client_reference_id=<> automatic_tax={ "enabled": True, }, customer_update={"address": 'auto', "shipping": 'auto', "name": 'auto'} if customer_id else {}, allow_promotion_codes=True, subscription_data={}, line_items=[ {'price': price_id, 'quantity': 1} ] )