Community Support Forums — WordPress® ( Users Helping Users ) — 2012-01-22T23:46:20-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=16833 2012-01-22T23:46:20-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16833&p=61251#p61251 <![CDATA[Re: How to verify if transaction No. exists?]]> viewtopic.php?f=4&t=17049&p=61754#p61754

Statistics: Posted by angelazou — January 22nd, 2012, 11:46 pm


]]>
2012-01-22T18:11:54-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16833&p=61221#p61221 <![CDATA[Re: How to verify if transaction No. exists?]]>
Are you selling the membership from your main blog?

Could you please enable logging and, after a test purchase with this problem, post here the related log entries, x'ing out any private information? WP Admin -> s2Member -> AliPay Options -> Account Details -> Enable Logging

Did you double check your AliPay integration? WP Admin -> s2Member -> AliPay Options

Statistics: Posted by Cristián Lávaque — January 22nd, 2012, 6:11 pm


]]>
2012-01-21T23:41:55-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16833&p=61200#p61200 <![CDATA[Re: How to verify if transaction No. exists?]]>
I've finally reached the testing phase for s2member, and I'm testing the Alipay gateway with the following code:
Code:
[s2Member-Pro-AliPay-Button level="1" ccaps="" desc="房屋信息" custom="wanda.example.com|rent" ra="0.01" rp="1" rt="Y" image="default" output="anchor" /]


It went very successful, I was able to make the purchase, return to the site (btw, I would like to translate that page specifically for my Chinese users, how can I do it without translating the entire S2member plugin?). The user signs up, and I got the purchase confirmation email.
However, I didn't find anything else. I didn't get the username/password email. Nor did I find any trace of that transaction + user anywhere in the wordpress database, specifically, the user and user_meta table.

I'm running a multisite installation of wordpress, and I have set up the multisite patch. If you need any other information, please let me know.

Statistics: Posted by angelazou — January 21st, 2012, 11:41 pm


]]>
2012-01-17T21:58:32-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16833&p=60867#p60867 <![CDATA[Re: How to verify if transaction No. exists?]]> Statistics: Posted by angelazou — January 17th, 2012, 9:58 pm


]]>
2012-01-17T13:40:44-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16833&p=60829#p60829 <![CDATA[Re: How to verify if transaction No. exists?]]> meta_key called something like wp_s2member_subscr_id.

Statistics: Posted by Raam Dev — January 17th, 2012, 1:40 pm


]]>
2012-01-17T04:13:17-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16833&p=60800#p60800 <![CDATA[Re: How to verify if transaction No. exists?]]> Statistics: Posted by angelazou — January 17th, 2012, 4:13 am


]]>
2012-01-17T00:22:16-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16833&p=60792#p60792 <![CDATA[Re: How to verify if transaction No. exists?]]> WP Admin -> s2Member -> General Options -> Registration / Profile Fields & Options.

You could also manually populate that field if necessary using a script attached to an API Notification (WP Admin -> s2Member -> API / Notifications.

Statistics: Posted by Raam Dev — January 17th, 2012, 12:22 am


]]>
2012-01-17T00:14:12-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16833&p=60788#p60788 <![CDATA[Re: How to verify if transaction No. exists?]]> Statistics: Posted by angelazou — January 17th, 2012, 12:14 am


]]>
2012-01-16T23:59:28-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16833&p=60784#p60784 <![CDATA[Re: How to verify if transaction No. exists?]]> Statistics: Posted by Raam Dev — January 16th, 2012, 11:59 pm


]]>
2012-01-16T23:30:30-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16833&p=60777#p60777 <![CDATA[Re: How to verify if transaction No. exists?]]>
Angela

Statistics: Posted by angelazou — January 16th, 2012, 11:30 pm


]]>
2012-01-16T22:59:08-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16833&p=60764#p60764 <![CDATA[Re: How to verify if transaction No. exists?]]>
angelazou wrote:
I'm selling a page that contains a form to generate content. I'm making the link available for 1 year, but I only want my customer to be able to use it once. Can I do that with S2member?


The s2Member Specific Post/Page access links are based on a time range, not number of access times. Even if you configured something to only allow access once, that could cause a lot of potential problems (what happens if the user clicks the link but doesn't use the form to generate content and decides to come back later to use the link?).

An alternative solution would be to check if the user has ever successfully generated to the content with the page.

If the user isn't logging in with an account, then the easiest way to do that would be to set a cookie with PHP after the user has generated the content. Then, if he comes back to the page a second time, you can check if the cookie exists and show a message saying access is denied.

Of course that's not a foolproof solution, as the user only needs to clear his cookies to gain access again.

But back to the original problem: this isn't the best way to do it. If you really want to limit access, the user should be logging in with an account that you can control.

angelazou wrote:
How can I verify if a particular S2member transaction number exists (and has a certain description)? I'm thinking, if there is no way I can do the above, I can configure the form to have a transaction number field where the user must enter his/her transaction number in order to submit the form, but I will also need to check if this number exists and belongs to a payment to this product only. How can I do that?


You'll need to search the database and interface with the data that way. You can find the s2Member Transaction IDs in the wp_usermeta table. Use phpMyAdmin and do a search WHERE `meta_key` LIKE '%s2member%'.

Statistics: Posted by Raam Dev — January 16th, 2012, 10:59 pm


]]>
2012-01-16T21:27:25-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16833&p=60737#p60737 <![CDATA[Re: How to verify if transaction No. exists?]]> Statistics: Posted by angelazou — January 16th, 2012, 9:27 pm


]]>
2012-01-16T01:30:51-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16833&p=60637#p60637 <![CDATA[Re: How to verify if transaction No. exists?]]> Statistics: Posted by angelazou — January 16th, 2012, 1:30 am


]]>
2012-01-14T11:47:43-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16833&p=60511#p60511 <![CDATA[Re: How to verify if transaction No. exists?]]> Statistics: Posted by angelazou — January 14th, 2012, 11:47 am


]]>
2012-01-13T03:44:26-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16833&p=60418#p60418 <![CDATA[[Solved] How to verify if transaction No. exists?]]>
I'm selling a page that contains a form to generate content. I'm making the link available for 1 year, but I only want my customer to be able to use it once. Can I do that with S2member?

Angela

PS: How can I verify if a particular S2member transaction number exists (and has a certain description)? I'm thinking, if there is no way I can do the above, I can configure the form to have a transaction number field where the user must enter his/her transaction number in order to submit the form, but I will also need to check if this number exists and belongs to a payment to this product only. How can I do that?

Statistics: Posted by angelazou — January 13th, 2012, 3:44 am


]]>