Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. $payment = Payment::get($paymentId, $apiContext);
  2. $execution = new PaymentExecution();
  3. $execution->setPayerId($payerID);
  4.  
  5. $transaction = new Transaction();
  6. $amount = new Amount();
  7.  
  8. $amount->setCurrency($currency);
  9. $amount->setTotal($total);
  10.  
  11. $transaction->setAmount($amount);
  12. $execution->addTransaction($transaction);
  13. $payment->execute($execution, $apiContext);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement