feat: define gateway, mode and action enums

This commit is contained in:
sankalp committed 2026-09-03 00:39:45 +05:45
1 parent 3a93bdc975
commit 5c0fc1aee2
1 file changed
+25
+25
View File
@@ -0,0 +1,25 @@
from enum import Enum
class PaymentMethod(str, Enum):
"""Supported payment gateways"""
ESEWA = "Esewa"
KHALTI = "Khalti"
FONEPAY = "FonePay"
CONNECTIPS = "ConnectIps"
class PaymentMode(str, Enum):
"""Environment mode controlling which endpoints are used"""
SANDBOX = "Sandbox"
PRODUCTION = "Production"
class PaymentAction(str, Enum):
"""The operation to perform against a gateway"""
PROCESS_PAYMENT = "ProcessPayment"
VERIFY_PAYMENT = "VerifyPayment"
CHECK_PAYMENT = "CheckPayment"