Topic on Extension talk:DonationInterface/Flow

Unable to configue the donation pages.

1
Skp098 (talkcontribs)

I am running a wiki and I want to implement fundraising for my wiki project.

To start with it, I found this as ideal extension for fundraising. I have used the following configurations but I'm unable to view the donation page. I have used the following steps that have been mentioned in the Git Repo of the extension.

Here is the content for my LocalSettings.php



// Initializing the extension

wfLoadExtension( "DonationInterface" );

// Enabling Payment Gateways

$wgDonationInterfaceAmazonGatewayEnabled = true;

$wgDonationInterfaceAstroPayGatewayEnabled = true;

$wgDonationInterfaceGlobalCollectGatewayEnabled = true;

$wgPaypalExpressGatewayEnabled = false;

// Test mode flag, alters various behavior

$wgDonationInterfaceTest = true;

//choose gateway

$wgDonationInterfaceEnableGatewayChooser = true;

//definining the salt

$wgDonationInterfaceSalt = $wgSecretKey;

/**

* 3D Secure enabled currencies (and countries) for Credit Card.

* An array in the form of currency => array of countries

* (all-caps ISO 3166-1 alpha-2), or an empty array for all transactions in that

* currency regardless of country of origin.

* As this is a mandatory check for all INR transactions, that rule made it into

* the default.

*/

$wgDonationInterface3DSRules = [

'INR' => [], //all countries

];

$language = "en";

$wgDonationInterfaceDefaultAppeal = 'some-name';

$wgDonationInterfaceAppealWikiTemplate = 'LanguageSwitch|2011FR/$appeal/text|$language';

$wgDonationInterfaceCancelPage = 'Donate-error';

# Example PayPal Express Checkout account:

#

$wgPaypalExpressGatewayAccountInfo['test'] = [

'User' => 'pay-pal-email',

'Password' => 'the-password',

// Use either certificate (preferred) OR signature authentication:

'Signature' => 'the-signature',

// 'CertificatePath' => '/absolute path to cert_key_pem.txt',

// TODO: Use parameter substitution.

'RedirectURL' => 'the-redirect-url',

];

$wgPaypalGatewayAccountInfo = array(

'default' => array(

'AccountEmail' => 'pay-pal-email,

),

);

//donation debuging

$wgDonationInterfaceDisplayDebug = true;

$wgIngenicoGatewayUseSyslog = true;

$wgGlobalCollectGatewayMerchantID = "";

$wgDonationInterfaceAllowedHtmlForms = [];

$wgGlobalCollectGatewayAllowedHtmlForms = [];



After that, I'm using {{{ appeal_text }}} on a page to load the appeal text to appear but it seems nothing is happening. It prints the same text rather than parsing it.

I know the variable $wgDonationInterfaceAppealWikiTemplate has something to do with the template to render the view screen of donation. But not sure how the extension uses it.

Please let me know what exactly I'm missing here.

Reply to "Unable to configue the donation pages."