-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Request To Pay Payment method removed (#77) * Fixed an issue with getting issuers for iDeal (#78) Co-authored-by: Shu Chen <[email protected]> * Adding missing subscriptions parameters (#79) * Add missing parameters * Add docblock * Bancontact update & fixes (#80) * Add missing parameters * Add docblock * Add bancontact alias * Fix wrong naming to payrecurring and add payoneclick method * Return null when response data is not set (#81) * BP-2345 add return and push url in the i deal qr request in the php sdk (#83) * Return null when response data is not set * Add missing parameters * Update test and example * 1.3.1 * Changing the version * Merge conflict * Update changelog * Update changelog * Return string instead of int in subcode code (#88) * [Bugfixes] outdated subscription example (#90) * Return string instead of int in subcode code * Update subscription examples * Update Paypal test * GitHub/action psr12 and phplint validation (#92) * 1.4.0 (#86) * Request To Pay Payment method removed (#77) * Fixed an issue with getting issuers for iDeal (#78) Co-authored-by: Shu Chen <[email protected]> * Adding missing subscriptions parameters (#79) * Add missing parameters * Add docblock * Bancontact update & fixes (#80) * Add missing parameters * Add docblock * Add bancontact alias * Fix wrong naming to payrecurring and add payoneclick method * Return null when response data is not set (#81) * BP-2345 add return and push url in the i deal qr request in the php sdk (#83) * Return null when response data is not set * Add missing parameters * Update test and example * 1.3.1 * Changing the version * Merge conflict * Update changelog * Update changelog --------- Co-authored-by: reflie-nxte <[email protected]> * Added action * Added comment to trigger github action --------- Co-authored-by: Shu Chen <[email protected]> Co-authored-by: reflie-nxte <[email protected]> * Update ideal qr test (#94) * BP-2404 Feature/8.2 support (#95) * Update ideal qr test * Add group reference * Move tests folder * wip * Conform phpcs * Remove comments * Release 1.5.0 (#97) --------- Co-authored-by: reflie-nxte <[email protected]> Co-authored-by: avido <[email protected]>
- Loading branch information
1 parent
09495e2
commit 94bb8e3
Showing
70 changed files
with
275 additions
and
173 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
BPE_WEBSITE = "Example.com" | ||
BPE_WEBSITE_KEY = "KEY" | ||
BPE_SECRET_KEY = "SECRET" | ||
BPE_MODE = "test" | ||
BPE_DEBUG = true | ||
BPE_REPORT_ERROR = true | ||
BPE_WEBSITE="Example.com" | ||
BPE_WEBSITE_KEY="KEY" | ||
BPE_SECRET_KEY="SECRET" | ||
BPE_MODE="test" | ||
BPE_DEBUG=true | ||
BPE_REPORT_ERROR=true | ||
|
||
BPE_EXAMPLE_BASE_URL = "https://example.com/buckaroo/" | ||
BPE_EXAMPLE_RETURN_URL = "${BPE_EXAMPLE_BASE_URL}return" | ||
BPE_EXAMPLE_PUSH_URL = "${BPE_EXAMPLE_BASE_URL}push" | ||
BPE_EXAMPLE_IP = "127.0.0.1" | ||
BPE_EXAMPLE_CURRENCY_CODE = "EUR" | ||
BPE_EXAMPLE_BASE_URL="https://example.com/buckaroo/" | ||
BPE_EXAMPLE_RETURN_URL="${BPE_EXAMPLE_BASE_URL}return" | ||
BPE_EXAMPLE_PUSH_URL="${BPE_EXAMPLE_BASE_URL}push" | ||
BPE_EXAMPLE_IP="127.0.0.1" | ||
BPE_EXAMPLE_CURRENCY_CODE="EUR" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: CheckStyleAndLint | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- "src/**.php" | ||
- "example/**.php" | ||
|
||
jobs: | ||
phpcs: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
php: [7.4, 8.1, 8.2] | ||
stability: [prefer-stable] | ||
|
||
name: PHP ${{ matrix.php }} - ${{ matrix.stability }} - ${{ matrix.os }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
tools: cs2pr, phplint, phpcs | ||
|
||
- name: Run phplint | ||
run: phplint --no-configuration --no-cache --no-interaction ./src/* ./example/* | ||
|
||
- name: Run phpcs | ||
run: phpcs -q --report=checkstyle --extensions=php ./src/* | cs2pr |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,28 +9,36 @@ | |
|
||
//** START Create Duo Combined */ | ||
$subscriptions = $buckaroo->method('subscriptions')->manually()->createCombined([ | ||
'pushURL' => 'https://buckaroo.dev/push', | ||
'includeTransaction' => false, | ||
'transactionVatPercentage' => 5, | ||
'configurationCode' => 'xxxxx', | ||
'configurationCode' => 'gfyh9fe4', | ||
'email' => '[email protected]', | ||
'rate_plans' => [ | ||
'ratePlans' => [ | ||
'add' => [ | ||
'startDate' => date('Y-m-d'), | ||
'ratePlanCode' => 'xxxxxx', | ||
'startDate' => '2033-01-01', | ||
'ratePlanCode' => '9863hdcj', | ||
], | ||
], | ||
'phone' => [ | ||
'mobile' => '0612345678', | ||
], | ||
'debtor' => [ | ||
'code' => 'xxxxxx', | ||
'code' => 'johnsmith4', | ||
], | ||
'person' => [ | ||
'firstName' => 'John', | ||
'lastName' => 'Do', | ||
'gender' => Gender::FEMALE, | ||
// 'person' => [ | ||
// 'firstName' => 'John', | ||
// 'lastName' => 'Do', | ||
// 'gender' => Gender::FEMALE, | ||
// 'culture' => 'nl-NL', | ||
// 'birthDate' => '1990-01-01' | ||
// ], | ||
'company' => [ | ||
'culture' => 'nl-NL', | ||
'birthDate' => date('Y-m-d'), | ||
'companyName' => 'My Company Coporation', | ||
'vatApplicable' => true, | ||
'vatNumber' => 'NL140619562B01', | ||
'chamberOfCommerce' => '20091741', | ||
], | ||
'address' => [ | ||
'street' => 'Hoofdstraat', | ||
|
@@ -50,28 +58,36 @@ | |
|
||
//** START Create Triple Combined */ | ||
$subscriptions = $buckaroo->method('subscriptions')->manually()->createCombined([ | ||
'pushURL' => 'https://buckaroo.dev/push', | ||
'includeTransaction' => false, | ||
'transactionVatPercentage' => 5, | ||
'configurationCode' => 'xxxxx', | ||
'configurationCode' => 'gfyh9fe4', | ||
'email' => '[email protected]', | ||
'rate_plans' => [ | ||
'ratePlans' => [ | ||
'add' => [ | ||
'startDate' => date('Y-m-d'), | ||
'ratePlanCode' => 'xxxxxx', | ||
'startDate' => '2033-01-01', | ||
'ratePlanCode' => '9863hdcj', | ||
], | ||
], | ||
'phone' => [ | ||
'mobile' => '0612345678', | ||
], | ||
'debtor' => [ | ||
'code' => 'xxxxxx', | ||
'code' => 'johnsmith4', | ||
], | ||
'person' => [ | ||
'firstName' => 'John', | ||
'lastName' => 'Do', | ||
'gender' => Gender::FEMALE, | ||
// 'person' => [ | ||
// 'firstName' => 'John', | ||
// 'lastName' => 'Do', | ||
// 'gender' => Gender::FEMALE, | ||
// 'culture' => 'nl-NL', | ||
// 'birthDate' => '1990-01-01' | ||
// ], | ||
'company' => [ | ||
'culture' => 'nl-NL', | ||
'birthDate' => date('Y-m-d'), | ||
'companyName' => 'My Company Coporation', | ||
'vatApplicable' => true, | ||
'vatNumber' => 'NL140619562B01', | ||
'chamberOfCommerce' => '20091741', | ||
], | ||
'address' => [ | ||
'street' => 'Hoofdstraat', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
<?php | ||
|
||
require('../bootstrap.php'); | ||
|
||
use Buckaroo\BuckarooClient; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0"?> | ||
<ruleset name="Buckaroo_Coding_Standard"> | ||
<description>Buckaroo SDK coding standard.</description> | ||
|
||
<file>src</file> | ||
|
||
<rule ref="PSR2"/> | ||
|
||
<rule ref="Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis"> | ||
<exclude-pattern>*.php</exclude-pattern> | ||
</rule> | ||
|
||
<rule ref="Squiz.Classes.ValidClassName.NotCamelCaps"> | ||
<exclude-pattern>src/PaymentMethods/iDeal/iDeal.php</exclude-pattern> | ||
<exclude-pattern>src/PaymentMethods/iDealQR/iDealQR.php</exclude-pattern> | ||
</rule> | ||
|
||
<exclude name="Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword">src</exclude> | ||
|
||
</ruleset> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,4 +38,4 @@ class Configuration extends ServiceParameter | |
* @var bool | ||
*/ | ||
protected bool $skipPayPerEmail; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -74,4 +74,4 @@ class RatePlanCharge extends ServiceParameter | |
* @var string | ||
*/ | ||
protected string $ratePlanChargeType; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.