Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 1.0.0 #11

Merged
merged 22 commits into from
Dec 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
90d3efe
Initial handover commit
josh-carter Oct 24, 2022
9a5cf25
Bugfix/incognito minicart buttons rendering (#2)
josh-carter Oct 27, 2022
7d1456c
use consistent country code from config model in callback payment req…
josh-carter Oct 27, 2022
7bfbaaf
use existing getCheckotuEnvironment helper method from Adyen in Butto…
josh-carter Nov 3, 2022
b200581
JS fixes for issues with ApplePay DisplayName & ApplePay rendering on…
josh-carter Nov 4, 2022
eed8743
Create dependabot.yml (#6)
candemiralp Nov 4, 2022
eb1cdfe
Configure stale.yml (#7)
candemiralp Nov 4, 2022
75fe45d
[PW-7460] - Support googlepay tx_variant (#8)
candemiralp Nov 11, 2022
47c90e2
[PW-7481] - Fix configuration value override for array values (#9)
candemiralp Nov 14, 2022
3b5ea65
Enable CI for repository (#10)
candemiralp Nov 16, 2022
ec546eb
Fulfil the open source requirements for the repository (#5)
candemiralp Nov 16, 2022
98041db
Add renovate.json (#12)
renovate[bot] Nov 17, 2022
8b0d282
Remove Dependabot (#13)
candemiralp Nov 17, 2022
1e5ae01
[PW-7592] allow empty value for show_xxx_on config (#17)
peterojo Dec 5, 2022
58b148b
[PW-7527] Fix: Updating the cart removes express buttons (#15)
peterojo Dec 5, 2022
a9ffb21
[PW-7606] - Update configuration parameter (#18)
candemiralp Dec 9, 2022
1bfb654
[PW-7613] bugfix set txVariant in shipping info (#19)
peterojo Dec 12, 2022
6301e99
Update version and module name (#16)
candemiralp Dec 12, 2022
ebaaa04
[PW-7651] - Use currency and grand total of the quote
candemiralp Dec 16, 2022
bc91904
[PW-7651] - Use currency and grand total of the quote
candemiralp Dec 16, 2022
fa54262
[PW-7651] - Update currency configuration
candemiralp Dec 19, 2022
0aa9d4b
Merge pull request #20 from Adyen/PW-7651
RokPopov Dec 20, 2022
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
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @Adyen/php
21 changes: 21 additions & 0 deletions .github/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Configuration for probot-stale - https://github.com/probot/stale
# Number of days of inactivity before an issue becomes stale
daysUntilStale: 14
# Number of days of inactivity before a stale issue is closed
daysUntilClose: 7
# Issues with these labels will never be considered stale
exemptLabels:
- Validating request
- Bug report
- Bug
- Enhancement
# Label to use when marking an issue as stale
staleLabel: Stale
# Comment to post when marking an issue as stale. Set to `false` to disable
markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.
closeComment: >
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.
only: issues
31 changes: 31 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
on: ["push", "pull_request"]
name: Main Workflow

jobs:
run:
name: Run
runs-on: ubuntu-latest

strategy:
matrix:
php-version: [ 7.4, 8.0, 8.1 ]

steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
tools: composer:v1

- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: TruffleHog OSS
uses: trufflesecurity/trufflehog@main
with:
path: ./
base: ${{ github.event.repository.default_branch }}
head: HEAD
extra_args: --debug --only-verified
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# OS
.DS_Store
Thumbs.db

# IDE and local environment
.vscode/
.vagrant/
.idea/

# Packages
vendor/
44 changes: 44 additions & 0 deletions Api/Data/AdyenPaymentMethodsInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?php
declare(strict_types=1);

namespace Adyen\ExpressCheckout\Api\Data;

interface AdyenPaymentMethodsInterface
{
public const EXTRA_DETAILS = 'extra_details';
public const METHODS_RESPONSE = 'methods_response';

/**
* Get Payment Methods Extra Details
*
* @return \Adyen\ExpressCheckout\Api\Data\ExtraDetailInterface[]
*/
public function getExtraDetails(): array;

/**
* Set Payment Methods Extra Details
*
* @param \Adyen\ExpressCheckout\Api\Data\ExtraDetailInterface[]
* @return void
*/
public function setExtraDetails(
array $extraDetails
): void;

/**
* Get Payment Methods Response
*
* @return \Adyen\ExpressCheckout\Api\Data\MethodResponseInterface[]
*/
public function getMethodsResponse(): array;

/**
* Set Payment Methods Response
*
* @param \Adyen\ExpressCheckout\Api\Data\MethodResponseInterface[]
* @return void
*/
public function setMethodsResponse(
array $maskedQuoteId
): void;
}
62 changes: 62 additions & 0 deletions Api/Data/ExpressDataInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<?php
declare(strict_types=1);

namespace Adyen\ExpressCheckout\Api\Data;

interface ExpressDataInterface
{
public const MASKED_QUOTE_ID = 'masked_quote_id';
public const ADYEN_PAYMENT_METHODS = 'adyen_payment_methods';
public const TOTALS = 'totals';

/**
* Get Masked Quote ID
*
* @return string|null
*/
public function getMaskedQuoteId(): ?string;

/**
* Set Masked Quote ID
*
* @param string $maskedQuoteId
* @return void
*/
public function setMaskedQuoteId(
string $maskedQuoteId
): void;

/**
* Get Adyen Payment Methods data
*
* @return \Adyen\ExpressCheckout\Api\Data\AdyenPaymentMethodsInterface|null
*/
public function getAdyenPaymentMethods(): ?\Adyen\ExpressCheckout\Api\Data\AdyenPaymentMethodsInterface;

/**
* Set Adyen Payment Methods data
*
* @param \Adyen\ExpressCheckout\Api\Data\AdyenPaymentMethodsInterface $adyenPaymentMethods
* @return void
*/
public function setAdyenPaymentMethods(
\Adyen\ExpressCheckout\Api\Data\AdyenPaymentMethodsInterface $adyenPaymentMethods
): void;

/**
* Get Totals For Expres Checkout Data
*
* @return \Magento\Quote\Api\Data\TotalsInterface|null
*/
public function getTotals(): ?\Magento\Quote\Api\Data\TotalsInterface;

/**
* Set Totals For Expres Checkout Data
*
* @param \Magento\Quote\Api\Data\TotalsInterface $totals
* @return void
*/
public function setTotals(
\Magento\Quote\Api\Data\TotalsInterface $totals
): void;
}
44 changes: 44 additions & 0 deletions Api/Data/ExtraDetail/AmountInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?php
declare(strict_types=1);

namespace Adyen\ExpressCheckout\Api\Data\ExtraDetail;

interface AmountInterface
{
public const VALUE = 'value';
public const CURRENCY = 'currency';

/**
* Get Configuration Value
*
* @return int
*/
public function getValue(): int;

/**
* Set Configuration Value
*
* @param int
* @return void
*/
public function setValue(
int $amount
): void;

/**
* Get Configuration Currency
*
* @return string|null
*/
public function getCurrency(): ?string;

/**
* Set Configuration Currency
*
* @param string
* @return void
*/
public function setCurrency(
string $currency
): void;
}
44 changes: 44 additions & 0 deletions Api/Data/ExtraDetail/ConfigurationInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?php
declare(strict_types=1);

namespace Adyen\ExpressCheckout\Api\Data\ExtraDetail;

interface ConfigurationInterface
{
public const AMOUNT = 'amount';
public const CURRENCY = 'currency';

/**
* Get Configuration Amount
*
* @return \Adyen\ExpressCheckout\Api\Data\ExtraDetail\AmountInterface|null
*/
public function getAmount(): ?\Adyen\ExpressCheckout\Api\Data\ExtraDetail\AmountInterface;

/**
* Set Configuration Amount
*
* @param \Adyen\ExpressCheckout\Api\Data\ExtraDetail\AmountInterface
* @return void
*/
public function setAmount(
\Adyen\ExpressCheckout\Api\Data\ExtraDetail\AmountInterface $amount
): void;

/**
* Get Configuration Currency
*
* @return string|null
*/
public function getCurrency(): ?string;

/**
* Set Configuration Currency
*
* @param string
* @return void
*/
public function setCurrency(
string $currency
): void;
}
62 changes: 62 additions & 0 deletions Api/Data/ExtraDetail/IconInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<?php
declare(strict_types=1);

namespace Adyen\ExpressCheckout\Api\Data\ExtraDetail;

interface IconInterface
{
public const URL = 'url';
public const WIDTH = 'width';
public const HEIGHT = 'height';

/**
* Get Icon Width
*
* @return int
*/
public function getWidth(): int;

/**
* Set Icon Width
*
* @param int
* @return void
*/
public function setWidth(
int $width
): void;

/**
* Get Icon Height
*
* @return int
*/
public function getHeight(): int;

/**
* Set Icon Height
*
* @param int
* @return void
*/
public function setHeight(
int $height
): void;

/**
* Get Icon URL
*
* @return string|null
*/
public function getUrl(): ?string;

/**
* Set Icon URL
*
* @param string
* @return void
*/
public function setUrl(
string $url
): void;
}
Loading