Skip to content

shippingAddress uses billing name instead of shipping name #1341

@fuchsbart

Description

@fuchsbart

https://github.com/mollie/PrestaShop/blame/36b0c33cf2248df0c539d5652e9e492806518651/src/DTO/PaymentData.php#L463-L465

In PaymentData.php, the shippingAddress.givenName and shippingAddress.familyName fields incorrectly reference getBillingAddress() instead of getShippingAddress():

'shippingAddress' => [
'givenName' => $this->cleanUpInput($this->getBillingAddress()->firstname),
'familyName' => $this->cleanUpInput($this->getBillingAddress()->lastname),

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions