diff --git a/src/Resources/EmbeddedResources/Paypage/Urls.php b/src/Resources/EmbeddedResources/Paypage/Urls.php index 5437d33d..5796b00b 100644 --- a/src/Resources/EmbeddedResources/Paypage/Urls.php +++ b/src/Resources/EmbeddedResources/Paypage/Urls.php @@ -11,11 +11,15 @@ class Urls extends AbstractUnzerResource protected ?string $imprint = null; protected ?string $help = null; protected ?string $contact = null; + /** @deprecated Use Style::$favicon instead. + * @see Style::$favicon + */ protected ?string $favicon = null; protected ?string $returnSuccess = null; protected ?string $returnPending = null; protected ?string $returnFailure = null; protected ?string $returnCancel = null; + protected ?string $subscriptionAgreement = null; public function getTermsAndCondition(): ?string { @@ -126,4 +130,15 @@ public function setReturnCancel(?string $returnCancel): Urls $this->returnCancel = $returnCancel; return $this; } + + public function getSubscriptionAgreement(): ?string + { + return $this->subscriptionAgreement; + } + + public function setSubscriptionAgreement(?string $subscriptionAgreement): Urls + { + $this->subscriptionAgreement = $subscriptionAgreement; + return $this; + } } \ No newline at end of file diff --git a/test/integration/Resources/PaypageV2Test.php b/test/integration/Resources/PaypageV2Test.php index 18ca4ac6..73c4fd0e 100644 --- a/test/integration/Resources/PaypageV2Test.php +++ b/test/integration/Resources/PaypageV2Test.php @@ -146,7 +146,6 @@ public function createPaypageWithOptionalStringProperties() /** * @test - * @group skip */ public function createPaypageWithUrls() { @@ -156,11 +155,11 @@ public function createPaypageWithUrls() $urls->setImprint('https://imprint.com'); $urls->setHelp('https://help.com'); $urls->setContact('https://contact.com'); - $urls->setFavicon('https://favicon.com'); $urls->setReturnSuccess('https://returnsuccess.com'); $urls->setReturnPending('https://returnpending.com'); $urls->setReturnFailure('https://returnfailure.com'); $urls->setReturnCancel('https://returncancel.com'); + $urls->setSubscriptionAgreement('https://subscriptionagreement.com'); $paypage = new Paypage(9.99, 'EUR', 'charge'); $paypage->setUrls($urls);