Open edx koa ip wise currency set in stripe

Hi,
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.

ecommerce

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 OSCAR_DEFAULT_CURRENCY:

# Ansible variable added by https://github.com/edx/configuration/pull/5757
ECOMMERCE_OSCAR_DEFAULT_CURRENCY: 'GBP'

edx-platform

Set both the PAID_COURSE_REGISTRATION_CURRENCY and the currency field on the COURSE_MODE_DEFAULTS.

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?