Exemplo n.º 1
0
 /**
  * Constructor for SagepayServerApi
  *
  * @param SagepaySettings $config
  */
 public function __construct(SagepaySettings $config)
 {
     parent::__construct($config);
     $this->_vpsServerUrl = $config->getPurchaseUrl('server');
     $this->mandatory = array(
         'VPSProtocol',
         'TxType',
         'Vendor',
         'VendorTxCode',
         'Amount',
         'Currency',
         'Description',
         'NotificationURL',
         'BillingSurname',
         'BillingFirstnames',
         'BillingAddress1',
         'BillingCity',
         'BillingPostCode',
         'BillingCountry',
         'DeliverySurname',
         'DeliveryFirstnames',
         'DeliveryAddress1',
         'DeliveryCity',
         'DeliveryPostCode',
         'DeliveryCountry',
         'StoreToken'
     );
 }
Exemplo n.º 2
0
 /**
  *
  * @param SagepaySettings $config
  */
 public function __construct(SagepaySettings $config)
 {
     parent::__construct($config);
     $this->mandatory = array(
         'VendorTxCode',
         'Amount',
         'Currency',
         'Description',
         'SuccessURL',
         'FailureURL',
         'BillingSurname',
         'BillingFirstnames',
         'BillingAddress1',
         'BillingCity',
         'BillingPostCode',
         'BillingCountry',
         'DeliverySurname',
         'DeliveryFirstnames',
         'DeliveryAddress1',
         'DeliveryCity',
         'DeliveryPostCode',
         'DeliveryCountry',
     );
 }