Skip to content

Commit 59cb581

Browse files
authored
Merge branch 'Adyen:main' into issue/2867-use-async-pos-payments
2 parents 3fcf924 + fa5a996 commit 59cb581

File tree

215 files changed

+9705
-2360
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

215 files changed

+9705
-2360
lines changed

.github/Dockerfile

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ DB_NAME=magento \
99
DB_USER=magento \
1010
DB_PASSWORD=magento \
1111
DB_PREFIX=m2_ \
12-
ELASTICSEARCH_SERVER="<will be defined>" \
13-
ELASTICSEARCH_PORT=9200 \
14-
ELASTICSEARCH_INDEX_PREFIX=magento2 \
15-
ELASTICSEARCH_TIMEOUT=15 \
12+
OPENSEARCH_SERVER="<will be defined>" \
13+
OPENSEARCH_PORT=9200 \
14+
OPENSEARCH_INDEX_PREFIX=magento2 \
15+
OPENSEARCH_TIMEOUT=15 \
1616
ADMIN_NAME=admin \
1717
ADMIN_LASTNAME=admin \
1818
ADMIN_EMAIL=admin@example.com \

.github/Makefile

+5-5
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ configure: n98-magerun2.phar
4141
bin/magento config:set payment/adyen_abstract/merchant_account "${ADYEN_MERCHANT}"
4242
bin/magento config:set payment/adyen_abstract/notifications_ip_check 0
4343
bin/magento config:set payment/adyen_abstract/payment_authorized 'processing'
44-
bin/magento config:set payment/adyen_abstract/payment_pre_authorized 'pending_payment'
44+
bin/magento config:set payment/adyen_abstract/payment_pre_authorized 'adyen_authorized'
4545
bin/magento config:set payment/adyen_abstract/capture_mode 'manual'
4646
bin/magento config:set payment/adyen_abstract/paypal_capture_mode 0
47-
bin/magento config:set payment/adyen_abstract/recurring_configuration '{"adyen_cc":{"name":"Credit Card","enabled":"1","recurringProcessingModel":"CardOnFile"}}'
47+
bin/magento config:set payment/adyen_abstract/recurring_configuration '{"adyen_cc":{"name":"Cards","enabled":"1","recurringProcessingModel":"CardOnFile"},"adyen_sepadirectdebit":{"name":"SEPA Direct Debit","enabled":"1","recurringProcessingModel":"CardOnFile"}}'
4848
bin/magento config:set payment/adyen_cc_vault/require_cvc 1
4949
bin/magento config:set payment/adyen_abstract/client_key_test "${ADYEN_CLIENT_KEY}"
5050
bin/magento config:set payment/adyen_abstract/notification_username 'admin'
@@ -60,8 +60,9 @@ flush:
6060
enable-express:
6161
bin/magento module:enable Adyen_ExpressCheckout
6262
bin/magento setup:upgrade
63-
bin/magento config:set payment/adyen_express/show_google_pay_on "1,2,3"
64-
bin/magento config:set payment/adyen_express/show_apple_pay_on "1,2,3"
63+
bin/magento config:set payment/adyen_googlepay/express_show_on "1,2,3"
64+
bin/magento config:set payment/adyen_applepay/express_show_on "1,2,3"
65+
bin/magento config:set payment/adyen_paypal_express/express_show_on "1,2,3"
6566
bin/magento cache:clean
6667

6768
# Full plugin setup
@@ -115,7 +116,6 @@ setup-mftf:
115116
--MAGENTO_BASE_URL "https://${MAGENTO_HOST}/" \
116117
--MAGENTO_BACKEND_NAME "${ADMIN_URLEXT}" \
117118
--MAGENTO_ADMIN_USERNAME "${ADMIN_USERNAME}" \
118-
--MAGENTO_ADMIN_PASSWORD "${ADMIN_PASSWORD}" \
119119
--BROWSER chrome \
120120
--ELASTICSEARCH_VERSION 7;
121121
echo 'SELENIUM_HOST=selenium' >> dev/tests/acceptance/.env;

.github/docker-compose.e2e.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: '3'
22
services:
33
playwright:
4-
image: mcr.microsoft.com/playwright:v1.40.1
4+
image: mcr.microsoft.com/playwright:v1.50.0
55
shm_size: 1gb
66
ipc: host
77
cap_add:
@@ -20,8 +20,11 @@ services:
2020
- ADYEN_MERCHANT
2121
- GOOGLE_USERNAME
2222
- GOOGLE_PASSWORD
23+
- AMAZON_USERNAME
24+
- AMAZON_PASSWORD
2325
- WEBHOOK_USERNAME
2426
- WEBHOOK_PASSWORD
27+
- CI
2528
volumes:
2629
- ./scripts/e2e.sh:/e2e.sh
2730
- ../test-report:/tmp/test-report

