diff options
author | Tim Leibacher <tim.leibacher@gmail.com> | 2023-05-31 10:53:34 +0200 |
---|---|---|
committer | Tim Leibacher <tim.leibacher@gmail.com> | 2023-05-31 10:53:34 +0200 |
commit | 7e4014b73f3f631fd9f1f3ca74a2ace0d4f04dbe (patch) | |
tree | e1d9971b299c44724c6f346672afb8f3666209f6 /README.md | |
download | joomla-payage-taler-plugin-7e4014b73f3f631fd9f1f3ca74a2ace0d4f04dbe.tar.gz joomla-payage-taler-plugin-7e4014b73f3f631fd9f1f3ca74a2ace0d4f04dbe.tar.bz2 joomla-payage-taler-plugin-7e4014b73f3f631fd9f1f3ca74a2ace0d4f04dbe.zip |
Init Push
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 103 |
1 files changed, 103 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..0ad2f69 --- /dev/null +++ b/README.md @@ -0,0 +1,103 @@ +# Taler Gateway For Payage + +## Introduction + +Welcome to the user documentation for the Payage Gateway that +integrates Taler as a payment option for your website. This +documentation will guide you through the installation, configuration, +and usage of the plugin. It is important to note that this is not a +stand-alone plugin and requires the Payage component to be installed +and configured on your website. For more information on Payage, please +visit the [Payage +Documentation](https://www.lesarbresdesign.info/extensions/payage) + +## Table of Contents + +- [Installation](#installation) +- [Configuration](#configuration) +- [Usage](#usage) + - [Enabling Taler Payment](#enabling-taler-payment) + - [Managing Taler Settings](#managing-taler-settings) +- [Troubleshooting](#troubleshooting) +- [Frequently Asked Questions](#frequently-asked-questions) + +## Installation + +First make sure you have already a version of the Payage Plugin +installed. If not, please follow the [Payage Installation +Guide](https://www.lesarbresdesign.info/extensions/payage/installation). +If you have already installed Payage, you can install the Taler plugin +simply by donwloading the latest version from the [Taler Plugin +Releases](https://ftp.gnu.org/gnu/taler/com_payage_taler-latest.zip) +and installing it through the Joomla plugin manager. + +### Enabling Taler Payment + +To create a new instance for a Taler Gateway, navigate to the Payage +component and select the "Gateway Accounts" tab. Click on the "New" +button to create a new gateway instance. Select "Taler" as the gateway +type and fill out the required fields. If you have filled out all the +required fields you can test if the Taler Backend you configured is +valid with the "Test" button. If the test is successful you can "Save" +the gateway. Now you only need to publish it from inside the "Gateway +Accounts" tab. To see how to create a payment button inside your +E-commerce app, refer to the Payage Documentation. + +## Special Currencies + +The Taler Payage plugin supports all common currencies. However, if +you want to use a special currencies that do not have a 3 letter +ISO-4217 currency code, you have to add an explicit mapping to a 3 +letter currency code: Payage is limited to 3 letter currency codes +while Taler supports currency codes with up to 11 letters. + +To do so, clone the Git repository from [Taler Plugin +Releases](https://gitlab.ti.bfh.ch/leibt2/taler-joomla) and edit the +file "com_payage_taler/currencies.csv". There is already an example +for the Taler test currency "KUDOS". To add a new special currency, +simply add a new line following the same format of +"$NAME,$ABBREVIATION". Then submit a patch to the maintainers (see +AUTHORS) to ensure that the new currency is available in future +releases. The abbreviation should be some 3 letter code that is *not* +in ISO-4217. Note that in theory new currency codes could be added to +ISO-4217, so such unofficial currency codes may need to be removed in +the future. + +## Webhook Configuration For Refunds + +To update the Payage database automatically when a refund is made, you +have to configure a webhook in the Taler merchant backend. To do so, +log into the Taler merchant backend Web interface and select the +"Webhooks" tab. Click on the "New" button to create a new webhook with +the following values: + + Id: A unique name for the webhook (say "taler-payage-refund-hook") + Event: refund + Method: 'POST' + URL: "https://example.com/index.php?option=com_payage&task=refund" + Header: 'Content-Type: application/json' + Body: '{"refunded_amount":"{{refund_amount}}","order_id":"{{order_id}}"}' + +https://tim-leibacher.ch:8443/index.php?option=com_payage&task=refund&aid=1003&tid=0 + +- Id: `A unique name for the webhook (say "taler-payage-refund-hook")` +- Event: `'refund'` +- Method: `'POST'` +- URL: `"https://example.com/index.php?option=com_payage&task=refund&aid=1000&tid=0"` + +aid stands for the account id. In the "Gateway Accounts" tab you can see which id you should use + +- Header: `'Content-Type: application/json'` +- Body: + `'{ + "order_id": "{{order_id}}" + }'` + + +## Frequently Asked Questions +Q: How can I add my own Translations? \ +A: See [Taler Translations](https://docs.taler.net/taler-developer-manual.html#how-to-create-a-translation) + +Q: Where do I get my own Taler Merchant Backend? \ +A: See [Taler Merchant Backend](https://docs.taler.net/taler-merchant-manual.html) + |