Skip to content

Instantly share code, notes, and snippets.

Introduction

For how to handle the exceptions correctly, see Exceptions.

Show

To load more information see Extra Information.

use \PlugAndPay\Sdk\Service\Client;
use \PlugAndPay\Sdk\Service\OrderService;

Introduction

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.

Requirements

  • The Plug&Pay SDK works with PHP version >= 7.4.
@reindert-vetter
reindert-vetter / retention-response.json
Last active July 20, 2022 11:56
Retention response /v2/statistics/retention?from=2020-01&until=2020-04
[
{
"cohort": "2020-01",
"after": 0,
"count": 100,
"rate": "100.0",
"mutation_rate": null
},
{
"cohort": "2020-01",

⌘+1

Navigate in project directories image Tool Windows | Project image

⌘+2

Navigate to method image Main Menu | Navigate | File Structure

{
"id": "1",
"billing_address": {
"name": ""
"street": ""
},
"created_at": "2021-01-01 12:00:00",
"custom_fields": null,
"customer": [
"email": "agustina@example.com",
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 <reindert@myparcel.nl>
* @copyright MyParcel
@reindert-vetter
reindert-vetter / Fix conflict Emagicone_Mobassistantconnector_Model_Order
Created June 16, 2017 14:16
app/code/community/TIG/MyParcel2014/Model/Sales/Order.php
<?php
/**
* Rewrite getShippingAddress to retrieve pakjegemak address if possible.
* MDN_AdvancedStock_Model_Sales_Order is a fix for a MDN plugin
*
*
* @author Reindert Vetter <info@myparcel.nl>
* @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>