.github/docker-compose.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ services:
1111
MARIADB_DATABASE: magento
1212
MARIADB_USER: magento
1313
MARIADB_PASSWORD: magento
14-
elastic:
15-
image: elasticsearch:7.17.13
16-
container_name: elasticsearch
14+
opensearch:
15+
image: bitnami/opensearch:2
16+
container_name: opensearch-container
1717
networks:
1818
- backend
1919
ports:
@@ -37,7 +37,7 @@ services:
3737
- magento2.test.com
3838
environment:
3939
DB_SERVER: mariadb
40-
ELASTICSEARCH_SERVER: elasticsearch
40+
OPENSEARCH_SERVER: opensearch-container
4141
MAGENTO_HOST: magento2.test.com
4242
VIRTUAL_HOST: magento2.test.com
4343
COMPOSER_MEMORY_LIMIT: -1
@@ -52,7 +52,7 @@ services:
5252
MAGENTO_VERSION:
5353
depends_on:
5454
- db
55-
- elastic
55+
- opensearch
5656
volumes:
5757
- ../:/data/extensions/workdir
5858
- ./Makefile:/var/www/html/Makefile

.github/scripts/install_magento.sh

+10-14
Original file line numberDiff line numberDiff line change
@@ -20,29 +20,25 @@ else
2020
exit 1
2121
fi
2222

23-
USE_ELASTICSEARCH='1'
24-
if [[ "$MAGENTO_VERSION" =~ ^2\.3 ]]; then
25-
USE_ELASTICSEARCH='0'
26-
fi
27-
28-
if [ "$USE_ELASTICSEARCH" == '1' ] && [ "$ELASTICSEARCH_SERVER" != "<will be defined>" ]; then
23+
if [ "$OPENSEARCH_SERVER" != "<will be defined>" ]; then
2924
MAGENTO_INSTALL_ARGS=$(echo \
30-
--elasticsearch-host="$ELASTICSEARCH_SERVER" \
31-
--elasticsearch-port="$ELASTICSEARCH_PORT" \
32-
--elasticsearch-index-prefix="$ELASTICSEARCH_INDEX_PREFIX" \
33-
--elasticsearch-timeout="$ELASTICSEARCH_TIMEOUT")
25+
--search-engine="opensearch" \
26+
--opensearch-host="$OPENSEARCH_SERVER" \
27+
--opensearch-port="$OPENSEARCH_PORT" \
28+
--opensearch-index-prefix="$OPENSEARCH_INDEX_PREFIX" \
29+
--opensearch-timeout="$OPENSEARCH_TIMEOUT")
3430
RET=1
3531
while [ $RET -ne 0 ]; do
36-
echo "Checking if $ELASTICSEARCH_SERVER is available."
37-
curl -XGET "$ELASTICSEARCH_SERVER:$ELASTICSEARCH_PORT/_cat/health?v&pretty" >/dev/null 2>&1
32+
echo "Checking if $OPENSEARCH_SERVER is available."
33+
curl -XGET "$OPENSEARCH_SERVER:$OPENSEARCH_PORT/_cat/health?v&pretty" >/dev/null 2>&1
3834
RET=$?
3935

4036
if [ $RET -ne 0 ]; then
41-
echo "Connection to Elasticsearch is pending."
37+
echo "Connection to OpenSearch is pending."
4238
sleep 5
4339
fi
4440
done
45-
echo "Elasticsearch server $ELASTICSEARCH_SERVER is available."
41+
echo "OpenSearch server $OPENSEARCH_SERVER is available."
4642
fi
4743

4844
if [[ -e /tmp/magento.tar.gz ]]; then

.github/workflows/codeql.yml

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
name: "CodeQL"
22

33
on:
4-
push:
5-
branches: [ "develop", "develop-6", "develop-7", "develop-8", "main", "main-6", "main-7", "main-8" ]
64
pull_request:
7-
branches: [ "develop", "main" ]
85
paths-ignore:
9-
- 'view/base/web/js/*'
10-
schedule:
11-
- cron: "6 1 * * 0"
6+
- 'view/base/web/js/**'
127

138
jobs:
149
analyze:

.github/workflows/create-release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- name: Prepare the next main release
3535
uses: Adyen/release-automation-action@v1.3.1
3636
with:
37-
token: ${{ secrets.GITHUB_TOKEN }}
37+
token: ${{ secrets.ADYEN_RELEASE_AUTOMATION_USER_TOKEN }}
3838
develop-branch: main
3939
version-files: composer.json
4040
release-title: Adyen Magento-2 Plugin

.github/workflows/e2e-test-dispatch.yml

-115
This file was deleted.

.github/workflows/e2e-test-express-checkout.yml

-79
This file was deleted.

0 commit comments

Comments
 (0)