Commit 416f9e06 authored by Stefan Busemann's avatar Stefan Busemann
Browse files

Merge branch '1-add-documentation' into 'master'

Resolve "Add documentation"

Closes #1

See merge request t3o/t3o_donation!4
parents e269582c e2070ea7
......@@ -121,7 +121,7 @@ class DonationController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionControl
{
$account = $this->accountRepository->findByUid($this->settings['payPalAccount']);
$this->view->assign('account', $account);
$this->view->assign('actionUrl', $this->getConfigurationOption('paypal.action'));
$this->view->assign('actionUrl', $this->settings['paypal']['action']);
if ($GLOBALS['TSFE']->fe_user && $GLOBALS['TSFE']->fe_user->user['uid']) {
$userId = $GLOBALS['TSFE']->fe_user->user['uid'];
} else {
......
plugin.tx_donation_donorlist {
plugin.tx_donation_form{
view {
templateRootPath = EXT:t3o_donation/Resources/Private/Templates/
partialRootPath = EXT:t3o_donation/Resources/Private/Partials/
......@@ -7,4 +7,6 @@ plugin.tx_donation_donorlist {
persistence {
storagePid =
}
}
\ No newline at end of file
}
plugin.tx_donation_list < plugin.tx_donation_form
plugin.tx_t3odonation_donorlist {
plugin.tx_t3odonation_form {
view {
templateRootPath = {$plugin.tx_t3odonation_donorlist.view.templateRootPath}
partialRootPath = {$plugin.tx_t3odonation_donorlist.view.partialRootPath}
layoutRootPath = {$plugin.tx_t3odonation_donorlist.view.layoutRootPath}
templateRootPath = {$plugin.tx_t3odonation_form.view.templateRootPath}
partialRootPath = {$plugin.tx_t3odonation_form.view.partialRootPath}
layoutRootPath = {$plugin.tx_t3odonation_form.view.layoutRootPath}
}
persistence {
storagePid = {$plugin.tx_t3odonation_donorlist.persistence.storagePid}
storagePid = {$plugin.tx_t3odonation_form.persistence.storagePid}
}
settings {
paypal {
# cat=basic/enable; type=string; label=PayPal Action URL
action = https://www.sandbox.paypal.com/cgi-bin/webscr
}
}
}
plugin.tx_t3odonation_list < plugin.tx_t3odonation_form
t3o membership
==============
What does it do?
----------------
This extension add a plugin, to collection donations via paypal and
displays the list of donations
Installation
------------
* set up a storage folder for the donation records and the paypal account configuration
* create a Donation Account record:
* Name: Name for this account
* Notification E-Mail: Mail adress (es) which receive a notification upon a donation
* Paypal E-Mail: The must contain the paypal account mail adress
* Add the paypal form plugin to the page and setup all options
* One time item name: Label for the one time donation
* Subscription item name: Label for the subscription donation
* Default donation amount
* E-Mail From Address
* E-Mail From Name
* E-Mail ReplyTo Address
* E-Mail ReplyTo Name
* Thankyou E-Mail Subject
+ Thankyou E-Mail Text
* Record Storage Page
Configuration
-------------
settings {
paypal {
action = https://www.sandbox.paypal.com/cgi-bin/webscr
}
}
* For testing use the sandbox url: https://www.sandbox.paypal.com/cgi-bin/webscr
* For production use the api url: https://www.paypal.com/cgi-bin/webscr
Control Flow
------------
* user send the form directly to paypal api
* there are three urls setup:
* return: Thank you message is displayed
* notify_url: ipnLogAction: checks the request, if the payment was valid. If everything is ok, the donation record is created
* cancel_return: if the user cancels the payment, the user is redirectd to the form
......@@ -29,7 +29,7 @@ $EM_CONF[$_EXTKEY] = array(
'clearCacheOnLoad' => 0,
'lockType' => '',
'author_company' => '',
'version' => '0.9.0',
'version' => '0.9.1',
'constraints' => array(
'depends' => array(),
'conflicts' => array(),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment