Created
July 14, 2016 04:43
-
-
Save joomdonation/f49978fdf7d7a38ba39ed67fcab1ab05 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function test_paygate() | |
{ | |
require_once JPATH_ROOT . '/components/com_eventbooking/payments/paygatepayweb3/paygate.payweb3.php'; | |
$payWeb3 = new PayGate_PayWeb3(); | |
$payWeb3->setEncryptionKey('secret'); | |
$requestData = array( | |
'PAYGATE_ID' => '10011072130', | |
'REFERENCE' => 'REGISTRATION#40', | |
'AMOUNT' => '30000 ', | |
'CURRENCY' => 'ZAR', | |
'RETURN_URL' => 'http://www.saimm.co.za/index.php', | |
'TRANSACTION_DATE' => '2016-07-14 00:30:06', | |
'LOCALE' => 'en', | |
'COUNTRY' => 'ZAF', | |
'EMAIL' => '[email protected]', | |
'USER1' => '37', | |
); | |
$payWeb3->setInitiateRequest($requestData); | |
$returnData = $payWeb3->doInitiate(); | |
print_r($returnData); | |
print_r($payWeb3); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment