- Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathexample.php
More file actions
Latest commit
21 lines (18 loc) · 700 Bytes
/
Copy pathexample.php
File metadata and controls
21 lines (18 loc) · 700 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
require_once("lib/NetellerAPI.php");
define('NETELLER_BASE_URL', 'https://test.api.neteller.com/');
define('NETELLER_CLIENT_ID', 'AAAAAAAAAAAAAAAAA');
define('NETELLER_CLIENT_SECRET', 'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB');
$deposit = newRequestPayment();
$deposit->setPaymentMethodValue('netellertest_USD@neteller.com')
->setTransactionMerchantRefId((string)date('yyyy-mm-dd hh:ii:ss'))
->setTransactionAmount(1234)
->setTransactionCurrency('USD')
->setVerificationCode(270955);
$result = $deposit->doRequest();
$errors = $deposit->getExecutionErrors();
$ip = $deposit->getIP();
var_dump($result);
var_dump($errors);
var_dump($ip);
?>