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™

Custom Payment Gateway

s2Member Plugin. A Membership plugin for WordPress®.

Custom Payment Gateway

Postby bitphire » June 15th, 2011, 10:35 pm

I'm curious on how easy or hard it will be to add a non-supported gateway into the free version of s2member. My client is already using Quickbooks merchant services with intuit. I have an app written to handle payments and such. I'm just stuck at finding a membership plugin that I can implement this into.

Basically my little app just creates a shortcode to display the Credit Card form and then submit the the info and get the response in an array. I haven't done the parsing yet as I wrote this earlier just to see if I could get it working in a reasonable amount of time. Trying to avoid using paypal since he's already taking payments at his office and just wants to add online payments for extra perks.

Thanks for any info.
Steven

Edit:
I just found this, so going to give a go and see what I can do.
Yes, this is something you would need to seek assistance with, from a third party. There are currently no immediate plans to support QuickBooks Merchant Services from our end. However, a good developer should be able to use s2Member's Proxy IPN URL, with the instructions provided in your Dashboard. Please see: Dashboard -> s2Member -> PayPal Options -> IPN Integration -> Proxy IPN Key. I recommend s2Member's Proxy IPN URL as the easiest way to integrate other unsupported Payment Gateways.
User avatar
bitphire
Registered User
Registered User
 
Posts: 3
Joined: June 15, 2011

Re: Custom Payment Gateway

Postby Cristián Lávaque » June 15th, 2011, 10:54 pm

Yeah, that'd be the best way to try first. This thread is related to that viewtopic.php?f=36&t=3154
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Custom Payment Gateway

Postby bitphire » June 17th, 2011, 11:02 pm

I can't seem to figure out what I need to do with this IPN Proxy URL.
Code: Select all
?s2member_paypal_notify=1&s2member_paypal_proxy=qbms&s2member_paypal_proxy_verification=xxxxxxxxxxxxxxxxxxxxxx


Using this link: https://cms.paypal.com/cgi-bin/marketingweb?cmd=_render-content&content_ID=developer/e_howto_admin_IPNIntro#id091F0M006Y4 I found these extra vars:
Code: Select all
&level=1&mc_gross=69.99&protection_eligibility=Eligible&address_status=confirmed&payer_id=LPLWNMTBWMFAY&tax=0.00&address_street=1+Main+St&payment_date=20%3A12%3A59+Jan+13%2C+2009+PST&payment_status=Completed&charset=windows-1252&address_zip=95131&first_name=Test&mc_fee=0.00&address_country_code=US&address_name=Test+User&notify_version=2.6&custom=test.mydomain.net&payer_status=verified&address_country=United+States&address_city=San+Jose&quantity=1&verify_sign=AtkOfCXbDm2hu0ZELryHFjY-Vb7PAUvS6nMXgysbElEn9v-1XcmSoGtf&payer_email=x%40x.com&txn_id=61E67681CH3238416&payment_type=instant&last_name=User&address_state=CA&receiver_email=admin%40mydomain.net&payment_fee=0.00&receiver_id=S8XGHLYDW9T3S&txn_type=express_checkout&item_name=&mc_currency=USD&item_number=&residence_country=US&test_ipn=1&handling_amount=0.00&transaction_subject=&payment_gross=69.99&shipping=0.00


I've never dealt with IPN before. This is what I believe should happen.

Customer uses my custom gateway. I verify payment went through and all that.
Once payment goes through I post an IPN to s2member. s2member will echo that post exactly the same back to my script. I then should post a verified? (according to the paypal link above) Once s2member receives that the IPN is verified I assume it goes through and updates the database or what ever normally would happen on a successful paypal payment.

I'm confused on trying to figure out what s2member NEEDS on top of the custom and level variables in the IPN post. There seems to be a lot of options so trying to figure out the bare minimum needed.
2nd, is I'm a little lost on where to post to. Just to my site url?

Thanks for any help.
Steven
User avatar
bitphire
Registered User
Registered User
 
Posts: 3
Joined: June 15, 2011

Re: Custom Payment Gateway

Postby Cristián Lávaque » June 18th, 2011, 12:31 am

Steven, in this other thread Jason explains what is needed for a button created over at PayPal to work with s2Member. viewtopic.php?f=36&t=309

I hope that helps.
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Custom Payment Gateway

Postby bitphire » June 22nd, 2011, 10:32 pm

Thank you for the help so far Cristián. I need to get this rolling pretty quick now and haven't been able to figure out the whole IPN Proxy thing yet. So, my plan now is to just set the role to s2member_level1 on a successful payment. I'll also use the EOT to end membership and handle the payments myself.

I'm not even sure Intuit does any type of IPN for credit card payments (only found it for bank transfers) and so I believe I would end up having to manage the payments like this anyway.

I am kind of curious if there is anything I am missing when manually setting up a new customer. Changing the role seems to work just fine and after doing so and adding a EOT date/time it stops access as I would expect.

A little off topic, my homepage is the default blog (showing the latest posts). I'm curious as to why I can see stuff that should be level 1 only. I set the categories of the posts accordingly and if I click on the post link to view that specific post or click on the category I get redirected to the registration page as you would expect. Do I have to have a static homepage or is there something I'm missing so that it does not show the member only posts and just the public posts on the homepage blog.

Edit: It appears that even clicking on the public posts send me to the registration page. I need to check my settings out and read a little more on this. Been so occupied with the IPN Proxy and other work I didn't notice.
User avatar
bitphire
Registered User
Registered User
 
Posts: 3
Joined: June 15, 2011

Re: Custom Payment Gateway

Postby Cristián Lávaque » June 22nd, 2011, 11:24 pm

Role and EOT are fine to manage the access of the user.

About the other question, this video may help http://www.s2member.com/content-restric ... ble-video/
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010


Return to s2Member Plugin

Who is online

Users browsing this forum: Google [Bot] and 2 guests

cron