Skip to content

Commit

Permalink
Merge pull request #126 from buckaroo-it/V2
Browse files Browse the repository at this point in the history
v2.0.0
  • Loading branch information
harli91 committed Jun 12, 2023
2 parents 9ce1b0f + 3525295 commit 7cbd702
Show file tree
Hide file tree
Showing 378 changed files with 20,163 additions and 22,482 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/icons.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Icon update
on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Clone media repository
run: |
git clone https://github.com/buckaroo-it/Media
ls -lah
- name: Rename all files to lowercase
run: |
cd Media
cp ${{ github.workspace }}/.github/workflows/rename-icons.php ${{ github.workspace }}/Media/rename-icons.php
php ./rename-icons.php
- name: Copy payment method icons
run: |
cd Media
cp -R "Payment methods/SVG/." ${{ github.workspace }}/src/Resources/views/storefront/buckaroo/payments/
cp "Payment methods/SVG/creditcards.svg" ${{ github.workspace }}/src/Resources/public/storefront/buckaroo/creditcards.svg
rm ${{ github.workspace }}/src/Resources/views/storefront/buckaroo/payments/creditclick.svg
rm ${{ github.workspace }}/src/Resources/views/storefront/buckaroo/payments/tinka.svg
- name: Copy creditcards icons
run: |
cd Media
mv "Creditcard issuers/SVG/cartebleue.svg" "Creditcard issuers/SVG/cartebleuevisa.svg"
cp -R "Creditcard issuers/SVG/." ${{ github.workspace }}/src/Resources/public/storefront/buckaroo/creditcards/
- name: Copy payment issuers icons
run: |
cd Media
cp -R "iDEAL bank issuers/SVG/." ${{ github.workspace }}/src/Resources/public/storefront/buckaroo/issuers/
rm -f ${{ github.workspace }}/src/Resources/public/storefront/buckaroo/issuers/handelsbanken.svg
- name: Cleanup
run: |
rm -rd Media
- name: Create commit if we have changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Apply logo changes from media repository
13 changes: 13 additions & 0 deletions .github/workflows/rename-icons.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php
$path = realpath('./');

$di = new RecursiveIteratorIterator(
new RecursiveDirectoryIterator($path, FilesystemIterator::SKIP_DOTS),
RecursiveIteratorIterator::LEAVES_ONLY
);

foreach ($di as $name => $fio) {
$newname = $fio->getPath() . DIRECTORY_SEPARATOR . strtolower(str_replace(" ","",str_replace("&","-",$fio->getFilename())));
echo $newname, "\r\n";
rename($name, $newname);
}
33 changes: 33 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Module tests
on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Setup php
uses: nanasess/setup-php@v3.3.2
with:
php-version: 7.4
- uses: actions/checkout@v3
- name: Update composer lock
run: composer update
- name: Validate composer json
run: composer validate
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v3
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Run PHPCS
run: composer run phpcs

- name: Run PHPSTAN
run: composer run phpstan
22 changes: 21 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,4 +173,24 @@ BP-2181 Fix uncaught PHP Exception TypeError for payment fee configuration
BP-2291 Remove Request to Pay method
BP-2241 Change the Billink rejected (690) message (more consumer friendly)
BP-2322 Added validation on the 'Buckaroo Fee' input field
BP-2331 Solve frontend issue on the checkout page
BP-2331 Solve frontend issue on the checkout page
# 2.0.0
Compatible from Shopware 6.5.0 up to 6.5.1.1
BP-1473 Important changes code changes
BP-1474 Recommanded Changes
BP-1475 Optional Changes
BP-1570 Pipeline Changes
BP-1860 Use the Buckaroo PHP SDK
BP-2161 Refactor Apple Pay
BP-2573 Allow invoice pushes that have missing additional parameter orderId
BP-2164 Solve an issue related to cookie_samesite (use session)
BP-2341 Update the checkout with the newest payment method logo's
BP-2342 Make sure phone number is 'pre-filled' when already filled in
BP-2162 Refactor CheckoutHelper
BP-2326 Add PayPal Seller Protection
BP-2386 Add iDEAL issuer "YourSafe"
BP-2563 Solve an issue with creating refunds with Credit Cards(redirect)
BP-2562 User is not redirected to Payment section after rejected/failed iDEAL order
BP-2613 Solve admin and payment process issue/error for specific merchant
BP-2483 Live credit card transactions are not refundable
BP-2658 Cannot create a partial refund with Afterpay
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ Start accepting payments within a few minutes.

To use the Buckaroo plugin, please be aware of the following minimum requirements:
- A Buckaroo account ([Dutch](https://www.buckaroo.nl/start) or [English](https://www.buckaroo.eu/solutions/request-form))
- Shopware 6.1 up to 6.4.19.0
- PHP 7.4 , 8.0 , 8.1
- Shopware 6.5.0 up to 6.5.1.1
- PHP 8.1

### Installation

Expand Down
23 changes: 18 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,16 @@
"name": "buckaroo/shopware6",
"description": "Buckaroo payment provider plugin for Shopware 6",
"type": "shopware-platform-plugin",
"version": "1.7.0",
"version": "2.0.0",
"license": "proprietary",
"minimum-stability": "stable",
"require": {
"php": ">=7.1",
"shopware/core": "~6.4.0",
"shopware/storefront": "~6.4.0",
"php": ">=8.1",
"ext-curl": "*",
"ext-json": "*",
"ext-pcre": "*",
"ext-fileinfo": "*"
"ext-fileinfo": "*",
"buckaroo/sdk": "^1.6"
},
"authors": [{
"name": "Buckaroo",
Expand Down Expand Up @@ -45,5 +44,19 @@
"de-DE": "https://support.buckaroo.nl/contact",
"en-GB": "https://support.buckaroo.nl/contact"
}
},
"require-dev": {
"squizlabs/php_codesniffer": "*",
"phpstan/phpstan": "^1.9",
"shopware/core": "~6.4.0",
"shopware/storefront": "~6.4.0"
},
"scripts": {
"phpcs": [
"vendor/bin/phpcs ./"
],
"phpstan": [
"vendor/bin/phpstan analyze"
]
}
}
Loading

0 comments on commit 7cbd702

Please sign in to comment.