2017 © Pedro Peláez
 

library mollie

Mollie driver for the WordPress payment processing library.

image

wp-pay-gateways/mollie

Mollie driver for the WordPress payment processing library.

  • Friday, July 27, 2018
  • by remcotolsma
  • Repository
  • 4 Watchers
  • 4 Stars
  • 5,364 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 24 Versions
  • 1 % Grown

The README.md

WordPress Pay » Gateway » Mollie , (*1)

<, (*2)

h1 align="center">WordPress Pay » Gateway » Mollie, (*3)

Mollie driver for the WordPress payment processing library. , (*4)

Table of contents

Status

Build Status Coverage Status Latest Stable Version Total Downloads Latest Unstable Version License Built with Grunt, (*5)

Webhook URL

Please note that an webhook URL with the host localhost or with the TLD .dev are not allowed, this library will check on WordPress URL's on localhost or on the .dev TLD and will not pass the webhookUrl parameter to Mollie. If you want to test the Mollie webhook URL on an local development environment you could use a service like ngrok., (*6)

Beste Remco,, (*7)

Ja dit is inderdaad het probleem. .dev URL's worden niet ondersteunt. Deze zal ook niet bereikbaar zijn., (*8)

Als je report URL niet publiekelijk bereikbaar is zou je een service als https://ngrok.com kunnen gebruiken. Dit is een programma die je lokaal draait en als proxy werkt. Misschien heb je er iets aan., (*9)

Met vriendelijke groet,, (*10)

Lennard van Gunst Mollie, (*11)

Simulate Requests

Webhook

curl --request POST "https://www.example.com/wp-json/pronamic-pay/mollie/v1/webhook" \
        --data "id=test" \
        --user-agent "Mollie HTTP"

REST API

The Pronamic Pay Mollie gateway can handle Mollie webhook requests via the WordPress REST API., (*12)

Route: /wp-json/pronamic-pay/mollie/v1/webhook, (*13)

The WordPress REST API Mollie webhook endpoint can be tested with for example cURL:, (*14)

curl --request POST --data "id=tr_d0b0E3EA3v" http://pay.test/wp-json/pronamic-pay/mollie/v1/webhook

Legacy webhook URL:, (*15)

curl --request POST --data "id=tr_d0b0E3EA3v" "http://pay.test/?mollie_webhook"

WP-CLI

What is WP-CLI?

For those who have never heard before WP-CLI, here's a brief description extracted from the official website., (*16)

WP-CLI is a set of command-line tools for managing WordPress installations. You can update plugins, set up multisite installs and much more, without using a web browser., (*17)

Commands

$ wp pronamic-pay mollie
usage: wp pronamic-pay mollie customers <command>
   or: wp pronamic-pay mollie organizations <command>

See 'wp help pronamic-pay mollie <command>' for more information on a specific command.

Command pronamic-pay mollie customers synchronize

Synchronize Mollie customers to WordPress., (*18)

$ wp pronamic-pay mollie customers synchronize

Command pronamic-pay mollie customers connect-wp-users

Connect Mollie customers to WordPress users by email., (*19)

$ wp pronamic-pay mollie customers connect-wp-users

WordPress Filters

pronamic_pay_mollie_payment_description

Description

Filters the Mollie payment description., (*20)

Usage

\add_filter( 'pronamic_pay_mollie_payment_description', 'your_function_name', 10, 2 );

Parameters

$description | string, (*21)

Mollie payment description., (*22)

$payment | Payment Object, (*23)

The WordPress payment object., (*24)

Examples

\add_filter( 'pronamic_pay_mollie_payment_description', function( $description, $payment ) {
    $periods = $payment->get_periods();

    if ( null === $periods ) {
        return $description;
    }

    foreach ( $periods as $period ) {
        $phase = $period->get_phase();

        $subscription = $phase->get_subscription();

        $description = \sprintf(
            '%s - %s - %s',
            $subscription->get_description(),
            $period->get_start_date()->format_i18n( 'd-m-Y' ),
            $period->get_end_date()->format_i18n( 'd-m-Y' )
        );
    }

    return $description;
}, 10, 2 );

pronamic_pay_mollie_payment_metadata

Description

Filters the Mollie payment metadata., (*25)

Usage

\add_filter( 'pronamic_pay_mollie_payment_metadata', 'your_function_name', 10, 2 );

Parameters

$metadata | mixed, (*26)

Mollie payment metadata., (*27)

$payment | Payment Object, (*28)

The WordPress payment object., (*29)

Examples

\add_filter( 'pronamic_pay_mollie_payment_metadata', function( $metadata, $payment ) {
    $data = array();

    $customer = $payment->get_customer();

    if ( null !== $customer ) {
        $vat_number = $customer->get_vat_number();

        if ( null !== $vat_number ) {
            $data['vat_number'] = $vat_number->normalized();
        }
    }

    switch ( $payment->get_source() ) {
        case 'easydigitaldownloads':
            $data['edd_order_id'] = $payment->get_source_id();

            break;
        case 'gravityformsideal':
            $data['gf_entry_id'] = $payment->get_source_id();

            break;
    }

    return (object) $data;
}, 10, 2 );

pronamic_pay_mollie_payment_billing_email

Description

Filters the Mollie payment billing email used for bank transfer payment instructions., (*30)

Usage

\add_filter( 'pronamic_pay_mollie_payment_billing_email', 'your_function_name', 10, 2 );

Parameters

$billing_email | string|null, (*31)

The Mollie payment billing email., (*32)

$payment | Payment Object, (*33)

The WordPress payment object., (*34)

Examples

\add_filter( 'pronamic_pay_mollie_payment_billing_email', function( $billing_email, $payment ) {
    $billing_email = 'mollie-billing-email@example.com';

    return $billing_email;
}, 10, 2 );
  • http://www.mollie.nl/

Errors

The customer id is invalid

DELETE
    meta
FROM
    wp_usermeta AS meta
        INNER JOIN
    wp_users AS user
            ON user.ID = user_id
WHERE
    (
        meta_key = '_pronamic_pay_mollie_customer_id'
            OR
        meta_key = '_pronamic_pay_mollie_customer_id_test'
    )
        AND
    user.user_login = 'username'
;

Documentation

The Versions

27/07 2018

dev-develop

dev-develop http://www.wp-pay.org/gateways/mollie/

Mollie driver for the WordPress payment processing library.

  Sources   Download

GPL-3.0+ GPL-3.0-or-later

The Requires

 

The Development Requires

wordpress wp pay gateway mollie pronamic

06/07 2018

dev-master

9999999-dev http://www.wp-pay.org/gateways/mollie/

Mollie driver for the WordPress payment processing library.

  Sources   Download

GPL-3.0+ GPL-3.0-or-later

The Requires

 

The Development Requires

wordpress wp pay gateway mollie pronamic

25/01 2017
14/10 2015

1.1.2

1.1.2.0 http://www.wp-pay.org/gateways/mollie/

Mollie driver for the WordPress payment processing library.

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

wordpress wp pay gateway mollie pronamic

03/03 2015

1.1.1

1.1.1.0 http://www.wp-pay.org/gateways/mollie/

Mollie driver for the WordPress payment processing library.

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

wordpress wp pay gateway mollie pronamic

16/02 2015

1.1.0

1.1.0.0 http://www.wp-pay.org/gateways/mollie/

Mollie driver for the WordPress payment processing library.

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

wordpress wp pay gateway mollie pronamic

19/01 2015

1.0.0

1.0.0.0 http://www.wp-pay.org/gateways/mollie/

Mollie driver for the WordPress payment processing library.

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

wordpress wp pay gateway mollie pronamic