-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsample.php
More file actions
49 lines (38 loc) · 898 Bytes
/
Copy pathsample.php
File metadata and controls
49 lines (38 loc) · 898 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
use Remesita\ApiClient;
require_once __DIR__ . '/vendor/autoload.php';
$apiKey = "";
$apiSecret = "";
$api = new ApiClient($apiKey, $apiSecret);
//Asi creas el link de pagos
$businessId="TU BUSINESS ID";
print_r($api->createPaymentLink(
$businessId,
120,
"Toma chocolate paga lo que debes",
"MYID123",
"https://miweb.com/ipn?id=MYID123",
"https://miweb.com/checkout/success",
"https://miweb.com/checkout/canceled",
"Nombre del CLiente", //opcional
"Phone del cliente", //opcional
"Email del cliente" //opcional
));
//print_r($api->getOrders());
//print_r($api->getBusinesses());
//print_r($api->getP2POperations());
/*
$from = new \DateTime("now - 30 days");
$to = new \DateTime("now");
$pg = 1;
$pgSize = 25;
$paginnation = $api->getOrders(
$from,
$to,
$pg,
$pgSize
);
foreach ($paginnation as $t) {
print_r($t);
}
*/