MyBB Community Forums

Full Version: Setup with PayPal
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

I added 2 columns in MyBB user table: subscription_start & subscription_end

I want to allow registered users to purchase (via paypal ByNow button) time based subscription of a software I made. Upon success,  subscription_start & subscription_end fields in MyBB user table should be populated from Now() to Now()+30 days.

I was wondering how to accomplish this.
After a bit of searching found the solution.
Sharing here in case if someone else needed this.

PayPal Integration Wizard offers solution for different type of checkouts and its easy to get working solution which then you can modify it to suit your needs. All I had to do is: write a function that adds subscription into user's account if payment was processed successfully and display message.