card_number = $card_number; $this->card_verification_code = $card_verification_code; $this->merchant_id = $merchant_id; $this->request_id = uniqid('tcs_gcp_', true); $this->value_amount = $amount_to_withdraw_as_EuroCentsString; $this->value_currency = "EUR"; $this->receipt_number = $receipt_number; $this->orderTotal_Amount = $orderTotal_Amount_as_EuroCentsString; $this->orderTotal_Currency = "EUR"; $this->remark = ""; $this->transactionTag = ""; // Create hash $string_to_hash = $merchant_id.$this->request_id.$card_number.$card_verification_code.$this->value_currency.$this->value_amount.$this->receipt_number.$secret_key; $this->hash = sha1($string_to_hash); } public function get_request_id() { return $this->request_id; } public function get_action() { return "http://ws.tcs-cms.nl/wsdl/pointofsale/v4/IGiftcard/Withdraw"; } public function get_xml() { ob_start(); ?> request_id ?> merchant_id ?> hash ?> card_number ?> card_verification_code ?> value_amount ?> value_currency ?> receipt_number ?> orderTotal_Amount ?> orderTotal_Currency ?> remark ?> transactionTag ?>