REFACTOR(wallets): rename WALLET_INCOME_FROM_IPG to WALLET_IPG_CREDIT #3
2 changed files with 4 additions and 4 deletions
|
|
@ -214,7 +214,7 @@ class PaymentRequest(models.Model):
|
|||
"uuid": str(self.income_uuid),
|
||||
"payee": str(self.application_id),
|
||||
"payee_type": TypeChoices.APPLICATION.value,
|
||||
"payee_wallet": settings.WALLET_INCOME_FROM_IPG,
|
||||
"payee_wallet": settings.WALLET_IPG_CREDIT,
|
||||
"amount": self.commission,
|
||||
"details": {
|
||||
'description': str(_("ipg commission income")),
|
||||
|
|
@ -222,7 +222,7 @@ class PaymentRequest(models.Model):
|
|||
'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_CREDIT, data)
|
||||
|
||||
if not submit_response or not submit_response.uuid:
|
||||
raise Exception('Failed to submit income in wallet')
|
||||
|
|
@ -230,7 +230,7 @@ class PaymentRequest(models.Model):
|
|||
return submit_response
|
||||
|
||||
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_CREDIT, self.income_uuid)
|
||||
|
||||
if not verify_response or not verify_response.uuid:
|
||||
raise Exception('Failed to verify income in wallet')
|
||||
|
|
|
|||
|
|
@ -264,7 +264,7 @@ LOGGING = get_logging_setting()
|
|||
PNA_CORPORATION_PIN = config('PNA_CORPORATION_PIN')
|
||||
WALLET_BASE_PUBLIC_URL = config('WALLET_BASE_PUBLIC_URL')
|
||||
WALLET_RIAL_DEPOSIT = config('WALLET_RIAL_DEPOSIT')
|
||||
WALLET_INCOME_FROM_IPG = config('WALLET_INCOME_FROM_IPG')
|
||||
WALLET_IPG_CREDIT = config('WALLET_IPG_CREDIT')
|
||||
IPG_BASE_PUBLIC_URL = config('IPG_BASE_PUBLIC_URL')
|
||||
|
||||
COMMISSION_LEVEL1 = config('COMMISSION_LEVEL1', cast=int)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue