/** * IPN Notification URL */ public function procShopPaymentNotify() { $payment_method_name = Context::get('payment_method_name'); $payment_repository = new PaymentMethodRepository(); $payment_method = $payment_repository->getPaymentMethod($payment_method_name, $this->module_srl); $payment_method->notify(); }
public function dispShopOrderConfirmation() { $cart = Context::get('cart'); $payment_method_name = Context::get('payment_method_name'); if ($payment_method_name) { $payment_repository = new PaymentMethodRepository(); $payment_method = $payment_repository->getPaymentMethod($payment_method_name, $this->module_srl); try { $payment_method->onOrderConfirmationPageLoad($cart, $this->module_srl); } catch(PaymentProcessingException $exception) { Context::set('error_details', $exception->getMessage()); $this->setTemplateFile("order_failed");; return; } catch(NetworkErrorException $exception) { $this->setTemplateFile("order_confirmation_coming_soon"); return; } } $this->setTemplateFile('order_confirmation.html'); }