Pass the profile type to the buildCustomerProfile function

Created on 24 March 2024, 9 months ago
Updated 31 May 2024, 7 months ago

Problem/Motivation

the buildCustomerProfile function is called for both billing and shipping profiles, but the profile type is hard-coded to customer.

Proposed resolution

We should pass the profile type to the function so that those profiles get the right type.

🐛 Bug report
Status

Active

Version

1.0

Component

PayPal Checkout

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @tonytheferg
  • 🇮🇱Israel jsacksick

    hm.. now that I'm looking at this code, I think a mistake was made, the profile uid should be set to 0, since this is creating billing/shipping profiles which should technically be owned by the order and/or the shipment.

Production build 0.71.5 2024