shop.payment_providers.amazon_pay ================================= .. py:module:: shop.payment_providers.amazon_pay Attributes ---------- .. autoapisummary:: shop.payment_providers.amazon_pay.logger Classes ------- .. autoapisummary:: shop.payment_providers.amazon_pay.AmazonPay Module Contents --------------- .. py:data:: logger .. py:class:: AmazonPay(*, mws_access_key, mws_secret_key, merchant_id, client_id, client_secret, region = 'de', currency_code = 'EUR', sandbox = False, language = 'en', **kwargs) Bases: :py:obj:`shop.payment_providers.PaymentProviderAbstract` Amazon Pay integration for the ViUR Shop. Handles the checkout process using Amazon Pay, including authorization and payment capture. Requires Amazon MWS credentials and configuration parameters. :param mws_access_key: Amazon MWS access key. :param mws_secret_key: Amazon MWS secret key. :param merchant_id: Amazon merchant ID. :param client_id: Amazon client ID. :param client_secret: Amazon client secret. :param region: Region code (default: 'de'). :param currency_code: Currency code (default: 'EUR'). :param sandbox: Use sandbox environment (default: False). :param language: Language code (default: 'en'). .. py:attribute:: name :type: viur.shop.types.t.Final[str] :value: 'amazonpay' Define the internal name of the payment provider .. py:attribute:: mws_access_key .. py:attribute:: mws_secret_key .. py:attribute:: merchant_id .. py:attribute:: client_id .. py:attribute:: client_secret .. py:attribute:: sandbox :value: False .. py:attribute:: language :value: 'en' .. py:method:: checkout(order_skel) .. py:method:: get_checkout_start_data(order_skel) .. py:method:: charge(order_skel, payment = None) .. py:method:: check_payment_state(order_skel) Check the payment state from the PaymentProvider API/service Access :attr:`OrderSkel.is_paid` to get the payment state of an order. .. py:method:: return_handler() Frontend Endpoint where the might be redirected to by the payment provider during the payment flow .. py:method:: webhook() API Endpoint (Webhook) to listen for events from payment provider .. py:method:: get_debug_information() Provide information about the payment of an order. Only for debugging purposes. It's not an API endpoint.