REFACTOR(wallets): rename WALLET_INCOME_FROM_IPG to WALLET_IPG_TRANSIT #2

Merged
Ghasemi merged 1 commit from feature/wallet-refactor into master 2026-08-31 09:20:44 -04:00
2 changed files with 4 additions and 4 deletions

View file

@ -214,7 +214,7 @@ class PaymentRequest(models.Model):
"uuid": str(self.income_uuid), "uuid": str(self.income_uuid),
"payee": str(self.application_id), "payee": str(self.application_id),
"payee_type": TypeChoices.APPLICATION.value, "payee_type": TypeChoices.APPLICATION.value,
"payee_wallet": settings.WALLET_INCOME_FROM_IPG, "payee_wallet": settings.WALLET_IPG_TRANSIT,
"amount": self.commission, "amount": self.commission,
"details": { "details": {
'description': str(_("ipg commission income")), 'description': str(_("ipg commission income")),
@ -222,7 +222,7 @@ class PaymentRequest(models.Model):
'application_details_url': '' 'application_details_url': ''
}, },
} }
submit_response = deposit_to_user_wallet_submit(settings.WALLET_INCOME_FROM_IPG, data) submit_response = deposit_to_user_wallet_submit(settings.WALLET_IPG_TRANSIT, data)
if not submit_response or not submit_response.uuid: if not submit_response or not submit_response.uuid:
raise Exception('Failed to submit income in wallet') raise Exception('Failed to submit income in wallet')
@ -230,7 +230,7 @@ class PaymentRequest(models.Model):
return submit_response return submit_response
def deposit_income_verify(self): def deposit_income_verify(self):
verify_response = deposit_to_user_wallet_verify(settings.WALLET_INCOME_FROM_IPG, self.income_uuid) verify_response = deposit_to_user_wallet_verify(settings.WALLET_IPG_TRANSIT, self.income_uuid)
if not verify_response or not verify_response.uuid: if not verify_response or not verify_response.uuid:
raise Exception('Failed to verify income in wallet') raise Exception('Failed to verify income in wallet')

View file

@ -264,7 +264,7 @@ LOGGING = get_logging_setting()
PNA_CORPORATION_PIN = config('PNA_CORPORATION_PIN') PNA_CORPORATION_PIN = config('PNA_CORPORATION_PIN')
WALLET_BASE_PUBLIC_URL = config('WALLET_BASE_PUBLIC_URL') WALLET_BASE_PUBLIC_URL = config('WALLET_BASE_PUBLIC_URL')
WALLET_RIAL_DEPOSIT = config('WALLET_RIAL_DEPOSIT') WALLET_RIAL_DEPOSIT = config('WALLET_RIAL_DEPOSIT')
WALLET_INCOME_FROM_IPG = config('WALLET_INCOME_FROM_IPG') WALLET_IPG_TRANSIT = config('WALLET_IPG_TRANSIT')
IPG_BASE_PUBLIC_URL = config('IPG_BASE_PUBLIC_URL') IPG_BASE_PUBLIC_URL = config('IPG_BASE_PUBLIC_URL')
COMMISSION_LEVEL1 = config('COMMISSION_LEVEL1', cast=int) COMMISSION_LEVEL1 = config('COMMISSION_LEVEL1', cast=int)