This commits drops the direct payment flow supported by the SetupIntent API in favor of the payment with redirection flow, supported by the Checkout API only. See the merge commit for more details. task-2333040 Co-authored-by: Antoine Vandevenne <anv@odoo.com>
19 lines
626 B
Python
19 lines
626 B
Python
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
from odoo.addons.payment.tests.common import PaymentCommon
|
|
|
|
|
|
class StripeCommon(PaymentCommon):
|
|
|
|
@classmethod
|
|
def setUpClass(cls):
|
|
super().setUpClass()
|
|
|
|
cls.stripe = cls._prepare_acquirer('stripe', update_values={
|
|
'stripe_secret_key': 'sk_test_KJtHgNwt2KS3xM7QJPr4O5E8',
|
|
'stripe_publishable_key': 'pk_test_QSPnimmb4ZhtkEy3Uhdm4S6J',
|
|
'stripe_webhook_secret': 'whsec_vG1fL6CMUouQ7cObF2VJprLVXT5jBLxB',
|
|
'payment_icon_ids': [(5, 0, 0)],
|
|
})
|
|
|
|
cls.acquirer = cls.stripe
|