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>
35 lines
1.0 KiB
Python
35 lines
1.0 KiB
Python
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from odoo.addons.payment.tests.common import PaymentCommon
|
|
|
|
|
|
class AsiaPayCommon(PaymentCommon):
|
|
|
|
@classmethod
|
|
def setUpClass(cls):
|
|
super().setUpClass()
|
|
|
|
cls.asiapay = cls._prepare_provider('asiapay', update_values={
|
|
'asiapay_merchant_id': '123456789',
|
|
'asiapay_currency_id': cls.currency_euro,
|
|
'asiapay_secure_hash_secret': 'coincoin_motherducker',
|
|
'asiapay_secure_hash_function': 'sha1',
|
|
})
|
|
|
|
cls.provider = cls.asiapay
|
|
|
|
cls.redirect_notification_data = {
|
|
'Ref': cls.reference,
|
|
}
|
|
cls.webhook_notification_data = {
|
|
'src': 'dummy',
|
|
'prc': 'dummy',
|
|
'successcode': '0',
|
|
'Ref': cls.reference,
|
|
'PayRef': 'dummy',
|
|
'Cur': cls.currency.name,
|
|
'Amt': cls.amount,
|
|
'payerAuth': 'dummy',
|
|
'secureHash': '3e5bf55d9a23969130a6686db7aa4f0230956d0a',
|
|
}
|