-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample_payment_url.php
37 lines (33 loc) · 1.05 KB
/
example_payment_url.php
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
<?php
include 'vendor/autoload.php';
$pagseguro = new WebDevBr\PagSeguro\PagSeguro;
$body = $pagseguro->payment([
'email'=>'[email protected]',
'token'=>'95112EE828D94278BD394E91C',
'currency'=>'BRL',
'itemId1'=>'0001',
'itemDescription1'=>'Notebook Prata',
'itemAmount1'=>'24300.00',
'itemQuantity1'=>'1',
'itemWeight1'=>'1000',
'itemId2'=>'0002',
'itemDescription2'=>'Notebook Rosa',
'itemAmount2'=>'25600.00',
'itemQuantity2'=>'2',
'itemWeight2'=>'750',
'reference'=>'REF1234',
'senderName'=>'Jose Comprador',
'senderAreaCode'=>'11',
'senderPhone'=>'56273440',
'senderEmail'=>'[email protected]',
'shippingType'=>'1',
'shippingAddressStreet'=>'Av. Brig. Faria Lima',
'shippingAddressNumber'=>'1384',
'shippingAddressComplement'=>'5o andar',
'shippingAddressDistrict'=>'Jardim Paulistano',
'shippingAddressPostalCode'=>'01452002',
'shippingAddressCity'=>'Sao Paulo',
'shippingAddressState'=>'SP',
'shippingAddressCountry'=>'BRA'
]);
var_dump($body);