gocodebox / gocodebox/lifterlms

Unable to update payment method for an order if the access plan has been deleted

Open
#2,801 0 comments 0 reactions 1 assignee Assigned to @brianhogg View on GitHub
Dominant language
PHP
Stars
212
Forks
140
Avg merge
2d 14h
Merged PRs (30d)
19

Description

### Reproduction Steps

1. For an order with a recurring payment, delete the access plan originally used to place that order. Ensure it's deleted in the database.
2. As the user who placed the order, go to the order details, and attempt to update the payment method.

### Expected Behavior

Button appears to update the payment method.

### Actual Behavior

No button appears.

### Tech Notes

There's a check to see if the access plan exists on the `form-switch-source.php` template. If the plan doesn't exist nothing is shown. However, since all the details are stored on the order itself (ie. the payment amount and frequency), I don't think there's a reason to check or need the access plan to exist.

This issue has be recreated:
+ [ ] Locally
+ [ ] On a staging site
+ [ ] On a production website
+ [ ] With only LifterLMS and a default theme

HS-249092

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.