protected function _actionXpayment($context)
    {
        $data = $context->data;
        $package = $this->getItem();
        $gateway = $this->getService('com:subscriptions.controller.subscription')->getGateway();

        try {

            $payload = $this->order->getPayload();
            $confirm = route('option=com_subscriptions&view=signup&action=confirm&xpayment=true&id='.$package->id, true);
            $cancel = route('option=com_subscriptions&view=signup&action=cancel&xpayment=true&id='.$package->id, true);
            $url = $gateway->getAuthorizationURL($payload, $confirm, $cancel);
            $context->response->setRedirect($url, AnHttpResponse::SEE_OTHER);

        } catch (Exception $error) {
            throw new RuntimeException($error->getMessage());
        }
    }
protected function _actionXpayment($context)
    {
        $data = $context->data;
        $package = $this->getItem();
        $gateway = $this->getService('com:subscriptions.controller.subscription')->getGateway();

        try {

            $payload = $this->order->getPayload();
            $confirm = route('option=com_subscriptions&view=signup&action=confirm&xpayment=true&id='.$package->id, true);
            $cancel = route('option=com_subscriptions&view=signup&action=cancel&xpayment=true&id='.$package->id, true);
            $url = $gateway->getAuthorizationURL($payload, $confirm, $cancel);
            $context->response->setRedirect($url, AnHttpResponse::SEE_OTHER);

        } catch (Exception $error) {
            throw new RuntimeException($error->getMessage());
        }
    }
protected function _actionXpayment ( $ context ) { $ data = $ context -> data ; $ package = $ this -> getItem ( ) ; $ gateway = $ this -> getService ( 'com:subscriptions.controller.subscription' ) -> getGateway ( ) ; try { $ payload = $ this -> order -> getPayload ( ) ; $ confirm = route ( 'option=com_subscriptions&view=signup&action=confirm&xpayment=true&id=' . $ package -> id , true ) ; $ cancel = route ( 'option=com_subscriptions&view=signup&action=cancel&xpayment=true&id=' . $ package -> id , true ) ; $ url = $ gateway -> getAuthorizationURL ( $ payload , $ confirm , $ cancel ) ; $ context -> response -> setRedirect ( $ url , AnHttpResponse :: SEE_OTHER ) ; } catch ( Exception $ error ) { throw new RuntimeException ( $ error -> getMessage ( ) ) ; } }
Express Payment.

@param AnCommandContext $context
Express Payment .