craftcms / commerce-mollie

Mollie payment gateway for Craft Commerce.
https://plugins.craftcms.com/commerce-mollie
MIT License
5 stars 10 forks source link

Error: 422 - 'familyName' field is missing #44

Closed SanboKyo closed 2 years ago

SanboKyo commented 2 years ago

I use the plugin with Mollie in test mode.

When I fire the commerce/payments/pay I get an error (debug toolbar)

Client error: `POST https://api.mollie.com/v2/orders` resulted in a `422 Unprocessable Entity` response:
{"status":422,"title":"Unprocessable Entity","detail":"The 'familyName' field is missing","field":"billingAddress.family (truncated...)

Additional info

SanboKyo commented 2 years ago

In Craft 4 users now have a single “Full Name” field, rather than “First Name” and “Last Name” separately ... and there was no last/family name.