Changing the name of model payment.acquirer to payment.provider and everything that it touches. It is technically incorrect to use the term "acquirer" for systems that only provide a service of payment. After this commit the model payment.acquirer and all related to it will be renamed to payment.provider. Task - 2842088 closes odoo/odoo#90899 Related: odoo/upgrade#3542 Related: odoo/documentation#1981 Related: odoo/enterprise#27131 Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
39 lines
1.2 KiB
Python
39 lines
1.2 KiB
Python
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from odoo.addons.payment.tests.common import PaymentCommon
|
|
|
|
|
|
class OgoneCommon(PaymentCommon):
|
|
|
|
@classmethod
|
|
def setUpClass(cls):
|
|
super().setUpClass()
|
|
|
|
cls.ogone = cls._prepare_provider('ogone', update_values={
|
|
'ogone_pspid': 'dummy',
|
|
'ogone_userid': 'dummy',
|
|
'ogone_password': 'dummy',
|
|
'ogone_shakey_in': 'dummy',
|
|
'ogone_shakey_out': 'dummy',
|
|
'ogone_hash_function': 'sha1',
|
|
})
|
|
|
|
cls.provider = cls.ogone
|
|
cls.currency = cls.currency_euro
|
|
|
|
cls.notification_data = {
|
|
'AAVADDRESS': 'NO',
|
|
'amount': '1111.11',
|
|
'CARDNO': 'XXXXXXXXXXXX1111',
|
|
'CN': 'Dummy Customer Name',
|
|
'currency': 'USD',
|
|
'IP': '101.00.111.22',
|
|
'NCERROR': '0',
|
|
'orderID': cls.reference,
|
|
'PAYID': '01234567899',
|
|
'PM': 'CreditCard',
|
|
'SHASIGN': '2CE444D2260D914EA7E56450B7B28F189238553B',
|
|
'STATUS': '9', # 'Payment requested' (done)
|
|
'TRXDATE': '01/31/22',
|
|
}
|