Compare commits
4 commits
08339b6ed0
...
0083f1b092
| Author | SHA1 | Date | |
|---|---|---|---|
| 0083f1b092 | |||
| 77c42ebe2a | |||
| 803c574796 | |||
| 8ff67a2e29 |
2 changed files with 4 additions and 4 deletions
|
|
@ -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_CREDIT,
|
||||||
"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_CREDIT, 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_CREDIT, 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')
|
||||||
|
|
|
||||||
|
|
@ -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_CREDIT = config('WALLET_IPG_CREDIT')
|
||||||
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)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue