Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions src/Resources/EmbeddedResources/Paypage/Urls.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down Expand Up @@ -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;
}
}
3 changes: 1 addition & 2 deletions test/integration/Resources/PaypageV2Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ public function createPaypageWithOptionalStringProperties()

/**
* @test
* @group skip
*/
public function createPaypageWithUrls()
{
Expand All @@ -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);
Expand Down
Loading