Skip to content

Commit 5b18813

Browse files
committed
Docs in README.
Reformat README, add some starter sections to document usage / config.
1 parent e8aa54f commit 5b18813

File tree

2 files changed

+36
-7
lines changed

2 files changed

+36
-7
lines changed

CRM/Core/Payment/OmnipayMultiProcessor.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,13 @@ private function getCreditCardObjectParams($params) {
368368
return $cardFields;
369369
}
370370

371+
/**
372+
* Get sensitive credit card fields.
373+
*
374+
* @param $params
375+
*
376+
* @return mixed
377+
*/
371378
private function getSensitiveCreditCardObjectOptions($params) {
372379
$basicMappings = array(
373380
'cvv' => 'cvv2',

README.md

Lines changed: 29 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,38 @@
1-
This extension provides a wrapper extension for payment processors.
1+
# CiviCRM OmniPay Multiprocessor
22

3-
Note that the IPN/ Silent post url that should be configured within the payment processor is
3+
This extension provides support for multiple payment processors in CiviCRM.
44

5-
http(s)://yousite/civicrm/payment/ipn/xx where xx is the payment processor ID.
5+
## Supported processors
66

7-
(I'm not quite sure the joomla & WP variants but will update when I do)
7+
The following payment processors are supported:
88

9-
How to add new payment gateways to Omnipay
9+
* Cybersource
10+
* Paybox System
11+
* GoPay
12+
* Mollie
13+
* Payment Express - PXPay
14+
* NAB Transact
15+
* Eway RapidDirect, Rapid & Shared
16+
* PayPal - Standard, Pro, REST & Express
17+
* Authorize AIM
1018

19+
## Configuration
1120

12-
1) update composer.json and run composer update
21+
* Visit **Administer > System Settings > Payment Processors**
22+
* Select the appropriate **Payment Processor Type**
23+
*
1324

25+
### IPN / Notification URL configuration
1426

15-
2) edit CRM/Core/Payment/processors.mgd.php - check notes in that file for syntax
27+
If your payment processor requires configuration of an IPN or payment notification URL,
28+
obtain the payment processor ID from the URL when editing the payment processor at
29+
CiviCRM's Administer > System Settings > Payment Processors, then use a URL similar to
30+
`https://example.org/civicrm/payment/ipn/XX` (where `https://example.org` is your actual
31+
site URL and `XX` is the processor ID).
32+
33+
## Adding support for new payment gateways
34+
35+
* Update `composer.json` with the required Omnipay package for your payment processor
36+
and run composer update.
37+
* Edit `CRM/Core/Payment/processors.mgd.php`.
1638

0 commit comments

Comments
 (0)