Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function rejectPayment($observer)
- {
- $payment = $observer->getEvent()->getPayment();
- $invoice = $observer->getEvent()->getInvoice();
- if (some condition)
- {
- $invoice->setIsTransactionPending(true);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement