From 86ee3e4cbc2c3593f18e081ff9bf802ca4f2baa1 Mon Sep 17 00:00:00 2001 From: Emmanuel Date: Mon, 8 Apr 2024 12:38:55 +0300 Subject: [PATCH] updated code --- src/Dpo.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Dpo.php b/src/Dpo.php index 2c65af8..6b7820b 100644 --- a/src/Dpo.php +++ b/src/Dpo.php @@ -8,23 +8,21 @@ class Dpo protected $amount; protected $currency; protected $reference; - protected $company_ref_unique; protected $service_type; protected $service_description; - public function __construct($reference, $amount, $currency, $company_ref_unique, $service_type, $service_description) + public function __construct($reference, $amount, $currency, $service_type, $service_description) { $this->amount = $amount; $this->currency = $currency; $this->reference = $reference; - $this->company_ref_unique = $company_ref_unique; $this->service_type = $service_type; $this->service_description = $service_description; } public function createToken() { - $xmlData = "" . config("dpo.company_token") . "createToken" . $this->amount . "" . $this->currency . "" . $this->reference . "http://www.domain.com/payurl.phphttp://www.domain.com/backurl.php 05" . $this->service_type . "" . $this->service_description . "" . now()->format("Y/m/d H:i") . ""; + $xmlData = "" . config("dpo.company_token") . "createToken" . $this->amount . "" . $this->currency . "" . $this->reference . "" . config("dpo.redirect_url") . "" . config("dpo.back_url") . " 05" . $this->service_type . "" . $this->service_description . "" . now()->format("Y/m/d H:i") . ""; $ch = curl_init();