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
<?php // php 7; declare(strict_types=1); | |
/** | |
* For Dutch consignments the street should be divided into name, number and addition. | |
* | |
* If you want to improve this regex, please check the test. | |
* And also adapt these adjustments to our GitHub: | |
* https://github.com/myparcelnl/sdk | |
* | |
* @author Reindert Vetter <[email protected]> | |
* @copyright MyParcel |
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
const WEEKDAY_MONDAY = 1; | |
/** | |
* Get drop off date | |
* | |
* @param int $dateTime | |
* @return int | |
*/ | |
public function getDropOffDateTimeFromDeliveryDateTime($dateTime) | |
{ |
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
{ | |
"id": "1", | |
"billing_address": { | |
"name": "" | |
"street": "" | |
}, | |
"created_at": "2021-01-01 12:00:00", | |
"custom_fields": null, | |
"customer": [ | |
"email": "[email protected]", |
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
[ | |
{ | |
"cohort": "2020-01", | |
"after": 0, | |
"count": 100, | |
"rate": "100.0", | |
"mutation_rate": null | |
}, | |
{ | |
"cohort": "2020-01", |
This is a PHP SDK to make easier to communicate with the Plug&Pay API.
Not all functionalities are present. If you're missing something, feel free to request it through our Discord channel.
- The Plug&Pay SDK works with PHP version >= 7.4.
For how to handle the exceptions correctly, see Exceptions.
To load more information see Extra Information.
use \PlugAndPay\Sdk\Service\Client;
use \PlugAndPay\Sdk\Service\OrderService;
OlderNewer