Function to upgrade?

This topic contains 1 reply and 2 voices, and was last updated by Tareq Hasan 11 years ago
Viewing 1 Posts - 1 through 1 (of 1 total)
Author Posts
April 1, 2013 at 7:03 am 1699
Tareq Hasan Hello, I am going to be experimenting with creating a custom gateway, but I've brainstormed a backup in case I cannot figure that out, but the backup would require the functionality to run a function to upgrade a user. Is there a built in function that can be provided the user id and pack id and upgrade a user manually through a custom PHP script?
April 1, 2013 at 8:44 am 1700
Tareq Hasan Tareq Hasan

You can use the member function new_subscription of WPUF_Subscription class to upgrade a user package. It accepts the user_id and pack_id as parameter.

Viewing 1 Posts - 1 through 1 (of 1 total)