Skip to content
This repository has been archived by the owner on Mar 29, 2022. It is now read-only.

Commit

Permalink
Revert "Added the possibility to add custom css to the payment page" (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Gabriel authored and sixer1182 committed Jul 24, 2020
1 parent 9cb52ca commit de1e807
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 37 deletions.
23 changes: 0 additions & 23 deletions src/Resources/PaymentTypes/Paypage.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,6 @@ class Paypage extends BasePaymentType
/** @var bool $card3ds */
protected $card3ds;

/** @var array $css */
protected $css = [];

/**
* Paypage constructor.
*
Expand Down Expand Up @@ -539,26 +536,6 @@ public function setCard3ds($card3ds): Paypage
return $this;
}

/**
* @return array|null
*/
public function getCss(): ?array
{
return $this->css;
}

/**
* @param array $styles
* @return Paypage
*/
public function setCss($styles): Paypage
{
foreach ($styles as $element => $css) {
$this->css[$element] = $css;
}
return $this;
}

/**
* @param float|null $effectiveInterestRate
*
Expand Down
16 changes: 2 additions & 14 deletions test/integration/PaymentTypes/PaypageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,7 @@ public function maximumPaypageChargeShouldBeCreatable(): void
->setContactUrl('https://www.heidelpay.com/en/about-us/about-heidelpay/')
->setInvoiceId($invoiceId)
->setCard3ds(true)
->setEffectiveInterestRate(4.99)
->setCss([
'shopDescription' => 'color: purple',
'header' => 'background-color: red',
'helpUrl' => 'color: blue',
'contactUrl' => 'color: green',
]);
->setEffectiveInterestRate(4.99);
$this->assertEmpty($paypage->getId());
$paypage = $this->heidelpay->initPayPageCharge($paypage, $customer, $basket);
$this->assertNotEmpty($paypage->getId());
Expand Down Expand Up @@ -127,13 +121,7 @@ public function maximumPaypageAuthorizeShouldBeCreatable(): void
->setContactUrl('https://www.heidelpay.com/en/about-us/about-heidelpay/')
->setInvoiceId($invoiceId)
->setCard3ds(true)
->setEffectiveInterestRate(4.99)
->setCss([
'shopDescription' => 'color: purple',
'header' => 'background-color: red',
'helpUrl' => 'color: blue',
'contactUrl' => 'color: green',
]);
->setEffectiveInterestRate(4.99);
$paypage->addExcludeType(Card::getResourceName());
$this->assertEmpty($paypage->getId());
$paypage = $this->heidelpay->initPayPageAuthorize($paypage, $customer, $basket);
Expand Down

0 comments on commit de1e807

Please sign in to comment.