FIX(pg): deposit user balance from IPG's own wallet, not the user rial wallet
deposit_submit/deposit_verify passed WALLET_RIAL_DEPOSIT (a user-side wallet type) as the company-side payer wallet. The payer must be IPG's application wallet, WALLET_IPG_CREDIT; the user's rial wallet stays as the body payee_wallet. deposit_income_* already used WALLET_IPG_CREDIT correctly. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
parent
0083f1b092
commit
e4e13b2235
1 changed files with 2 additions and 2 deletions
|
|
@ -157,7 +157,7 @@ class PaymentRequest(models.Model):
|
|||
'application_details_url': ''
|
||||
},
|
||||
}
|
||||
submit_response = deposit_to_user_wallet_submit(settings.WALLET_RIAL_DEPOSIT, data)
|
||||
submit_response = deposit_to_user_wallet_submit(settings.WALLET_IPG_CREDIT, data)
|
||||
|
||||
if not submit_response or not submit_response.uuid:
|
||||
logger.error(f"[Deposit Submit] Wallet submission failed | payment_id={self.pk}")
|
||||
|
|
@ -175,7 +175,7 @@ class PaymentRequest(models.Model):
|
|||
return to_success
|
||||
|
||||
def deposit_verify(self):
|
||||
verify_response = deposit_to_user_wallet_verify(settings.WALLET_RIAL_DEPOSIT, self.uuid)
|
||||
verify_response = deposit_to_user_wallet_verify(settings.WALLET_IPG_CREDIT, self.uuid)
|
||||
|
||||
if not verify_response:
|
||||
logger.error(f"[Deposit Verify] Failed to get response from wallet service | payment_id={self.pk}")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue