Skip to content
This repository has been archived by the owner on Apr 19, 2022. It is now read-only.

Commit

Permalink
Python: serve shipping options from config route.
Browse files Browse the repository at this point in the history
  • Loading branch information
thorsten-stripe committed Mar 3, 2019
1 parent f10f49a commit be2b518
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion server/python/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,21 @@ def get_config():
'stripeCountry': os.getenv('STRIPE_ACCOUNT_COUNTRY') or 'US',
'country': 'US',
'currency': 'eur',
'paymentMethods': os.getenv('PAYMENT_METHODS').split(', ') if os.getenv('PAYMENT_METHODS') else ['card']
'paymentMethods': os.getenv('PAYMENT_METHODS').split(', ') if os.getenv('PAYMENT_METHODS') else ['card'],
'shippingOptions': [
{
'id': 'free',
'label': 'Free Shipping',
'detail': 'Delivery within 5 days',
'amount': 0,
},
{
'id': 'express',
'label': 'Express Shipping',
'detail': 'Next day delivery',
'amount': 500,
}
]
})


Expand Down

0 comments on commit be2b518

Please sign in to comment.