strangerstudios / pmpro-add-name-to-checkout

Adds “First Name” and “Last Name” fields to the “Account Information” section of the Membership Checkout page when using Paid Memberships Pro.
https://www.paidmembershipspro.com/add-ons/add-first-last-name-to-checkout/
17 stars 23 forks source link

SESSION vars should be cleaned up after checkout #31

Closed mircobabini closed 1 year ago

mircobabini commented 2 years ago

Describe the bug Since we don't clean up SESSION vars after checkout, I can be logged in with some user first/last name, while having different first/last name autocompiled in checkout fields because of old data in SESSION vars.

To Reproduce Steps to reproduce the behavior:

  1. Install this addon
  2. Switch main gateway to paypal and perform a checkout like "Mirco Babini"
  3. Logout
  4. Now log in as another user (Andrea in my case).
  5. Now you are logged in like "Andrea" but checkout fields are autocompiled for Mirco.

Screenshots

Screenshot 2022-04-16 at 17 04 03

Isolating the problem (mark completed items with an [x]):