Alipay API
Basic tools to integrate Odoo and Alipay
If you don't know how Asia turned down cash with Alipay, check, for example, this video.
Activate Developer Mode and Create following parameters
To debug UI, create itp_alipay.local_sandbox with value 1
Alipay records (Orders, Refunds, etc.) can be found at Invoicing >> Configuration >> Alipay
Need our service?
Contact us by email or fill out request form
- apps@it-projects.info
- https://www.it-projects.info/page/website.contactus
- skype@it-projects.info
Tested on Odoo
11.0 community
11.0 community
Tested on Odoo
11.0 enterprise
11.0 enterprise
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Community Apps Dependencies | Show |
| Lines of code | 664 |
| Technical Name |
itp_alipay |
| License | See License tab |
| Website | https://it-projects.info |
Alipay API
Installation
Install `itp_alipay library<https://github.com/fzlee/itp_alipay>`__:
pip install python-itp_alipay-sdk # to update existing installation use pip install -U python-itp_alipay-sdk
Be sure that your server available for requests from outside world (i.e. it shall not be avaialble in local network only)
Alipay APP
TODO
Configuration
Credentials
- Activate Developer Mode
- Open menu [[ Settings ]] >> Parameters >> System Parameters
- Create following parameters
- itp_alipay.app_id
- itp_alipay.app_auth_code -- optional. Only for ISV (Third-party Service Provider)
- itp_alipay.app_private_key_file -- path to file
- itp_alipay.alipay_public_key_string -- content of public key file. Starts with -----BEGIN PUBLIC KEY-----
- itp_alipay.app_auth_code
- itp_alipay.app_auth_token
- itp_alipay.notify_url -- optional. Use it if doesn't work automatiically. The url must be http(s)://YOUR_HOST/itp_alipay/callback.
Internal Numbers
If you get error invalid out_trade_no, it means that you use the same credentials in new database and odoo sends Alipay Order IDs that were previously used in another system. To resolve this do as following:
- Go to [[ Settings ]] >> Technical >> Sequence & Identifiers >> Sequences
- Find record Alipay Order or Alipay Refund*, depending on which request has the problem
- Change either Prefix, Suffix or Next Number
- If you get the error again, try to increase Next Number
Alipay tracking
Alipay records (Orders, Refunds, etc.) can be found at [[ Invoicing ]] >> Configuration >> Alipay. If you don't have that menu, you need to configure Show Full Accounting Features for your user first:
- Activate Developer Mode
- Open menu [[ Settings ]] >> Users & Companies >> Users
- Open user you need
- Activate Show Full Accounting Features
The MIT License (MIT) Copyright 2020 IT-Projects Labs Copyright 2015-2020 IT-Projects LLC Copyright 2014-2015 Ivan Yelizariev Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 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.
Please log in to comment on this module