protected function getFormParameters(OrderInterface $order)
    {
        return [
            'PSPID' => $this->getOption('pspid'),
            'orderId' => $order->getReference(),
            'amount' => $order->getTotalInc() * 100,
            'currency' => $order->getCurrency()->getLabel(),
            'language' => $order->getLocale(),
            'CN' => $order->getBillingName(),
            'EMAIL' => $order->getBillingEmail(),
            'ownerZIP' => $order->getBillingPostcode(),
            'owneraddress' => $this->getAddress($order),
            'ownercty' => $order->getBillingCity(),
            'ownertelno' => $order->getBillingPhone() ?: $order->getBillingMobile(),

            'homeurl' => $this->getOption('home_url'),
            'catalogurl' => $this->getOption('catalog_url'),

            'COMPLUS' => '',
            'PARAMPLUS' => 'bank='.$this->getCode(),
            'PARAMVAR' => '',

            'PM' => 'CreditCard',
            'WIN3DS' => 'MAINW',
            'PMLIST' => 'VISA;MasterCard;CB',
            'PMListType' => 2,

            'accepturl' => $this->generateAbsoluteUrlFromOption('url_callback', $order),
            'declineurl' => $this->generateAbsoluteUrlFromOption('url_callback', $order),
            'exceptionurl' => $this->generateAbsoluteUrlFromOption('url_return_ko', $order),
            'cancelurl' => $this->generateAbsoluteUrlFromOption('url_return_ko', $order),

            'operation' => $this->getOperation(),
        ];
    }
protected function getFormParameters(OrderInterface $order)
    {
        return [
            'PSPID' => $this->getOption('pspid'),
            'orderId' => $order->getReference(),
            'amount' => $order->getTotalInc() * 100,
            'currency' => $order->getCurrency()->getLabel(),
            'language' => $order->getLocale(),
            'CN' => $order->getBillingName(),
            'EMAIL' => $order->getBillingEmail(),
            'ownerZIP' => $order->getBillingPostcode(),
            'owneraddress' => $this->getAddress($order),
            'ownercty' => $order->getBillingCity(),
            'ownertelno' => $order->getBillingPhone() ?: $order->getBillingMobile(),

            'homeurl' => $this->getOption('home_url'),
            'catalogurl' => $this->getOption('catalog_url'),

            'COMPLUS' => '',
            'PARAMPLUS' => 'bank='.$this->getCode(),
            'PARAMVAR' => '',

            'PM' => 'CreditCard',
            'WIN3DS' => 'MAINW',
            'PMLIST' => 'VISA;MasterCard;CB',
            'PMListType' => 2,

            'accepturl' => $this->generateAbsoluteUrlFromOption('url_callback', $order),
            'declineurl' => $this->generateAbsoluteUrlFromOption('url_callback', $order),
            'exceptionurl' => $this->generateAbsoluteUrlFromOption('url_return_ko', $order),
            'cancelurl' => $this->generateAbsoluteUrlFromOption('url_return_ko', $order),

            'operation' => $this->getOperation(),
        ];
    }
protected function getFormParameters ( OrderInterface $ order ) { return [ 'PSPID' => $ this -> getOption ( 'pspid' ) , 'orderId' => $ order -> getReference ( ) , 'amount' => $ order -> getTotalInc ( ) * 100 , 'currency' => $ order -> getCurrency ( ) -> getLabel ( ) , 'language' => $ order -> getLocale ( ) , 'CN' => $ order -> getBillingName ( ) , 'EMAIL' => $ order -> getBillingEmail ( ) , 'ownerZIP' => $ order -> getBillingPostcode ( ) , 'owneraddress' => $ this -> getAddress ( $ order ) , 'ownercty' => $ order -> getBillingCity ( ) , 'ownertelno' => $ order -> getBillingPhone ( ) ? : $ order -> getBillingMobile ( ) , 'homeurl' => $ this -> getOption ( 'home_url' ) , 'catalogurl' => $ this -> getOption ( 'catalog_url' ) , 'COMPLUS' => '' , 'PARAMPLUS' => 'bank=' . $ this -> getCode ( ) , 'PARAMVAR' => '' , 'PM' => 'CreditCard' , 'WIN3DS' => 'MAINW' , 'PMLIST' => 'VISA;MasterCard;CB' , 'PMListType' => 2 , 'accepturl' => $ this -> generateAbsoluteUrlFromOption ( 'url_callback' , $ order ) , 'declineurl' => $ this -> generateAbsoluteUrlFromOption ( 'url_callback' , $ order ) , 'exceptionurl' => $ this -> generateAbsoluteUrlFromOption ( 'url_return_ko' , $ order ) , 'cancelurl' => $ this -> generateAbsoluteUrlFromOption ( 'url_return_ko' , $ order ) , 'operation' => $ this -> getOperation ( ) , ] ; }
Returns form parameters for sendbank.

@param OrderInterface $order

@return array
Returns form parameters for sendbank .