Metadata-Version: 2.1
Name: odoo14-addon-invader-payment-adyen
Version: 14.0.1.0.4.dev1
Summary: Adds a new payment service for Adyen
Home-page: https://github.com/shopinvader/odoo-shopinvader-payment
Author: ACSONE SA/NV,Odoo Community Association (OCA)
Author-email: support@odoo-community.org
License: AGPL-3
Platform: UNKNOWN
Classifier: Programming Language :: Python
Classifier: Framework :: Odoo
Classifier: Framework :: Odoo :: 14.0
Classifier: License :: OSI Approved :: GNU Affero General Public License v3
Requires-Python: >=3.6
Requires-Dist: Adyen
Requires-Dist: cerberus
Requires-Dist: odoo14-addon-base-rest
Requires-Dist: odoo14-addon-invader-payment
Requires-Dist: odoo (<14.1dev,>=14.0a)

=====================
Invader Payment Adyen
=====================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !! This file is generated by oca-gen-addon-readme !!
   !! changes will be overwritten.                   !!
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
    :target: https://odoo-community.org/page/development-status
    :alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
    :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
    :alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-shopinvader%2Fodoo--shopinvader--payment-lightgray.png?logo=github
    :target: https://github.com/shopinvader/odoo-shopinvader-payment/tree/14.0/invader_payment_adyen
    :alt: shopinvader/odoo-shopinvader-payment

|badge1| |badge2| |badge3| 

This module implements rest services for Adyen payments.

**Table of contents**

.. contents::
   :local:

Configuration
=============

* Go to Invoicing > Payment Acquirers > Adyen
* Add the Api key corresponding to the backend user

Usage
=====

This has been developed following https://docs.adyen.com/checkout/drop-in-web
and will allow to get automatic payment form generated by Adyen like:

.. image:: https://user-images.githubusercontent.com/19529533/67020136-02274c00-f0fe-11e9-972b-25014d0cae5c.png

Four services are exposed to manage payments with Adyen.

Here are the services (that can be explored and tested with Swagger):

* paymentMethods

    * This will call Adyen to retrieve all backend configured payment methods
      that correspond to the "payable" object
      (in terms of amount, country, currency, ... see Adyen)

    * This takes as parameters:

        * target: (eg.: "current_cart")
        * payment_mode_id: The Adyen payment mode


    * This will return a dict containing payment methods that are activated
      on the Adyen backend and intended to be passed to the drop-in widget.

.. code:: python

    {
     "paymentMethods":[
      {
        "details":[...],
        "name":"Credit Card",
        "type":"scheme"
        ...
      },
      {
        "details":[...],
        "name":"SEPA Direct Debit",
        "type":"sepadirectdebit"
      },
      ...
      ]
    }

* payments

    * This will initiate the payment itself.

    * This takes as parameters:

        * target: (eg.: "current_cart")
        * payment_mode_id: The Adyen payment mode
        * transaction_id: The current transaction
        * payment_method: The Adyen payment method chosen (bcmc, scheme, ...)
        * return_url: The url to return to in case of redirection

    * This will return a dict containing payment response containing :

.. code:: python

    {
      "resultCode":"IdentifyShopper",
      "action":{
        "paymentMethodType":"scheme",
        "token":"eyJ0aHJlZURTTWV0aG9kTm90aWZpY...",
        "type":"threeDS2Fingerprint"
      },
      "authentication":{
        "threeds2.fingerprintToken":"eyJ0aHJlZURTTWV0aG9kTm90aWZpY..."
      },
      "details":[
        {
          "key":"threeds2.fingerprint",
          "type":"text"
        }
      ],
      "paymentData":"Ab02b4c0!BQABAgCuZFJrQOjSsl\/zt+..."
    }

* payment_details

    * This will allow to pass further details required by provider

    * This takes as parameters:

        * data
        * transaction_id

    * This will return :

.. code:: python

    {
     data: {
        details: {
          threeds2.fingerprint: "eyJ0aHJlZURTQ29tcEluZCI6IlkifQ=="
        },
        paymentData: "Ab02b4c0!BQABAgAKspbjN8+5..."
     }
    }

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/shopinvader/odoo-shopinvader-payment/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
`feedback <https://github.com/shopinvader/odoo-shopinvader-payment/issues/new?body=module:%20invader_payment_adyen%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
~~~~~~~

* ACSONE SA/NV

Contributors
~~~~~~~~~~~~

* Denis Roussel <denis.roussel@acsone.eu>
* François Honoré <francois.honore@acsone.eu>

Maintainers
~~~~~~~~~~~

.. |maintainer-rousseldenis| image:: https://github.com/rousseldenis.png?size=40px
    :target: https://github.com/rousseldenis
    :alt: rousseldenis

Current maintainer:

|maintainer-rousseldenis| 

This module is part of the `shopinvader/odoo-shopinvader-payment <https://github.com/shopinvader/odoo-shopinvader-payment/tree/14.0/invader_payment_adyen>`_ project on GitHub.

You are welcome to contribute.


