How to Go Live

Steps for Go Live

For Python SDK Version <= 0.0.3, the imports should be:
from phonepe.sdk.pg.payments

For Python SDK Version > 0.0.3, the imports should be:
from phonepe.sdk.pg.payments.v1

Create an instance of the PhonePePaymentClient class.

from phonepe.sdk.pg.payments.v1.payment_client import PhonePePaymentClient
from phonepe.sdk.pg.env import Env

merchant_id = "<PROD_MERCHANT_ID>" #Should be replaced with Production MID (String)
salt_key = "<PROD_SALT_KEY>" #Should be replaced with Production Salt Key (String)
salt_index = <PROD_SALT_INDEX> #Should be replaced with Production Salt Key Index (Numeric)
env = Env.PROD #Should be changed to Env.PROD when you go live

phonepe_client = PhonePePaymentClient(merchant_id=merchant_id, salt_key=salt_key, salt_index=salt_index, env=env)