strangerstudios / pmpro-payfast

Add the South African payment processing service PayFast as a gateway option for Paid Memberships Pro.
https://www.paidmembershipspro.com/add-ons/payfast-payment-gateway/
5 stars 13 forks source link

Level restricted user fields does not save on checkout. #99

Open ipokkel opened 3 weeks ago

ipokkel commented 3 weeks ago

When checking out for a paid level that has user fields restricted to appear for that level, the user field data is not saved. When checking out for a free level that has user fields restricted for that level the fields are saved successfully. If PayFast is set as the main gateway and checkout is processed for a paid level using the Check gateway (via Pay By Check Add On) the restricted level fields are not saved.

In both above paid-level scenarios, the fields that were not restricted to a specific level were saved successfully. Testing was completed using both unrestricted and level-restricted user fields created via settings as well as user fields created via code.

To replicate:

  1. Install, activate, and configure the PayFast Add On.
  2. Create a free level and a paid level.
  3. Create user fields and restrict them to the above levels.
  4. Create user fields that are not restricted to specific levels.
  5. Check out for the free level and verify all user fields were saved.
  6. Check out for the paid level and verify that unrestricted fields were saved and level-restricted user fields were not saved.

Screenshots

2024-08-23_15-04-52

Expected behavior Level-restricted user field data to save on checkout for paid levels.

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

WordPress Environment

Paid Memberships Pro 3.1.3
PayFast Add On 1.5.2
ipokkel commented 3 weeks ago

Moderators Only: Ticket: #589870