pronamic / wp-pronamic-pay-mollie

Mollie driver for the WordPress payment processing library.
http://www.wp-pay.org/gateways/mollie/
6 stars 1 forks source link

Add user agent string in requests to Mollie #13

Closed remcotolsma closed 1 year ago

remcotolsma commented 1 year ago

For partner commission we may need to add a user agent string to the requests to Mollie.

https://docs.mollie.com/integration-partners/user-agent-strings

Should probably be something like this:

PronamicPay/9.0.0 WordPress/6.0.2

https://developer.wordpress.org/reference/classes/WP_Http/request/

Default 'WordPress/' . get_bloginfo( 'version' ) . '; ' . get_bloginfo( 'url' ).

https://github.com/WordPress/WordPress/blob/f9db66d504fc72942515f6c0ed2b63aee7cef876/wp-includes/class-wp-http.php#L183-L192

cc @LeoOosterloo

remcotolsma commented 1 year ago

Added, user agent example:

PronamicPay/9.1.0 WordPress/6.0.2;https://www.pronamic.eu/