Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Extensions
authnet
Commits
e2f39565
Commit
e2f39565
authored
Jul 07, 2019
by
mattwire
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update documentation for 2.0 release
parent
a58e2452
Changes
21
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
172 additions
and
480 deletions
+172
-480
CRM/AuthorizeNet/Webhook.php
CRM/AuthorizeNet/Webhook.php
+3
-0
CRM/AuthorizeNet/WebhookTrait.php
CRM/AuthorizeNet/WebhookTrait.php
+6
-23
CRM/Core/Payment/AuthNetCreditcard.php
CRM/Core/Payment/AuthNetCreditcard.php
+3
-0
CRM/Core/Payment/AuthNetEcheck.php
CRM/Core/Payment/AuthNetEcheck.php
+3
-0
CRM/Core/Payment/AuthNetIPN.php
CRM/Core/Payment/AuthNetIPN.php
+0
-1
CRM/Core/Payment/AuthorizeNetCommon.php
CRM/Core/Payment/AuthorizeNetCommon.php
+7
-0
CRM/Core/Payment/AuthorizeNetTrait.php
CRM/Core/Payment/AuthorizeNetTrait.php
+1
-1
LICENSE.txt
LICENSE.txt
+73
-80
README.md
README.md
+5
-28
api/v3/Authnet.php
api/v3/Authnet.php
+3
-0
authnetecheck.php
authnetecheck.php
+3
-0
docs/images/authnet_payment_creditcard.png
docs/images/authnet_payment_creditcard.png
+0
-0
docs/images/authnet_payment_echeck.png
docs/images/authnet_payment_echeck.png
+0
-0
docs/images/authnet_system_status.png
docs/images/authnet_system_status.png
+0
-0
docs/index.md
docs/index.md
+33
-0
docs/release/release_notes.md
docs/release/release_notes.md
+11
-0
info.xml
info.xml
+3
-3
mkdocs.yml
mkdocs.yml
+18
-0
templates/CRM/Contribute/Form/Contribution/AuthorizeNetARB.tpl
...ates/CRM/Contribute/Form/Contribution/AuthorizeNetARB.tpl
+0
-144
templates/CRM/Contribute/Page/Tab.extra.tpl
templates/CRM/Contribute/Page/Tab.extra.tpl
+0
-84
templates/CRM/Event/Page/Tab.extra.tpl
templates/CRM/Event/Page/Tab.extra.tpl
+0
-116
No files found.
CRM/AuthorizeNet/Webhook.php
View file @
e2f39565
<?php
<?php
/**
* https://civicrm.org/licensing
*/
use
CRM_AuthNetEcheck_ExtensionUtil
as
E
;
use
CRM_AuthNetEcheck_ExtensionUtil
as
E
;
use
\
JohnConde\Authnet\AuthnetWebhook
as
AuthnetWebhook
;
use
\
JohnConde\Authnet\AuthnetWebhook
as
AuthnetWebhook
;
...
...
CRM/AuthorizeNet/WebhookTrait.php
View file @
e2f39565
<?php
<?php
/**
* https://civicrm.org/licensing
*/
trait
CRM_AuthorizeNet_WebhookTrait
{
trait
CRM_AuthorizeNet_WebhookTrait
{
/**********************
/**********************
* MJW_Webhook_Trait: 20190
602
* MJW_Webhook_Trait: 20190
707
*********************/
*********************/
/**
/**
...
@@ -13,31 +16,11 @@ trait CRM_AuthorizeNet_WebhookTrait {
...
@@ -13,31 +16,11 @@ trait CRM_AuthorizeNet_WebhookTrait {
/**
/**
* Get the path of the webhook depending on the UF (eg Drupal, Joomla, Wordpress)
* Get the path of the webhook depending on the UF (eg Drupal, Joomla, Wordpress)
*
*
* @param bool $includeBaseUrl
* @param string $paymentProcessorId
* @param string $pp_id
*
*
* @return string
* @return string
*/
*/
public
static
function
getWebhookPath
(
$paymentProcessorId
=
'NN'
)
{
public
static
function
getWebhookPath
(
$paymentProcessorId
)
{
// Assuming frontend URL because that's how the function behaved before.
// @fixme this doesn't return the right webhook path on Wordpress (often includes an extra path between .com and ? eg. abc.com/xxx/?page=CiviCRM
// We can't use CRM_Utils_System::url('civicrm/payment/ipn/' . $paymentProcessorId, NULL, $includeBaseUrl, NULL, FALSE, TRUE);
// because it returns the query string urlencoded and the base URL non urlencoded so we can't use to match existing webhook URLs
/*$UFWebhookPaths = [
"Drupal" => "civicrm/payment/ipn/{$paymentProcessorId}",
"Joomla" => "?option=com_civicrm&task=civicrm/payment/ipn/{$paymentProcessorId}",
"WordPress" => "?page=CiviCRM&q=civicrm/payment/ipn/{$paymentProcessorId}"
];*/
$basePage
=
''
;
$config
=
CRM_Core_Config
::
singleton
();
if
(
!
empty
(
$config
->
wpBasePage
)
&&
$config
->
userFramework
==
'WordPress'
)
{
// Add in the wordpress base page to the URL.
$basePage
=
(
substr
(
$config
->
wpBasePage
,
-
1
)
==
'/'
)
?
$config
->
wpBasePage
:
"
$config->wpBasePage
/"
;
}
// Use Drupal path as default if the UF isn't in the map above
//$UFWebhookPath = (array_key_exists(CIVICRM_UF, $UFWebhookPaths)) ? $UFWebhookPaths[CIVICRM_UF] : $UFWebhookPaths['Drupal'];
$UFWebhookPath
=
CRM_Utils_System
::
url
(
'civicrm/payment/ipn/'
.
$paymentProcessorId
,
NULL
,
TRUE
,
NULL
,
FALSE
,
TRUE
);
$UFWebhookPath
=
CRM_Utils_System
::
url
(
'civicrm/payment/ipn/'
.
$paymentProcessorId
,
NULL
,
TRUE
,
NULL
,
FALSE
,
TRUE
);
return
$UFWebhookPath
;
return
$UFWebhookPath
;
}
}
...
...
CRM/Core/Payment/AuthNetCreditcard.php
View file @
e2f39565
<?php
<?php
/**
* https://civicrm.org/licensing
*/
use
CRM_AuthNetEcheck_ExtensionUtil
as
E
;
use
CRM_AuthNetEcheck_ExtensionUtil
as
E
;
use
net\authorize\api\contract\v1
as
AnetAPI
;
use
net\authorize\api\contract\v1
as
AnetAPI
;
...
...
CRM/Core/Payment/AuthNetEcheck.php
View file @
e2f39565
<?php
<?php
/**
* https://civicrm.org/licensing
*/
use
CRM_AuthNetEcheck_ExtensionUtil
as
E
;
use
CRM_AuthNetEcheck_ExtensionUtil
as
E
;
use
net\authorize\api\contract\v1
as
AnetAPI
;
use
net\authorize\api\contract\v1
as
AnetAPI
;
...
...
CRM/Core/Payment/AuthNetIPN.php
View file @
e2f39565
...
@@ -8,7 +8,6 @@ use \JohnConde\Authnet\AuthnetWebhook as AuthnetWebhook;
...
@@ -8,7 +8,6 @@ use \JohnConde\Authnet\AuthnetWebhook as AuthnetWebhook;
use
\
JohnConde\Authnet\AuthnetApiFactory
as
AuthnetApiFactory
;
use
\
JohnConde\Authnet\AuthnetApiFactory
as
AuthnetApiFactory
;
use
\
JohnConde\Authnet\AuthnetWebhooksResponse
as
AuthnetWebhooksResponse
;
use
\
JohnConde\Authnet\AuthnetWebhooksResponse
as
AuthnetWebhooksResponse
;
class
CRM_Core_Payment_AuthNetIPN
extends
CRM_Core_Payment_BaseIPN
{
class
CRM_Core_Payment_AuthNetIPN
extends
CRM_Core_Payment_BaseIPN
{
use
CRM_Core_Payment_AuthorizeNetTrait
;
use
CRM_Core_Payment_AuthorizeNetTrait
;
...
...
CRM/Core/Payment/AuthorizeNetCommon.php
View file @
e2f39565
<?php
<?php
/**
* https://civicrm.org/licensing
*/
use
CRM_AuthNetEcheck_ExtensionUtil
as
E
;
use
CRM_AuthNetEcheck_ExtensionUtil
as
E
;
use
net\authorize\api\contract\v1
as
AnetAPI
;
use
net\authorize\api\contract\v1
as
AnetAPI
;
...
@@ -14,6 +17,10 @@ abstract class CRM_Core_Payment_AuthorizeNetCommon extends CRM_Core_Payment {
...
@@ -14,6 +17,10 @@ abstract class CRM_Core_Payment_AuthorizeNetCommon extends CRM_Core_Payment {
const
RESPONSECODE_ERROR
=
3
;
const
RESPONSECODE_ERROR
=
3
;
const
RESPONSECODE_REVIEW
=
4
;
const
RESPONSECODE_REVIEW
=
4
;
/**
* @fixme: Confirm that this is the correct "timezone" - we copied this from the original core Authorize.net processor.
* @var string
*/
const
TIMEZONE
=
'America/Denver'
;
const
TIMEZONE
=
'America/Denver'
;
/**
/**
...
...
CRM/Core/Payment/AuthorizeNetTrait.php
View file @
e2f39565
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
trait
CRM_Core_Payment_AuthorizeNetTrait
{
trait
CRM_Core_Payment_AuthorizeNetTrait
{
/**********************
/**********************
* MJW_Core_Payment_Trait: 2019070
6
* MJW_Core_Payment_Trait: 2019070
7
*********************/
*********************/
/**
/**
...
...
LICENSE
→
LICENSE
.txt
View file @
e2f39565
GNU GENERAL PUBLIC LICENSE
Package: com.donordepot.authnetecheck
Version 3, 29 June 2007
Copyright (C) 2019, Matthew Wire <mjw@mjwconsult.co.uk>
Licensed under the GNU Affero Public License 3.0 (below).
-------------------------------------------------------------------------------
GNU AFFERO GENERAL PUBLIC LICENSE
Version 3, 19 November 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
Everyone is permitted to copy and distribute verbatim copies
...
@@ -7,17 +13,15 @@
...
@@ -7,17 +13,15 @@
Preamble
Preamble
The GNU General Public License is a free, copyleft license for
The GNU Affero General Public License is a free, copyleft license for
software and other kinds of works.
software and other kinds of works, specifically designed to ensure
cooperation with the community in the case of network server software.
The licenses for most software and other practical works are designed
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
to take away your freedom to share and change the works. By contrast,
the GNU
General Public License
is
intended to guarantee your freedom to
our
General Public License
s are
intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
software for all its users.
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
price. Our General Public Licenses are designed to make sure that you
...
@@ -26,44 +30,34 @@ them if you wish), that you receive source code or can get it if you
...
@@ -26,44 +30,34 @@ them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
Developers that use our General Public Licenses protect your rights
these rights or asking you to surrender the rights. Therefore, you have
with two steps: (1) assert copyright on the software, and (2) offer
certain responsibilities if you distribute copies of the software, or if
you this License which gives you legal permission to copy, distribute
you modify it: responsibilities to respect the freedom of others.
and/or modify the software.
For example, if you distribute copies of such a program, whether
A secondary benefit of defending all users' freedom is that
gratis or for a fee, you must pass on to the recipients the same
improvements made in alternate versions of the program, if they
freedoms that you received. You must make sure that they, too, receive
receive widespread use, become available for other developers to
or can get the source code. And you must show them these terms so they
incorporate. Many developers of free software are heartened and
know their rights.
encouraged by the resulting cooperation. However, in the case of
software used on network servers, this result may fail to come about.
Developers that use the GNU GPL protect your rights with two steps:
The GNU General Public License permits making a modified version and
(1) assert copyright on the software, and (2) offer you this License
letting the public access it on a server without ever releasing its
giving you legal permission to copy, distribute and/or modify it.
source code to the public.
For the developers' and authors' protection, the GPL clearly explains
The GNU Affero General Public License is designed specifically to
that there is no warranty for this free software. For both users' and
ensure that, in such cases, the modified source code becomes available
authors' sake, the GPL requires that modified versions be marked as
to the community. It requires the operator of a network server to
changed, so that their problems will not be attributed erroneously to
provide the source code of the modified version running there to the
authors of previous versions.
users of that server. Therefore, public use of a modified version, on
a publicly accessible server, gives the public access to the source
Some devices are designed to deny users access to install or run
code of the modified version.
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
An older license, called the Affero General Public License and
protecting users' freedom to change the software. The systematic
published by Affero, was designed to accomplish similar goals. This is
pattern of such abuse occurs in the area of products for individuals to
a different license, not a version of the Affero GPL, but Affero has
use, which is precisely where it is most unacceptable. Therefore, we
released a new version of the Affero GPL which permits relicensing under
have designed this version of the GPL to prohibit the practice for those
this license.
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
The precise terms and conditions for copying, distribution and
modification follow.
modification follow.
...
@@ -72,7 +66,7 @@ modification follow.
...
@@ -72,7 +66,7 @@ modification follow.
0. Definitions.
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"This License" refers to version 3 of the GNU
Affero
General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
works, such as semiconductor masks.
...
@@ -549,35 +543,45 @@ to collect a royalty for further conveying from those to whom you convey
...
@@ -549,35 +543,45 @@ to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
13. Remote Network Interaction; Use with the GNU General Public License.
Notwithstanding any other provision of this License, if you modify the
Program, your modified version must prominently offer all users
interacting with it remotely through a computer network (if your version
supports such interaction) an opportunity to receive the Corresponding
Source of your version by providing access to the Corresponding Source
from a network server at no charge, through some standard or customary
means of facilitating copying of software. This Corresponding Source
shall include the Corresponding Source for any work covered by version 3
of the GNU General Public License that is incorporated pursuant to the
following paragraph.
Notwithstanding any other provision of this License, you have
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
permission to link or combine any covered work with a work licensed
under version 3 of the GNU
Affero
General Public License into a single
under version 3 of the GNU General Public License into a single
combined work, and to convey the resulting work. The terms of this
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
but the work with which it is combined will remain governed by version
section 13, concerning interaction through a network will apply to the
3 of the GNU General Public License.
combination as such.
14. Revised Versions of this License.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions
will
the GNU
Affero
General Public License from time to time. Such new versions
be similar in spirit to the present version, but may differ in detail to
will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
address new problems or concerns.
Each version is given a distinguishing version number. If the
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Program specifies that a certain numbered version of the GNU
Affero
General
Public License "or any later version" applies to it, you have the
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
GNU
Affero
General Public License, you may choose any version ever published
by the Free Software Foundation.
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
versions of the GNU
Affero
General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
to choose that version for the Program.
...
@@ -635,40 +639,29 @@ the "copyright" line and a pointer to where the full notice is found.
...
@@ -635,40 +639,29 @@ the "copyright" line and a pointer to where the full notice is found.
Copyright (C) <year> <name of author>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU
Affero
General Public License as published by
the Free Software Foundation, either version 3 of the License, or
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
(at your option) any later version.
This program is distributed in the hope that it will be useful,
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
GNU
Affero
General Public License for more details.
You should have received a copy of the GNU General Public License
You should have received a copy of the GNU
Affero
General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
along with this program. If not, see <http://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
If your software can interact with users remotely through a computer
notice like this when it starts in an interactive mode:
network, you should also make sure that it provides a way for users to
get its source. For example, if your program is a web application, its
<program> Copyright (C) <year> <name of author>
interface could display a "Source" link that leads users to an archive
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
of the code. There are many ways you could offer source, and different
This is free software, and you are welcome to redistribute it
solutions will be better for different programs; see section 13 for the
under certain conditions; type `show c' for details.
specific requirements.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
For more information on this, and how to apply and follow the GNU
A
GPL, see
<http://www.gnu.org/licenses/>.
<http://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
README.md
View file @
e2f39565
CiviCRM Authorize.Net eCheck.Net
# CiviCRM Authorize.Net Payment processor
==============================
CiviCRM Extension that provides support for Authorize.Net
's eCheck.Net
CiviCRM Extension that provides support for Authorize.Net
payments using Credit Card and echeck (EFT).
Features
## Documentation
--------
*
Provides a New Payment Processor for eCheck.Net/Credit Card based on Authorize.Net API (AIM Method)
*
Supports Recurring Contributions using Authorize.Net Automated Recurring Billing (ARB)
*
Supports Webhooks: https://developer.authorize.net/api/reference/features/webhooks.html
Requirements
See: https://docs.civicrm.org/authorizenet (Once published)
------------
Or: https://github.com/mattwire/com.donordepot.authnetecheck/blob/master/docs/index.md
*
CiviCRM 5.13+
## Installation
1.
Copy this folder, with all of its contents to your civicrm extensions directory.
2.
Go to the Extension Manager: http://example.com/civicrm/admin/extensions?reset=1
3.
Install the "Authorize.Net eCheck.Net" Extension
4.
Add a New Payment Processor by going to: http://example.com/civicrm/admin/paymentProcessor?reset=1
## License
This software is licensed under the GNU General Public License 3 (GNU GPL 3)
## Development
*
Webhooks based on stymiee/authnetjson library - http://www.johnconde.net/blog/handling-authorize-net-webhooks-with-php/
api/v3/Authnet.php
View file @
e2f39565
<?php
<?php
/**
* https://civicrm.org/licensing
*/
/**
/**
* Test API functions for AuthNet
* Test API functions for AuthNet
...
...
authnetecheck.php
View file @
e2f39565
<?php
<?php
/**
* https://civicrm.org/licensing
*/
require_once
'authnetecheck.civix.php'
;
require_once
'authnetecheck.civix.php'
;
require_once
__DIR__
.
'/vendor/autoload.php'
;
require_once
__DIR__
.
'/vendor/autoload.php'
;
...
...
docs/images/authnet_payment_creditcard.png
0 → 100644
View file @
e2f39565
38.8 KB
docs/images/authnet_payment_echeck.png
0 → 100644
View file @
e2f39565
48.3 KB
docs/images/authnet_system_status.png
0 → 100644
View file @
e2f39565
91.2 KB
docs/index.md
0 → 100644
View file @
e2f39565
# CiviCRM Authorize.Net Payment processor
CiviCRM Extension that provides support for Authorize.Net payments using Credit Card and echeck (EFT).
## Features
*
Provides a New Payment Processor for eCheck.Net/Credit Card based on Authorize.Net API (AIM Method)
*
Supports Recurring Contributions using Authorize.Net Automated Recurring Billing (ARB)
*
Supports Webhooks: https://developer.authorize.net/api/reference/features/webhooks.html
## Requirements
*
CiviCRM 5.13+
## Installation
1.
Copy this folder, with all of its contents to your civicrm extensions directory.
2.
Go to the Extension Manager: http://example.com/civicrm/admin/extensions?reset=1
3.
Install the "Authorize.Net" Extension
4.
Add a New Payment Processor by going to: http://example.com/civicrm/admin/paymentProcessor?reset=1
## Webhooks
Webhooks are configured automatically when a payment processor is created.
## License
This software is licensed under the GNU General Public License 3 (GNU GPL 3)
## Development
*
Webhooks based on stymiee/authnetjson library - http://www.johnconde.net/blog/handling-authorize-net-webhooks-with-php/
docs/release/release_notes.md
0 → 100644
View file @
e2f39565
## Release 2.0
Implemented Authorize.net Credit Card processor. This replaces the CiviCRM Core "Authorize.net" processor.
*
Implement automatic configuration of webhooks using https://github.com/stymiee/authnetjson.
## Release 1.3
Rewritten by MJW Consulting to work with more recent versions of CiviCRM (5.x). Funded by https://greenleafadvancement.com
*
Implement Authorize.net echeck.net using the
[
Authorize.Net PHP SDK
](
https://github.com/AuthorizeNet/sdk-php
)
*
Implement Cancel/Update Subscription via CiviCRM backend.
*
Implement "Submit live payment" via CiviCRM backend.
\ No newline at end of file
info.xml
View file @
e2f39565
...
@@ -12,14 +12,14 @@
...
@@ -12,14 +12,14 @@
<author>
Matthew Wire
</author>
<author>
Matthew Wire
</author>
<email>
mjw@mjwconsult.co.uk
</email>
<email>
mjw@mjwconsult.co.uk
</email>
</maintainer>
</maintainer>
<releaseDate>
2019-0
5-31
</releaseDate>
<releaseDate>
2019-0
7-07
</releaseDate>
<version>
2.0
</version>
<version>
2.0
</version>
<develStage>
beta
</develStage>
<develStage>
stable
</develStage>
<compatibility>
<compatibility>
<ver>
5.13
</ver>
<ver>
5.13
</ver>
</compatibility>
</compatibility>
<civix>
<civix>
<namespace>
CRM/AuthNetEcheck
</namespace>
<namespace>
CRM/AuthNetEcheck
</namespace>
</civix>
</civix>
<comments>
echeck.net originally developed by Donor Depot (donordepot.com)
</comments>
<comments>
echeck.net originally developed by Donor Depot (donordepot.com)
. Rewritten by MJW Consulting in 2019.
</comments>
</extension>
</extension>
mkdocs.yml
0 → 100644
View file @
e2f39565
site_name
:
Authorize.net Payment Processor (https://www.authorize.net/)
repo_url
:
https://github.com/mattwire/com.donordepot.authnetecheck
theme
:
material
markdown_extensions
:
-
attr_list
-
admonition
-
def_list
-
codehilite
-
toc(permalink=true)
-
pymdownx.superfences
-
pymdownx.inlinehilite
-
pymdownx.tilde
-
pymdownx.betterem
-
pymdownx.mark
pages
:
-
About
:
index.md
-
Release Notes
:
release/release_notes.md
\ No newline at end of file
templates/CRM/Contribute/Form/Contribution/AuthorizeNetARB.tpl
deleted
100644 → 0
View file @
a58e2452
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.2 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2012 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{
if
$subscriptionType
eq
'cancel'
}
<?xml version="1.0" encoding="utf-8"?>
<ARBCancelSubscriptionRequest
xmlns=
"AnetApi/xml/v1/schema/AnetApiSchema.xsd"
>
<merchantAuthentication>
<name>
{
$apiLogin
}
</name>
<transactionKey>
{
$paymentKey
}
</transactionKey>
</merchantAuthentication>
<subscriptionId>
{
$subscriptionId
}
</subscriptionId>
</ARBCancelSubscriptionRequest>
{
elseif
$subscriptionType
eq
'updateBilling'
}
<?xml version="1.0" encoding="utf-8"?>
<ARBUpdateSubscriptionRequest
xmlns=
"AnetApi/xml/v1/schema/AnetApiSchema.xsd"
>
<merchantAuthentication>
<name>
{
$apiLogin
}
</name>
<transactionKey>
{
$paymentKey
}
</transactionKey>
</merchantAuthentication>
<subscriptionId>
{
$subscriptionId
}
</subscriptionId>
<subscription>
<payment>
{
if
$paymentType
==
'ECHECK'
}
<bankAccount>
<accountType>
{
$accountType
}
</accountType>
<routingNumber>
{
$routingNumber
}
</routingNumber>
<accountNumber>
{
$accountNumber
}
</accountNumber>
<nameOnAccount>
{
$nameOnAccount
}
</nameOnAccount>
<echeckType>
{
$echeckType
}
</echeckType>
<bankName>
{
$bankName
}
</bankName>
</bankAccount>
{
else
}
<creditCard>
<cardNumber>
{
$cardNumber
}
</cardNumber>
<expirationDate>
{
$expirationDate
}
</expirationDate>
</creditCard>
{/
if
}