-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathinit.php
More file actions
26 lines (23 loc) · 744 Bytes
/
init.php
File metadata and controls
26 lines (23 loc) · 744 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
/**
* Author: DM
*/
error_reporting(-1);
ini_set('display_errors', 'On');
require 'vendor/autoload.php';
\Cloudipsp\Configuration::setMerchantId(1396424);
\Cloudipsp\Configuration::setSecretKey('test');
\Cloudipsp\Configuration::setRequestType('json');//setting request type client
\Cloudipsp\Configuration::setHttpClient('HttpCurl');//setting another client
\Cloudipsp\Configuration::setApiUrl('api.fondy.eu'); //api base url
\Cloudipsp\Configuration::setApiVersion('2.0'); //api base url
//start simple test
$dataC = [
'order_id' => time(),
'currency' => 'USD',
'amount' => 111,
'response_url' => 'http://localhost/result.php'// response page
];
$data = \Cloudipsp\Checkout::url($dataC);
$data->toCheckout();
//end