mollie / mollie-api-php

Mollie API client for PHP
http://www.mollie.com
BSD 2-Clause "Simplified" License
552 stars 191 forks source link

Paypal First Name NOT_PROVIDED #147

Closed MichaelvanLohuizen closed 6 years ago

MichaelvanLohuizen commented 6 years ago

Problem: When purchasing an item as a guest through Paypal with Woocommerce (3.3.1) & Mollie Payments for WooCommerce (2.9.0) the name is not shown in Paypal.

Instead the First Name field on Paypal is prefilled with NOT_PROVIDED. Address fields however are prefilled correctly.

Testing On further testing it seems that:

When logged in and changing the checkout fields to those of the guest, the changed address fields are sent to paypal, the name fields however remain unchanged on Paypal.

Expected behaviour I would expect the first name and surname fields filled in during checkout to always be sent to Paypal, just like the address fields (and other relevant form fields) are.

schermafbeelding 2018-02-17 om 16 15 58

willemstuursma commented 6 years ago

Thanks for reporting this, we're going to look into a solution and will report back here.

Smitsel commented 6 years ago

Hi @MichaelvanLohuizen

I've been looking into the issue. The NOT_PROVIDED is being filled in when there is no API customer connected to the payment. The NOT_PROVIDED is not pretty, so we decided to remove this soon.

The fields not being prefilled is an other issue. The payment made should be connected to an API customer. As seen in the PHP Client example: https://github.com/mollie/mollie-api-php/blob/master/examples/12-new-customer-payment.php

If its connected to an API customer and the shipping information is also provided, then it will be pre filled correctly. Can you confirm this?

Smitsel commented 6 years ago

Any update on this @MichaelvanLohuizen ?

Smitsel commented 6 years ago

Closing issue due to inactivity.