PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

Per access payment and notification by custom code

s2Member Plugin. A Membership plugin for WordPress®.

Per access payment and notification by custom code

Postby ashfame » September 23rd, 2010, 1:40 pm

Hi Jason,

I must say you have built up an extremely powerful plugin but I am having a hard time to get it work exactly how I want.

I have built a tool which works using ajax on a particular WordPress page and I want to have the payment processed on it. I plan to check for user levels and then either bypass them (Level 2 or higher) or charge them per access fee (less than Level 2).

The problem is that I can't leave the page in between for payment, so I need something like opening a new page for payments, processing the payment over there (or bypass it according to the Level) and then signal the payment done and I can complete the execution of my ajax tool at the first place. And I don't want the user to go to the registration page after payment, I just want pay and access the result

I am having a hard time to figure out how can I keep track of payments which are initiated from my tool only and not the rest of the site. I plan to do something like opening a new window for payment and the original page will keep checking of the signal for payment completion and when the new page is done with payment, I can generate that signal.

Any pointers on how can I use the S2Member API will be great!
User avatar
ashfame
Registered User
Registered User
 
Posts: 3
Joined: September 23, 2010

Re: Per access payment and notification by custom code

Postby ashfame » September 23rd, 2010, 3:33 pm

I tried following your video for Notifications API but it looks like the API is not working at my end.
I setup a simple php file which will add the details to the database and specified that in the settings.

When I make a payment in sandbox, the script is not executed, database shows no change but if I just simply load the script it in the browser, then it adds the values in the database.

Any ideas what could be messing around?
User avatar
ashfame
Registered User
Registered User
 
Posts: 3
Joined: September 23, 2010

Re: Per access payment and notification by custom code

Postby ashfame » September 28th, 2010, 7:34 am

Never mind! Got it done
User avatar
ashfame
Registered User
Registered User
 
Posts: 3
Joined: September 23, 2010

Re: Per access payment and notification by custom code

Postby Elizabeth » October 2nd, 2010, 12:08 pm

Closed
User avatar
Elizabeth
Moderator
Moderator
 
Posts: 160
Joined: May 12, 2010


Return to s2Member Plugin

Who is online

Users browsing this forum: No registered users and 2 guests

cron