From dd75b537858b060d9ade25beb36d58675e3eb1fe Mon Sep 17 00:00:00 2001 From: website21cz <62235288+website21cz@users.noreply.github.com> Date: Wed, 16 Jul 2025 13:22:59 +0200 Subject: [PATCH] Add url_paid, url_cancelled, url_pending --- src/Entity/Payment.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/Entity/Payment.php b/src/Entity/Payment.php index 7f0bfd6..f56431a 100644 --- a/src/Entity/Payment.php +++ b/src/Entity/Payment.php @@ -39,7 +39,10 @@ public static function of( string $fullName, string $method = PaymentMethodCode::ALL, string $country = CountryCode::ALL, - string $lang = LangCode::CS + string $lang = LangCode::CS, + string $url_paid, + string $url_cancelled, + string $url_pending ): self { $p = new static(); @@ -52,6 +55,9 @@ public static function of( $p->method = $method; $p->country = $country; $p->lang = $lang; + $p->url_paid=$url_paid, + $p->url_cancelled=$url_cancelled, + $p->url_pending=$url_pending return $p; } @@ -134,6 +140,9 @@ public function toArray(): array 'initRecurring' => $this->initRecurring ? 'true' : 'false', 'verification' => $this->verification ? 'true' : 'false', 'embedded' => $this->embedded ? 'true' : 'false', + 'url_paid'=>$this->url_paid?$this->url_paid:null, + 'url_cancelled'=>$this->url_cancelled?$this->url_cancelled:null, + 'url_pending'=>$this->url_pending?$this->url_pending:null ]); }