/** * 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' ); }
/** * * @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', ); }