Page 1 of 1

Per access payment and notification by custom code

PostPosted: September 23rd, 2010, 1:40 pm
by ashfame
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!

Re: Per access payment and notification by custom code

PostPosted: September 23rd, 2010, 3:33 pm
by ashfame
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?

Re: Per access payment and notification by custom code

PostPosted: September 28th, 2010, 7:34 am
by ashfame
Never mind! Got it done

Re: Per access payment and notification by custom code

PostPosted: October 2nd, 2010, 12:08 pm
by Elizabeth
Closed