|
| 1 | +.. image:: https://img.shields.io/badge/license-MIT-blue.svg |
| 2 | + :target: https://opensource.org/licenses/MIT |
| 3 | + :alt: License: MIT |
| 4 | + |
| 5 | +======================== |
| 6 | + Alipay Payments in POS |
| 7 | +======================== |
| 8 | + |
| 9 | +The module implements following payment workflows |
| 10 | + |
| 11 | +Barcode Payment |
| 12 | +--------------- |
| 13 | + |
| 14 | +* Cashier creates order and scan user's QR in user's Alipay mobile app |
| 15 | + |
| 16 | + * scanning can be done via Mobile Phone camera (``pos_mobile`` module is recommended) |
| 17 | + * scanning can be done via usb scanner |
| 18 | + * scanning can be done via usb scanner attached to PosBox |
| 19 | + |
| 20 | +* User's receives order information and authorise fund transferring |
| 21 | +* Cashier gets payment confirmation in POS |
| 22 | + |
| 23 | +QR Code Payment |
| 24 | +--------------- |
| 25 | + |
| 26 | +* Cashier clicks a button to get one-time url and shows it to Buyer as a QR Code |
| 27 | + |
| 28 | + * QR can be shown in POS |
| 29 | + * QR can be shown in Mobile POS (``pos_mobile`` module is recommended) |
| 30 | + * QR can be shown in Customer screen |
| 31 | + |
| 32 | +* Buyer scans to finish the transaction. |
| 33 | +* Cashier gets payment confirmation in POS |
| 34 | + |
| 35 | +Debugging |
| 36 | +========= |
| 37 | + |
| 38 | +Scanning |
| 39 | +-------- |
| 40 | + |
| 41 | +If you don't have camera or scanner, you can executing following code in browser console to simulate scanning:: |
| 42 | + |
| 43 | + odoo.__DEBUG__.services['web.core'].bus.trigger('qr_scanned', '28763443825664394'); |
| 44 | + |
| 45 | +Customer Screen |
| 46 | +--------------- |
| 47 | + |
| 48 | +To emulate Customer screen do as following: |
| 49 | + |
| 50 | +* run another odoo on a different port, say ``9069``, workers 1, extra *server wide modules*, i.e. use ``--workers=1 --load=web,hw_proxy,hw_posbox_homepage,hw_screen`` |
| 51 | +* open page at your browser: http://localhost:9069/point_of_sale/display -- you must see message ``POSBox Client display`` |
| 52 | +* at POS' Settings activate ``[x] PosBox``, activate ``[x] Customer Display`` and set **IP Address** to ``localhost:9069`` |
| 53 | +* Now just open POS |
| 54 | + |
| 55 | +Roadmap |
| 56 | +======= |
| 57 | + |
| 58 | +* TODO: In sake of UX, we need to add ``alipay_order_id`` reference to ``account.bank.statement.line`` |
| 59 | + |
| 60 | +Credits |
| 61 | +======= |
| 62 | + |
| 63 | +Contributors |
| 64 | +------------ |
| 65 | +* `Kolushov Alexandr <https://it-projects.info/team/KolushovAlexandr>`__ |
| 66 | + |
| 67 | +Sponsors |
| 68 | +-------- |
| 69 | +* `IT-Projects LLC <https://it-projects.info>`__ |
| 70 | + |
| 71 | +Maintainers |
| 72 | +----------- |
| 73 | +* `IT-Projects LLC <https://it-projects.info>`__ |
| 74 | + |
| 75 | + To get a guaranteed support you are kindly requested to purchase the module at `odoo apps store <https://apps.odoo.com/apps/modules/11.0/pos_alipay/>`__. |
| 76 | + |
| 77 | + Thank you for understanding! |
| 78 | + |
| 79 | + `IT-Projects Team <https://www.it-projects.info/team>`__ |
| 80 | + |
| 81 | +Further information |
| 82 | +=================== |
| 83 | + |
| 84 | +Demo: http://runbot.it-projects.info/demo/pos_addons/11.0 |
| 85 | + |
| 86 | +HTML Description: https://apps.odoo.com/apps/modules/11.0/pos_payment_alipay/ |
| 87 | + |
| 88 | +Usage instructions: `<doc/index.rst>`_ |
| 89 | + |
| 90 | +Changelog: `<doc/changelog.rst>`_ |
| 91 | + |
| 92 | +Notifications on updates: `via Atom <https://github.com/it-projects-llc/pos-addons/commits/11.0/pos_alipay.atom>`_, `by Email <https://blogtrottr.com/?subscribe=https://github.com/it-projects-llc/pos-addons/commits/11.0/pos_alipay.atom>`_ |
| 93 | + |
| 94 | +Tested on Odoo 11.0 ee2b9fae3519c2494f34dacf15d0a3b5bd8fbd06 |
0 commit comments