PDA

View Full Version : Clickbank API Membership Payment...


LilyVO30
01-19-2012, 04:30 AM
Sooo...

I have searched everywhere and can't find an easy way to set up my paid vbulletin users with clickbank sales. Which leads to one conclusion...I need to make an api that sends the order information to vbulletin and registers them on my website.

That being said... I am learning as I go but really am in over my head

Questions for you

1. Clickbank has an order api https://api.clickbank.com/rest/1.2/orders (GET /1.2/orders/{receipt} sounds perfect) is this half of the solution? Does this mean that if I implement this that I can reasonably get the users information and now I just have to POST it somewhere? (Would be cool if I could PUT it to vbulletin also to check for users already registered and upgrade them).

2. If that is the case what do you even do with an api to implement it?

****I know I am over my head, and that these questions are probably basic but I really don't have a choice unless I manually add my paid members in, which I don't want to do.


PLEASE PLEASE PLEASE Help!!! I need some sort of direction. THANK YOU!!!:D

--------------- Added 1327012157 at 1327012157 ---------------

Anyone??? I am not necessarily looking for the perfect answer just at least an educated push in the right direction.

kh99
01-22-2012, 04:09 PM
I don't have any experience adding payment api, but I think I understand the basics - go to "Add New Payment API" under "Paid Subscriptions", enter your info. If you enter, for example, clickbank in the "Classname" field, then you need to create a file in includes/paymentapi called class_clickbank.php. Probably the thing to do is copy one of the other "class_" files and replace it's class name (ccbill, for example) with clickbank everywhere it appears in the code. Then the hard part, you need code to implement your api.

Anyway, hopefully that's some help and not just the obvious parts :).

LilyVO30
01-23-2012, 03:51 AM
kh99,

Thanks for writing to me, I appreciate the insight, and it wasn't all obvious. I've finally accepted that this is just way over my head, getting some help and hopefully will be able to get this implemented by the end of the month. It's such an obvious combination that I can't why it hasn't been added already.

Hope you are having a great weekend.

Thanks again,

Lily

Ted S
01-23-2012, 06:12 AM
Payment APIs can be fairly tricky to implement as you have to match up how they authenticate with vBulletin's needs and while the code is built to be modular on VB's end, even a small difference in how the API functions can become a real pain... like if they don't report back actively when a sub fails.

The process [what you have to build hooks to make work, vBulletin handles the interface]:

1- The user submits payment either through your site or by being passed off to a third party payment page
2- Automatically reading the response back and updating appropriately. This seems instant but it's actually a call after everything is confirmed / denied.
3- Updates to charge again / report back a failed charge for recurring subs. Not required but manual renewal is never 100% so doing it is generally smart.

From the page you linked too it appears you can do the second part [get notified when a subscription is approved] but will need a paypal-like setup to create an unapproved subscription, jump the user to their payment page, and then back to you when they finish or abort. It's not terrible but it's also not as simple as mirroring a seamless provider's to use another set of API calls.

If you can't hack php decently you'll need help... or roll up your sleeves and keep changing things until you start to get it.

LilyVO30
01-23-2012, 02:51 PM
Ted,

Thanks for the response, it's great to get some insight from people who have an understanding of vbulletin and programming. Right now I am going through lynda.com php courses which will give me a lot of insight into php, I'm a quick learner, it's the searching desperately for the answer that gets to me. Along with getting some help from a programmer I'm hopeful to make this work :-).

Hope you have a great day.

Thanks,

Lily