Mollie driver for the WordPress payment processing library.

2.1.2 2020-04-03 09:44 UTC

README

Mollie driver for the WordPress payment processing library.

Build Status Coverage Status Latest Stable Version Total Downloads Latest Unstable Version License Built with Grunt

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 paramater to Mollie. If you want to test the Mollie webhook URL on an local development environment you could use a service like ngrok.

Beste Remco,

Ja dit is inderdaad het probleem. .dev URL's worden niet ondersteunt. Deze zal ook niet bereikbaar zijn.

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.

Met vriendelijke groet,

Lennard van Gunst Mollie

REST API

The Pronamic Pay Mollie gateway can handle Mollie webhook requests via the WordPress REST API.

Route: /wp-json/pronamic-pay/mollie/v1/webhook

The WordPress REST API Mollie webhook endpoint can be tested with for example cURL:

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

Legacy webhook URL:

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.

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.

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.

$ wp pronamic-pay mollie customers synchronize

Command pronamic-pay mollie customers connect-wp-users

Connect Mollie customers to WordPress users by email.

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

Links

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