Skip to content

[8.0] Missing fields when calling create-payment #1008

Open
@joostdebruijn

Description

@joostdebruijn

After upgrading to v8.0.0, the checkout doesn't work anymore. We don't ask our customers to provide a billing or shipping address and that seems to be an issue.

The debug logging is showing the following for an iDeal-payment, but it also happens with other payment methods:


2025-03-29T03:59:31+00:00 Foutopsporing ideal: Start process_payment for order 15029  
Aanvullende context
2025-03-29T03:59:31+00:00 Foutopsporing Creating payment object: type Payment, creating a Payment.
2025-03-29T03:59:31+00:00 Foutopsporing  Order 15029 returnUrl: https://[redacted]/afrekenen/order-received/15029/?key=wc_order_[redacted]&order_id=15029&filter_flag=onMollieReturn  
Aanvullende context
2025-03-29T03:59:31+00:00 Foutopsporing  Order 15029 webhookUrl: https://[redacted]/wc-api/mollie_wc_gateway_ideal?order_id=15029&key=wc_order_[redacted]&filter_flag  
Aanvullende context
2025-03-29T03:59:31+00:00 Foutopsporing {
    "amount": {
        "currency": "EUR",
        "value": "5.00"
    },
    "description": "Bestelling 15029",
    "redirectUrl": "https://[redacted]/afrekenen/order-received/15029/?key=wc_order_[redacted]&order_id=15029&filter_flag=onMollieReturn",
    "webhookUrl": "https://[redacted]/wc-api/mollie_wc_gateway_ideal?order_id=15029&key=wc_order_[redacted]&filter_flag",
    "method": "ideal",
    "issuer": "",
    "locale": "nl_NL",
    "dueDate": "",
    "metadata": {
        "order_id": 15029
    }
}
2025-03-29T03:59:31+00:00 Foutopsporing [2025-03-29T03:59:31+0000] Error executing API call (422: Unprocessable Entity): The following fields of the billing address are missing: streetAndNumber, postalCode, city. Documentation: https://docs.mollie.com/reference/v2/payments-api/create-payment. Request body: {"status":422,"title":"Unprocessable Entity","detail":"The following fields of the billing address are missing: streetAndNumber, postalCode, city","field":"billingAddress","_links":{"documentation":{"href":"https://docs.mollie.com/reference/v2/payments-api/create-payment","type":"text/html"}}}. Field: billingAddress
2025-03-29T03:59:31+00:00 Foutopsporing ideal: Failed to create Mollie payment object for order 15029: [2025-03-29T03:59:31+0000] Error executing API call (422: Unprocessable Entity): The following fields of the billing address are missing: streetAndNumber, postalCode, city. Documentation: https://docs.mollie.com/reference/v2/payments-api/create-payment. Request body: {"status":422,"title":"Unprocessable Entity","detail":"The following fields of the billing address are missing: streetAndNumber, postalCode, city","field":"billingAddress","_links":{"documentation":{"href":"https://docs.mollie.com/reference/v2/payments-api/create-payment","type":"text/html"}}}. Field: billingAddress

After downgrading to v7.10 there is no problem anymore.

It looks similar to #629, however the API-method used is the Payments API.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions