Metadata-Version: 2.1
Name: odoo-addon-payment_cielo
Version: 16.0.1.0.0.5
Requires-Python: >=3.10
Requires-Dist: odoo>=16.0a,<16.1dev
Summary: Payment Provider: Cielo Implementation
Home-page: https://github.com/OCA/l10n-brazil
License: AGPL-3
Author: KMEE INFORMATICA LTDA,Odoo Community Association (OCA)
Author-email: support@odoo-community.org
Classifier: Programming Language :: Python
Classifier: Framework :: Odoo
Classifier: Framework :: Odoo :: 16.0
Classifier: License :: OSI Approved :: GNU Affero General Public License v3
Classifier: Development Status :: 3 - Alpha
Description-Content-Type: text/x-rst

.. image:: https://odoo-community.org/readme-banner-image
   :target: https://odoo-community.org/get-involved?utm_source=readme
   :alt: Odoo Community Association

=============
Payment Cielo
=============

.. 
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !! This file is generated by oca-gen-addon-readme !!
   !! changes will be overwritten.                   !!
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !! source digest: sha256:e0a048f46c0538c607f3477aacccd873e83b05199398bf7e08152785c8144fe0
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png
    :target: https://odoo-community.org/page/development-status
    :alt: Alpha
.. |badge2| image:: https://img.shields.io/badge/license-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-OCA%2Fl10n--brazil-lightgray.png?logo=github
    :target: https://github.com/OCA/l10n-brazil/tree/16.0/payment_cielo
    :alt: OCA/l10n-brazil
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
    :target: https://translation.odoo-community.org/projects/l10n-brazil-16-0/l10n-brazil-16-0-payment_cielo
    :alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
    :target: https://runboat.odoo-community.org/builds?repo=OCA/l10n-brazil&target_branch=16.0
    :alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

Payment Provider: Cielo implementation for the Odoo payment framework.

This module lets customers pay online with a credit card processed by
`Cielo <https://www.cielo.com.br/e-commerce/api/>`__, through the Cielo
E-commerce API 3.0. It supports:

- payment in a single installment, captured immediately or manually;
- manual capture and void of an authorized payment;
- full refund of a captured payment;
- tokenization: the card is saved on the Cielo side and only the card
  token returned by Cielo is stored by Odoo.

The card details never reach the database, and every payload and every
response is redacted before being logged: a log file is not a place
where a card number may be kept, and a security code may not be stored
at all.

.. IMPORTANT::
   This is an alpha version, the data model and design can change at any time without warning.
   Only for development or testing purpose, do not use in production.
   `More details on development status <https://odoo-community.org/page/development-status>`_

**Table of contents**

.. contents::
   :local:

Installation
============

This module depends on:

- payment

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

Using this module requires an eCommerce Cielo account
(https://www.cielo.com.br/e-commerce/api/). The MerchantId and
MerchantKey credentials are secret and are given by Cielo when the
account is opened.

To configure the provider go to Invoicing -> Configuration -> Payment
Providers -> Cielo and fill in:

- **Merchant Id**: the store identifier, in the GUID format;
- **Merchant Key**: the 40 characters long authentication key;
- **Soft Descriptor**: the name shown on the credit card statement of
  the customer. Cielo truncates it to 13 characters.

While the provider is in the *Test Mode* state, the sandbox of Cielo
(``apisandbox.cieloecommerce.cielo.com.br``) is used, with the very same
credentials. Set the provider to *Enabled* to reach production.

Cielo settles in BRL only: the provider is filtered out of the payment
methods offered to the customer for any other currency.

Full manual of the API:
https://developercielo.github.io/manual/cielo-ecommerce

Usage
=====

Once the provider is enabled and published, the customer selects *Credit
Card (powered by Cielo)* on the payment page and fills in the card
number, the card holder, the expiration date and the security code. The
card details are sent to Cielo by the Odoo server and are never stored
in the database.

When the customer asks for the card to be saved, Cielo returns a card
token that is saved as a payment token: subsequent payments are made
with that token.

If the provider is configured with *Capture Amount Manually*, the
payment is only authorized. Use the *Capture* and *Void* buttons of the
transaction to confirm or release the amount, within the deadline of
Cielo (5 days for most brands).

Known issues / Roadmap
======================

- The card details transit through the Odoo server, which puts the
  merchant in the scope of the PCI-DSS SAQ D questionnaire. An
  implementation based on Cielo Checkout, where the card is entered on a
  page hosted by Cielo, would avoid it.
- Only a single installment is supported. Installments, debit cards, Pix
  and the anti-fraud analysis of Cielo are not implemented yet.
- Refunds are full only, although the API of Cielo supports partial
  refunds.
- Zero Auth (``/1/zeroauth``) is not used to validate a card: a payment
  of BRL 1.00 is authorized and voided instead.

Changelog
=========



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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/l10n-brazil/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/l10n-brazil/issues/new?body=module:%20payment_cielo%0Aversion:%2016.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
-------

* KMEE INFORMATICA LTDA

Contributors
------------

- Diego Paradeda <diego.paradeda@kmee.com.br>
- Bruno Corredato Botti <bruno.botti@kmee.com.br>
- Renato Lima <renato.lima@akretion.com.br>
- Luis Felipe Mileo <mileo@kmee.com.br>

Other credits
-------------

The development of this module has been supported by:

`KMEE INFORMATICA LTDA <https:/www.kmee.com.br>`__

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
   :alt: Odoo Community Association
   :target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

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

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-DiegoParadeda| 

This module is part of the `OCA/l10n-brazil <https://github.com/OCA/l10n-brazil/tree/16.0/payment_cielo>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
