Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. public function rejectPayment($observer)
  2. {
  3. $payment = $observer->getEvent()->getPayment();
  4. $invoice = $observer->getEvent()->getInvoice();
  5.  
  6. if (some condition)
  7. {
  8. $invoice->setIsTransactionPending(true);
  9. }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement