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;
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;
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.
[ | |
{ | |
"cohort": "2020-01", | |
"after": 0, | |
"count": 100, | |
"rate": "100.0", | |
"mutation_rate": null | |
}, | |
{ | |
"cohort": "2020-01", |
{ | |
"id": "1", | |
"billing_address": { | |
"name": "" | |
"street": "" | |
}, | |
"created_at": "2021-01-01 12:00:00", | |
"custom_fields": null, | |
"customer": [ | |
"email": "[email protected]", |
const WEEKDAY_MONDAY = 1; | |
/** | |
* Get drop off date | |
* | |
* @param int $dateTime | |
* @return int | |
*/ | |
public function getDropOffDateTimeFromDeliveryDateTime($dateTime) | |
{ |
<?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 |
<?php | |
/** | |
* Rewrite getShippingAddress to retrieve pakjegemak address if possible. | |
* MDN_AdvancedStock_Model_Sales_Order is a fix for a MDN plugin | |
* | |
* | |
* @author Reindert Vetter <[email protected]> | |
* @copyright 2016 MyParcelNL | |
* @since File available since Release 1.5.0 | |
* @license http://creativecommons.org/licenses/by-nc-nd/3.0/nl/deed.en_US |
app/code/local/Idev/OneStepCheckout/controllers/AjaxController.php | |
Selecteer regel 106 en vervang deze door: | |
->setTemplate('TIG/MyParcel2014/checkout/onepage/shipping_method/available.phtml') |
<li class="clearfix"> | |
<div class="input-box input-address-short"> | |
<label for="billing:street1">Straat <span class="required">*</span></label> | |
<br> | |
<input type="text" title="Straat" name="billing[street][1]" id="billing:street1" value="" class="input-text onestepcheckout-address-line"> | |
<br> | |
</div> | |
<div class="input-box input-address-short"> | |
<label for="billing:street2">Huisnummer <span class="required">*</span></label> | |
<br> |