Files
odoo_source/addons/payment_aps/tests/common.py
T
Horacio Tellez f7b8f07501 [IMP] payment: rename of acquirer to provider
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>
2022-09-09 13:38:08 +02:00

44 lines
1.5 KiB
Python

# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo.addons.payment.tests.http_common import PaymentHttpCommon
class APSCommon(PaymentHttpCommon):
@classmethod
def setUpClass(cls):
super().setUpClass()
cls.aps = cls._prepare_provider('aps', update_values={
'aps_merchant_identifier': '123456abc',
'aps_access_code': 'dummy',
'aps_sha_request': 'dummy',
'aps_sha_response': 'dummy',
})
cls.provider = cls.aps
cls.notification_data = {
'access_code': cls.provider.aps_access_code,
'amount': cls.amount,
'authorization_code': '123456',
'card_holder_name': 'Mitchell',
'card_number': '************1111',
'command': 'PURCHASE',
'currency': 'USD',
'customer_email': ' admin@yourcompany.example.com',
'customer_ip': '123.456.78.90',
'eci': 'ECOMMERCE',
'expiry_date': '2212',
'fort_id': '169996210006464984',
'language': 'en',
'merchant_identifier': cls.provider.aps_merchant_identifier,
'merchant_reference': cls.reference,
'payment_option': 'VISA',
'response_code': '14000',
'response_message': 'Success',
'signature': '6d2bb7904ac6141a0c10375c70fd417616c740bb1ddab862a224777880aa3600',
'status': '14',
'token_name': '123abc456def789',
}