How can I apply currency based on country IP in stripe payment ?
Hi @Adil_Kadiyawala !
To get ecommerce to use a currency other than US$, there’s a few configuration changes that you need to make when on the ecommerce and LMS services. These changes will propagate to your payment gateway, Stripe.
This example uses GBP as the currency, pulled from OpenCraft’s Configuring Ecommerce and Course Discovery.
To get this to work, you’ll need to be running a version of ecommerce that contains this fix: SE-2298 Allows setting default currency from environment by swalladge · Pull Request #2916 · edx/ecommerce · GitHub.
Need to set
# Ansible variable added by https://github.com/edx/configuration/pull/5757 ECOMMERCE_OSCAR_DEFAULT_CURRENCY: 'GBP'
If you already have course mode entries for your existing courses, you also need to update them to use the currency you want. These can be edited via Django Admin: https://your-lms.com/admin/course_modes/
EDXAPP_PAID_COURSE_REGISTRATION_CURRENCY: ['gbp', '£'] EDXAPP_LMS_ENV_EXTRA: COURSE_MODE_DEFAULTS: bulk_sku: !!null currency: gbp description: !!null expiration_datetime: !!null min_price: 0 name: Honor sku: !!null slug: honor suggested_prices: ''
Does this help?