What this module does
- When customer carries out payment in a currency that is not supported by PayPal, this module will convert the payment amount into an amount in a currency (which is configurable) that is supported by Paypal before sending the payment data to Paypal.
- During payment processing and payment notification, this module ensures that the converted amount is equivalent to the original one for full reconciliation.
- During reconciliation, the difference due to exchange rate will be encoded into the exchange rate journal.
Example
Assume that
- The company currency is VND (Viet Nam Dong - đ), which is not a currency supported by Paypal
- Invoice INV/2019/0001 is amounted 2,000,010đ (in VND)
- The Paypal acquirer is configured with USD as the default currency for conversion in this case
- Exchange rate between VND/USD: 23,100
Payment process
- Convert VND to USD: 2,000,010 / 23,100 = 86.580519481, and will be rounded into 86.58
- Request Paypal to process payment for the $86.58
- After processing, Paypal notifies Odoo with success processing of the amount of $86.58.
- Odoo verifies this amount and generates a payment of $86.58 and posted with value of $86.58 * 23,100 = 1,999,998đ
- During reconciliation, the difference of 12đ (between 1,999,998đ and 2,000,010đ) will be encoded into the exchange rate difference. The corresponding invoice will be set to paid.
This software and associated files (the "Software") may only be
used
(executed, modified, executed after modifications) if you have
purchased a
valid license from the authors, typically via Odoo Apps,
or if you
have
received a written agreement from the authors of the
Software (see the
COPYRIGHT file).
You may develop Odoo modules that use the Software as a library
(typically
by depending on it, importing it and using its
resources), but
without
copying any source code or material from the
Software. You may distribute
those modules under the license of your
choice, provided that this
license
is compatible with the terms of
the Odoo Proprietary License (For
example:
LGPL, MIT, or proprietary
licenses similar to this one).
It is forbidden to publish, distribute, sublicense, or sell
copies of the
Software or modified copies of the Software.
Thông báo bản quyền và chấp thuận nêu trên buộc phải được bao gồm trong tất cả các bản sao hoặc các phần quan trọng của Phần mềm.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT
SHALL THE
AUTHORS OR COPYRIGHT HOLDERS
BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN
ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING
FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE
SOFTWARE.