Do not set billing_profile to NULL instead set it to the existing billing_profile if there is one

Created on 18 November 2022, over 2 years ago
Updated 12 July 2024, 9 months ago

Problem/Motivation

As it is today \Drupal\commerce_recurring::refreshOrder() assumes that if no payment method is set on the Subscription, then it should NULL the billing_profile on the recurring order. This causes issues if the subscription type attaches a billing_profile (in the case of invoiced subscriptions).

Steps to reproduce

Proposed resolution

Instead of defaulting to NULL let's just default back to the $order->getBillingProfile() instead.

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

🇺🇸United States grndlvl

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024