forked from LiveCarta/PayPal-PHP-SDK
Removing debug statements
This commit is contained in:
@@ -71,22 +71,14 @@ $transaction = new Transaction();
|
|||||||
$transaction->setAmount($amount)
|
$transaction->setAmount($amount)
|
||||||
->setDescription("This is the payment description.");
|
->setDescription("This is the payment description.");
|
||||||
|
|
||||||
$transaction2 = new Transaction();
|
|
||||||
$transaction->setAmount($amount)
|
|
||||||
->setDescription("This is fee payment.");
|
|
||||||
var_dump($transaction2->toJson());
|
|
||||||
|
|
||||||
// ### Payment
|
// ### Payment
|
||||||
// A Payment Resource; create one using
|
// A Payment Resource; create one using
|
||||||
// the above types and intent as 'sale'
|
// the above types and intent as 'sale'
|
||||||
$payment = new Payment();
|
$payment = new Payment();
|
||||||
$payment->setIntent("sale")
|
$payment->setIntent("sale")
|
||||||
// ->setPayer($payer)
|
->setPayer($payer)
|
||||||
->addTransaction($transaction)->addTransaction($transaction2);
|
->setTransactions(array($transaction));
|
||||||
|
|
||||||
echo "*************<br/>";
|
|
||||||
var_dump($payment->toJson());
|
|
||||||
exit;
|
|
||||||
// ### Create Payment
|
// ### Create Payment
|
||||||
// Create a payment by posting to the APIService
|
// Create a payment by posting to the APIService
|
||||||
// using a valid ApiContext (See bootstrap.php for more on `ApiContext`)
|
// using a valid ApiContext (See bootstrap.php for more on `ApiContext`)
|
||||||
|
|||||||
Reference in New Issue
Block a user