Commit graph

49 commits

Author SHA1 Message Date
e4e13b2235 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>
2026-08-31 17:39:31 +03:30
0083f1b092 REFACTOR(wallets): rename WALLET_INCOME_FROM_IPG to WALLET_IPG_CREDIT
Rename the wallet-service UUID setting and its env var from
WALLET_INCOME_FROM_IPG to WALLET_IPG_CREDIT across settings and the
income-deposit flow in apps/pg/models.py. Deployments must rename the
corresponding environment variable.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-31 16:57:28 +03:30
803c574796 REFACTOR(wallets): rename WALLET_INCOME_FROM_IPG to WALLET_IPG_TRANSIT
Rename the wallet-service UUID setting and its env var from
WALLET_INCOME_FROM_IPG to WALLET_IPG_TRANSIT across settings and the
income-deposit flow in apps/pg/models.py. Deployments must rename the
corresponding environment variable.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-31 16:47:02 +03:30
7dcb730507 FEATURE(wallets): rename WALLET_RIAL and add WALLET_INCOME_FROM_IPG
WALLET_RIAL -> WALLET_RIAL_DEPOSIT to match the naming used for the same
wallet-service UUID in the advertising/settlement/promotions repos. Also
adds WALLET_INCOME_FROM_IPG and wires it in: after a successful wallet
charge, the commission portion is deposited separately into it (attributed
to the requesting OAuth2 application) instead of never entering the wallet
ledger. The income deposit is best-effort and logs on failure rather than
failing an already-successful charge.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-19 15:09:49 +03:30
Sayyid Hamid Mahdavi
e77a711bbf bug fix 2026-04-22 21:38:24 +03:30
Sayyid Hamid Mahdavi
7ff91acb82 bug fix 2026-04-22 21:26:32 +03:30
Sayyid Hamid Mahdavi
a318185147 admin 2026-04-22 19:59:44 +03:30
Sayyid Hamid Mahdavi
82c35ffc4a comment hide 2026-04-22 19:54:25 +03:30
Sayyid Hamid Mahdavi
556cdaf20a application gateway policy 2026-04-22 19:51:36 +03:30
Sayyid Hamid Mahdavi
8f7f56f3df basic healthcheck and status 2026-03-15 15:08:32 +03:30
Sayyid Hamid Mahdavi
03ca49fbe3 correct reference_number 2026-03-10 10:43:24 +03:30
Sayyid Hamid Mahdavi
d749dedbef sep 2026-03-09 17:44:49 +03:30
Sayyid Hamid Mahdavi
6bab3b28a8 merge 2026-03-09 15:11:05 +03:30
Sayyid Hamid Mahdavi
d684bb7083 basic sep 2026-03-09 14:53:31 +03:30
09799c028c feat(ipg): fix failed request and change html files
fix failed request and change html files
2025-12-14 14:05:48 +03:30
89133022b1 FEAT(pg): ipg commission calculation
api/calculate_commission/?amount=300000
2025-11-15 14:38:47 +03:30
01744e4139 Merge branch 'master' of https://git.addwin.ir/addwin/pg into FEATURE/payment-commission
# Conflicts:
#	apps/pg/models.py
2025-11-15 14:31:15 +03:30
6aceb75185 FEAT(pg): ipg commission calculation
api/calculate_commission/?amount=300000
2025-11-15 14:15:54 +03:30
Sayyid Hamid Mahdavi
1a8e210e87 cleanup 2025-11-13 16:20:19 +03:30
0bb1889f27 FEAT(pg): ipg commission
COMMISSION_LEVEL1=1200
COMMISSION_LEVEL2_MIN_AMOUNT=6000000
COMMISSION_LEVEL2_MAX_AMOUNT=400000000
COMMISSION_LEVEL2_RATE=0.0002
COMMISSION_LEVEL3=80000
2025-11-11 14:50:52 +03:30
fbff6b1336 FEAT(pg): ipg commission
ipg commission
2025-11-11 14:47:22 +03:30
9d79f30518 FEAT(pg): ipg commission
ipg commission
2025-11-11 13:16:15 +03:30
0c9dde0339 fix(pg): deposit verify process
deposit verify process
2025-10-29 13:36:50 +03:30
1084ed0b5c fix(pg): new wallet client to handle category uuid
new wallet client to handle category uuid
notice: add WALLET_RIAL_CATEGORY to .env
2025-10-25 17:14:28 +03:30
475d9aea38 Merge branch 'master' of https://git.addwin.ir/addwin/pg into FEATURE/adding_is_registered_to_payment_request
# Conflicts:
#	apps/pg/admin.py
2025-10-25 15:47:40 +03:30
hgh
fe31f41362 FEATURE(pg): check payment request success and add logger
check payment request success and add logger
2025-10-20 13:39:03 +03:30
hgh
8ceb818edc FEATURE(pg):adding is registered field to payment request and batch mark as registered
adding is registered field to payment request and batch mark as registered
2025-10-14 11:48:14 +03:30
Sayyid Hamid Mahdavi
218a86ab7c i18n 2025-09-09 14:09:12 +03:30
Sayyid Hamid Mahdavi
011b1f2a72 i18n 2025-09-09 14:08:48 +03:30
Sayyid Hamid Mahdavi
b410078649 new templates 2025-08-09 12:29:50 +03:30
Sayyid Hamid Mahdavi
2ccc838b11 fallah 2025-07-29 13:23:34 +03:30
Sayyid Hamid Mahdavi
8b19c223d5 hide fake gateway 2025-06-12 07:52:00 +03:30
Sayyid Hamid Mahdavi
6c4cf0861a fake gateway 2025-05-31 14:28:47 +03:30
Sayyid Hamid Mahdavi
78033f38c2 fake gateway 2025-05-31 14:27:08 +03:30
Sayyid Hamid Mahdavi
f0edf10f53 fake gateway 2025-05-31 13:36:25 +03:30
Sayyid Hamid Mahdavi
71fe6c7b83 bugfix 2025-05-27 10:51:46 +03:30
Sayyid Hamid Mahdavi
b37a11fdc2 separate payment gateways model 2025-05-26 20:23:26 +03:30
Sayyid Hamid Mahdavi
5917dcbd85 callback url get none http 2025-05-20 16:58:38 +03:30
Sayyid Hamid Mahdavi
58c9416d16 method get instead of post for confirm 2025-05-20 15:55:58 +03:30
Sayyid Hamid Mahdavi
243b34d4a3 method get instead of post for confirm 2025-05-16 09:24:40 +03:30
Sayyid Hamid Mahdavi
4c2c7dc6ee add int id 2025-05-15 17:23:48 +03:30
Sayyid Hamid Mahdavi
96591dd83a add int id 2025-05-15 17:12:04 +03:30
Sayyid Hamid Mahdavi
376359f723 add int id 2025-05-15 17:09:53 +03:30
Sayyid Hamid Mahdavi
b8d2dd6925 test pna views 2025-05-13 20:30:55 +03:30
Sayyid Hamid Mahdavi
69635b5b03 test pna views 2025-05-13 20:25:23 +03:30
Sayyid Hamid Mahdavi
effe16e468 test pna views 2025-05-13 19:56:25 +03:30
Sayyid Hamid Mahdavi
7705c0f05c adding balance 2025-05-13 16:48:15 +03:30
Sayyid Hamid Mahdavi
6621853c53 adding balance 2025-05-13 16:35:58 +03:30
Sayyid Hamid Mahdavi
d5a25dfaee basic pg app 2025-05-13 13:48:39 +03:30