I’m working on getting gift memberships working on my site - it’s really the last hurdle to get S2Member going. I’m an S2Member Pro user. I’ve setup the purchase page using the following shortcode:
[s2Member-Pro-Stripe-Form sp=“1” ids=“6802” exp=“2” desc=“Gift membership” cc=“USD” ra=“0.50” coupon="" accept_coupons=“0” default_country_code=“US” captcha=“0” /]
And the specific page code is the following:
[s2Member-Gift-Codes discount=“100%” quantity=“1” /]
When I make the purchase it gives me a link to follow directly on the page as well as in an email. The links take me to the page that generates the gift code.
There are two issues:
-
The link I get on the page is different than the one sent in email - this results in 2 different gift codes getting generated (!!!) - This happens even if I’m not logged in.
-
If I take either of these 2 links and change the last character, it will also generate a new code. (!!!)
So basically, with a single purchase of a gift membership you can generate a bunch of usable codes. This is clearly not acceptable.
Here’s an example of one of these links:
https://[mysite]/gift-membership/?s2member_sp_access=ZGVmNTAyMDA2YWQxNzU3YzExZTBlYTAwNHDlNDI1M2FiMjgxZjVlYzZkMDNjMzIyYzc3YjcyMDJlZDMxNzdkYmY1YjMyZGY3OWI3ZGYwZDk5YWVmYjRjNDM4NzQ2YWI0ZmY2ZDY4NjY5MGRjZjQzNDU4NDFmZDZmNWYzOTUwZTBkODRhYzYwODkxYWU1YTFhN2JkMTZlYjU0ZWI4ZdfSHmE0OWVmNDAwMzA2YzcwYzFiNDI3MTZiZDg1NGJlNTljZGJmZGRlZjY5ZTkxNDc5OGNiMjlhOWEzMWUzN2Q2NmE3Y2ZiZTljZWE0YmIxZTg3Mzc1MTBmYTk1NjZiN2U5YmRkMGZjOGVkZDg
Changing the “g” at the end to an “h”, or any other letter coming after “g” will generate new gift codes.
I’m hoping I’m doing something wrong.
Can anyone help here?
Thanks!
Shawn