Skip to content

Commit 32550fc

Browse files
kcv-odooAntoineVDV
authored andcommitted
[IMP] payment_iyzico: add paymentSource param
This commit add `paymentSource` param as `ODOO` in checkout forn intialize payload to allow iyzico team detect payment is coming from odoo and it help them in the partnership. task-5067754 Part-of: odoo#228969 Related: odoo/documentation#14702 Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
1 parent 18fde9d commit 32550fc

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

addons/payment_iyzico/models/payment_transaction.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ def _iyzico_prepare_cf_initialize_payload(self):
9393
'currency': self.currency_id.name,
9494
'locale': 'tr' if self.env.lang == 'tr_TR' else 'en',
9595
'paidPrice': self.amount,
96+
'paymentSource': 'ODOO',
9697
'price': self.amount,
9798
}
9899

addons/payment_iyzico/tests/test_payment_transaction.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ def test_no_item_missing_from_cf_initialize_payload(self):
5454
'currency': tx.currency_id.name,
5555
'locale': 'tr' if tx.env.lang == 'tr_TR' else 'en',
5656
'paidPrice': tx.amount,
57+
'paymentSource': 'ODOO',
5758
'price': tx.amount,
5859
})
5960

0 commit comments

Comments
 (0)