-
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.
- Loading branch information
Showing
315 changed files
with
3,028 additions
and
2,750 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?php | ||
$finder = Symfony\Component\Finder\Finder::create() | ||
->in([ | ||
__DIR__ . '/src', | ||
__DIR__ . '/example' | ||
]) | ||
->name('*.php') | ||
->notPath('bootstrap/*') | ||
->notPath('storage/*') | ||
->notPath('vendor') | ||
->ignoreDotFiles(true) | ||
->ignoreVCS(true); | ||
|
||
return (new PhpCsFixer\Config()) | ||
->setRules([ | ||
'@PSR2' => true, | ||
'array_syntax' => ['syntax' => 'short'], | ||
'ordered_imports' => ['sort_algorithm' => 'alpha'], | ||
'no_unused_imports' => true, | ||
'not_operator_with_successor_space' => true, | ||
'trailing_comma_in_multiline' => true, | ||
'phpdoc_scalar' => true, | ||
'unary_operator_spaces' => true, | ||
'binary_operator_spaces' => true, | ||
'blank_line_before_statement' => [ | ||
'statements' => ['break', 'continue', 'declare', 'return', 'throw', 'try'], | ||
], | ||
'braces' => [ | ||
'allow_single_line_closure' => false, | ||
'position_after_functions_and_oop_constructs' => 'next', | ||
'position_after_anonymous_constructs' => 'next', | ||
'position_after_control_structures' => 'next', | ||
], | ||
'phpdoc_single_line_var_spacing' => true, | ||
'phpdoc_var_without_name' => true, | ||
'method_argument_space' => [ | ||
'on_multiline' => 'ensure_fully_multiline', | ||
'keep_multiple_spaces_after_comma' => true, | ||
], | ||
'single_trait_insert_per_statement' => true, | ||
]) | ||
->setFinder($finder); |
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 |
---|---|---|
|
@@ -12,60 +12,60 @@ | |
// With the returned payload, we can combine it with the next payment. | ||
|
||
$invoice = $buckaroo->method('credit_management')->manually()->createCombinedInvoice([ | ||
'invoice' => rand(1000, 9999), | ||
'applyStartRecurrent' => 'False', | ||
'invoiceAmount' => 10.00, | ||
'invoiceAmountVAT' => 1.00, | ||
'invoiceDate' => date('Y-m-d'), | ||
'dueDate' => date('Y-m-d'), | ||
'schemeKey' => '2amq34', | ||
'maxStepIndex' => 1, | ||
'allowedServices' => 'ideal,mastercard', | ||
'debtor' => [ | ||
'code' => 'johnsmith4' | ||
'invoice' => rand(1000, 9999), | ||
'applyStartRecurrent' => 'False', | ||
'invoiceAmount' => 10.00, | ||
'invoiceAmountVAT' => 1.00, | ||
'invoiceDate' => date('Y-m-d'), | ||
'dueDate' => date('Y-m-d'), | ||
'schemeKey' => '2amq34', | ||
'maxStepIndex' => 1, | ||
'allowedServices' => 'ideal,mastercard', | ||
'debtor' => [ | ||
'code' => 'johnsmith4', | ||
], | ||
'email' => '[email protected]', | ||
'phone' => [ | ||
'mobile' => '06198765432' | ||
'email' => '[email protected]', | ||
'phone' => [ | ||
'mobile' => '06198765432', | ||
], | ||
'person' => [ | ||
'culture' => 'nl-NL', | ||
'title' => 'Msc', | ||
'initials' => 'JS', | ||
'person' => [ | ||
'culture' => 'nl-NL', | ||
'title' => 'Msc', | ||
'initials' => 'JS', | ||
'firstName' => 'Test', | ||
'lastNamePrefix' => 'Jones', | ||
'lastName' => 'Aflever', | ||
'gender' => Gender::MALE | ||
'gender' => Gender::MALE, | ||
], | ||
'company' => [ | ||
'culture' => 'nl-NL', | ||
'name' => 'My Company Corporation', | ||
'company' => [ | ||
'culture' => 'nl-NL', | ||
'name' => 'My Company Corporation', | ||
'vatApplicable' => true, | ||
'vatNumber' => 'NL140619562B01', | ||
'chamberOfCommerce' => '20091741' | ||
'vatNumber' => 'NL140619562B01', | ||
'chamberOfCommerce' => '20091741', | ||
], | ||
'address' => [ | ||
'street' => 'Hoofdtraat', | ||
'houseNumber' => '90', | ||
'address' => [ | ||
'street' => 'Hoofdtraat', | ||
'houseNumber' => '90', | ||
'houseNumberSuffix' => 'A', | ||
'zipcode' => '8441ER', | ||
'city' => 'Heerenveen', | ||
'state' => 'Friesland', | ||
'country' => 'NL' | ||
] | ||
'zipcode' => '8441ER', | ||
'city' => 'Heerenveen', | ||
'state' => 'Friesland', | ||
'country' => 'NL', | ||
], | ||
]); | ||
|
||
// In this case, we have the payload stored in the $invoice variable. We can now combine it with the next payment using the combine method | ||
|
||
$response = $buckaroo->method('sepadirectdebit')->combine($invoice)->pay([ | ||
'invoice' => uniqid(), | ||
'amountDebit' => 10.10, | ||
'iban' => 'NL13TEST0123456789', | ||
'bic' => 'TESTNL2A', | ||
'collectdate' => date('Y-m-d'), | ||
'mandateReference' => '1DCtestreference', | ||
'mandateDate' => '2022-07-03', | ||
'customer' => [ | ||
'name' => 'John Smith' | ||
] | ||
]); | ||
'invoice' => uniqid(), | ||
'amountDebit' => 10.10, | ||
'iban' => 'NL13TEST0123456789', | ||
'bic' => 'TESTNL2A', | ||
'collectdate' => date('Y-m-d'), | ||
'mandateReference' => '1DCtestreference', | ||
'mandateDate' => '2022-07-03', | ||
'customer' => [ | ||
'name' => 'John Smith', | ||
], | ||
]); |
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 |
---|---|---|
|
@@ -8,16 +8,16 @@ | |
$buckaroo = new BuckarooClient($_ENV['BPE_WEBSITE_KEY'], $_ENV['BPE_SECRET_KEY']); | ||
|
||
$response = $buckaroo->method('payperemail')->paymentInvitation([ | ||
'amountDebit' => 10, | ||
'invoice' => 'testinvoice 123', | ||
'merchantSendsEmail' => false, | ||
'email' => '[email protected]', | ||
'expirationDate' => carbon()->addDays()->format('Y-m-d'), | ||
'amountDebit' => 10, | ||
'invoice' => 'testinvoice 123', | ||
'merchantSendsEmail' => false, | ||
'email' => '[email protected]', | ||
'expirationDate' => carbon()->addDays()->format('Y-m-d'), | ||
'paymentMethodsAllowed' => 'ideal,mastercard,paypal', | ||
'attachment' => '', | ||
'customer' => [ | ||
'gender' => Gender::FEMALE, | ||
'firstName' => 'John', | ||
'lastName' => 'Smith' | ||
] | ||
]); | ||
'attachment' => '', | ||
'customer' => [ | ||
'gender' => Gender::FEMALE, | ||
'firstName' => 'John', | ||
'lastName' => 'Smith', | ||
], | ||
]); |
Oops, something went wrong.