Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $payment = Payment::get($paymentId, $apiContext);
- $execution = new PaymentExecution();
- $execution->setPayerId($payerID);
- $transaction = new Transaction();
- $amount = new Amount();
- $amount->setCurrency($currency);
- $amount->setTotal($total);
- $transaction->setAmount($amount);
- $execution->addTransaction($transaction);
- $payment->execute($execution, $apiContext);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement