예제 #1
0
<?php

require_once '../includes/config.php';
require_once '../autoload.php';
// Create PayPal Object
$PayPalConfig = array('Sandbox' => $sandbox, 'APIUsername' => $api_username, 'APIPassword' => $api_password, 'APISignature' => $api_signature);
$PayPal = new angelleye\PayPal\PayPal($PayPalConfig);
$StartDate = gmdate("Y-m-d\\TH:i:sZ", strtotime('now - 1 day'));
$TSFields = array('startdate' => $StartDate, 'enddate' => '', 'email' => '', 'receiver' => '', 'receiptid' => '', 'transactionid' => '', 'invnum' => '', 'acct' => '', 'auctionitemnumber' => '', 'transactionclass' => '', 'amt' => '', 'currencycode' => '', 'status' => '', 'profileid' => '');
$PayerName = array('salutation' => '', 'firstname' => '', 'middlename' => '', 'lastname' => '', 'suffix' => '');
$PayPalRequest = array('TSFields' => $TSFields, 'PayerName' => $PayerName);
$PayPalResult = $PayPal->TransactionSearch($PayPalRequest);
echo '<pre />';
print_r($PayPalResult);