{"library":"cashfree_pg","type":"library","category":null,"description":"Official Cashfree Payment Gateway Python SDK. Current version: 5.0.6 (Mar 2026). THREE packages on PyPI causing confusion: 'cashfree-sdk' (0.1.3 — beta, NOT recommended for production by Cashfree), 'cashfree_pg' (5.0.6 — correct current PG SDK), 'cashfree' (1.0.1 — unrelated package). Use cashfree_pg. API version string must be passed to every API call. Supports SANDBOX and PRODUCTION environments. Amount in rupees (float) — unlike Razorpay which uses paise.","language":"python","status":"active","version":"5.0.6","tags":["cashfree","payments","india","fintech","python","payment-gateway"],"last_verified":"Tue Jun 09","install":[{"cmd":"pip install cashfree_pg","imports":["from cashfree_pg.models.create_order_request import CreateOrderRequest\nfrom cashfree_pg.api_client import Cashfree\nfrom cashfree_pg.models.customer_details import CustomerDetails\nfrom cashfree_pg.models.order_meta import OrderMeta\n\ncashfree = Cashfree(\n    XEnvironment=Cashfree.SANDBOX,  # or Cashfree.PRODUCTION\n    XClientId='<x-client-id>',\n    XClientSecret='<x-client-secret>'\n)\n\nx_api_version = '2023-08-01'  # required for every call\n\ncustomer = CustomerDetails(\n    customer_id='cust_001',\n    customer_phone='9999999999'\n)\norder_meta = OrderMeta(\n    return_url='https://yourapp.com/payment/callback?order_id={order_id}'\n)\ncreate_request = CreateOrderRequest(\n    order_amount=500.00,  # in rupees (not paise)\n    order_currency='INR',\n    customer_details=customer,\n    order_meta=order_meta\n)\n\nresponse = cashfree.PGCreateOrder(x_api_version, create_request, None, None)\nprint(response.data.order_id)"]}],"homepage":"https://cashfree.com","github":null,"docs":null,"changelog":null,"pypi":"https://pypi.org/project/cashfree_pg/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"3.10–3.9","success_rate":100,"avg_install_s":4,"avg_import_s":2.87,"wheel_type":"wheel"},"url":"https://checklist.day/v1/registry/cashfree_pg/compatibility"}}