paid-memberships-pro
paid-memberships-pro copied to clipboard
Stripe Card Details default to last order in email templates
Describe the bug When updating your card details and a renewal is processed, the invoice's expiration date and last 4 digits reference the last order or most recent invoice. This results in incorrect data being sent to the member.
To Reproduce Steps to reproduce the behavior:
- Sign up for a membership using Stripe (recurring level)
- Update your card details on the billing page
- Wait for the renewal to come through
- The renewals card details will reflect the first card and not the updated card
Screenshots Available at https://www.paidmembershipspro.com/forums/topic/credit-card-shortcodes-not-populating-in-emails-with-current-info/ (mods only)
Expected behavior The latest card details should be present in the invoice and not the first set of card details that were originally used. Discussed with David, We should maybe pull that info from user meta instead
Isolating the problem (mark completed items with an [x]):
- [x] I have deactivated other plugins and confirmed this bug occurs when only Paid Memberships Pro plugin is active.
- [x] This bug happens with a default WordPress theme active, or Memberlite.
- [x] I can reproduce this bug consistently using the steps above.
WordPress Environment PMPro 2.7.2