Files
odoo_source/addons/payment_stripe/utils.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

40 lines
1.4 KiB
Python

# Part of Odoo. See LICENSE file for full copyright and licensing details.
def get_publishable_key(provider_sudo):
""" Return the publishable key for Stripe.
Note: This method serves as a hook for modules that would fully implement Stripe Connect.
:param recordset provider_sudo: The provider on which the key should be read, as a sudoed
`payment.provider` record.
:return: The publishable key
:rtype: str
"""
return provider_sudo.stripe_publishable_key
def get_secret_key(provider_sudo):
""" Return the secret key for Stripe.
Note: This method serves as a hook for modules that would fully implement Stripe Connect.
:param recordset provider_sudo: The provider on which the key should be read, as a sudoed
`payment.provider` record.
:return: The secret key
:rtype: str
"""
return provider_sudo.stripe_secret_key
def get_webhook_secret(provider_sudo):
""" Return the webhook secret for Stripe.
Note: This method serves as a hook for modules that would fully implement Stripe Connect.
:param recordset provider_sudo: The provider on which the key should be read, as a sudoed
`payment.provider` record.
:returns: The webhook secret
:rtype: str
"""
return provider_sudo.stripe_webhook_secret