wp-pay-gateways / mollie
Mollie driver for the WordPress payment processing library.
Installs: 28 583
Dependents: 6
Suggesters: 0
Security: 0
Stars: 6
Watchers: 5
Forks: 1
Type:wordpress-plugin
Requires
- php: >=8.1
- ext-json: *
- automattic/jetpack-autoloader: ^3.0
- giggsey/libphonenumber-for-php-lite: ^8.13
- justinrainbow/json-schema: ^5.2
- pronamic/wp-http: ^1.2
- pronamic/wp-mollie: ^1.7
- woocommerce/action-scheduler: ^3.8
- wp-pay/core: ^4.23
Requires (Dev)
- overtrue/phplint: ^9.0
- php-coveralls/php-coveralls: ^2.5
- phpmd/phpmd: ^2.7
- phpmetrics/phpmetrics: ^2.8
- phpstan/extension-installer: ^1.3
- phpstan/phpstan: ^1.11
- pronamic/pronamic-cli: ^1.1
- pronamic/wp-coding-standards: ^2.1
- pronamic/wp-documentor: ^1.4
- roots/wordpress: ^6.5
- szepeviktor/phpstan-wordpress: ^1.3
- vimeo/psalm: ^5.24
- wordpress/sqlite-database-integration: ^2.1
- wp-cli/wp-cli: ^2.3
- wp-phpunit/wp-phpunit: ^6.5
- yoast/phpunit-polyfills: ^2.0
- dev-main
- v4.13.0
- v4.12.0
- v4.11.0
- v4.10.3
- v4.10.2
- v4.10.1
- v4.10.0
- v4.9.2
- v4.9.1
- v4.9.0
- v4.8.1
- v4.8.0
- v4.7.11
- v4.7.10
- v4.7.9
- v4.7.8
- v4.7.7
- v4.7.6
- v4.7.5
- v4.7.4
- v4.7.3
- v4.7.2
- v4.7.1
- v4.7.0
- 4.6.0
- 4.5.0
- 4.4.1
- 4.4.0
- 4.3.1
- 4.3.0
- 4.2.0
- 4.1.0
- 4.0.1
- 4.0.0
- 3.1.0
- 3.0.0
- 2.2.4
- 2.2.3
- 2.2.2
- 2.2.1
- 2.2.0
- 2.1.4
- 2.1.3
- 2.1.2
- 2.1.1
- 2.1.0
- 2.0.10
- 2.0.9
- 2.0.8
- 2.0.7
- 2.0.6
- 2.0.5
- 2.0.4
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0.0
- 1.1.15
- 1.1.14
- 1.1.13
- 1.1.12
- 1.1.11
- 1.1.10
- 1.1.9
- 1.1.8
- 1.1.7
- 1.1.6
- 1.1.5
- 1.1.4
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.0
- dev-feature/mollie-connect
This package is auto-updated.
Last update: 2024-12-17 13:45:37 UTC
README
WordPress Pay » Gateway » Mollie
Mollie driver for the WordPress payment processing library.
Table of contents
Status
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.
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
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.
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
WordPress Filters
pronamic_pay_mollie_payment_description
Description
Filters the Mollie payment description.
Usage
\add_filter( 'pronamic_pay_mollie_payment_description', 'your_function_name', 10, 2 );
Parameters
$description
| string
Mollie payment description.
$payment
| Payment Object
The WordPress payment object.
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.
Usage
\add_filter( 'pronamic_pay_mollie_payment_metadata', 'your_function_name', 10, 2 );
Parameters
$metadata
| mixed
Mollie payment metadata.
$payment
| Payment Object
The WordPress payment object.
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.
Usage
\add_filter( 'pronamic_pay_mollie_payment_billing_email', 'your_function_name', 10, 2 );
Parameters
$billing_email
| string|null
The Mollie payment billing email.
$payment
| Payment Object
The WordPress payment object.
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 );
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' ;