├── Profile Based Pricing ├── .DS_Store ├── img │ ├── set.png │ ├── .DS_Store │ ├── set-s.png │ ├── profileimg.png │ ├── ajax-loader1.gif │ └── icon.svg ├── lib │ ├── .DS_Store │ ├── Constants.php │ ├── actions │ │ ├── Redirect.php │ │ ├── Purchase.php │ │ └── Handler.php │ ├── Utils.php │ └── APIHelper.php ├── webcontent │ ├── .DS_Store │ ├── js │ │ ├── selectbox.js │ │ ├── script.js │ │ └── jquery-3.2.1.min.js │ └── css │ │ └── style.css ├── config │ └── setup.ini ├── api │ ├── CancelSubscriptionMirror.php │ ├── AddSubscriptionMirror.php │ └── UpgradeSubscriptionMirror.php └── index.php └── README.md /Profile Based Pricing/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoho/ThirdPartySubscription/master/Profile Based Pricing/.DS_Store -------------------------------------------------------------------------------- /Profile Based Pricing/img/set.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoho/ThirdPartySubscription/master/Profile Based Pricing/img/set.png -------------------------------------------------------------------------------- /Profile Based Pricing/img/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoho/ThirdPartySubscription/master/Profile Based Pricing/img/.DS_Store -------------------------------------------------------------------------------- /Profile Based Pricing/img/set-s.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoho/ThirdPartySubscription/master/Profile Based Pricing/img/set-s.png -------------------------------------------------------------------------------- /Profile Based Pricing/lib/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoho/ThirdPartySubscription/master/Profile Based Pricing/lib/.DS_Store -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # ThirdPartySubscription 2 | Sample implementation for integration any Third Party subscription Service with Vertical CRM 3 | -------------------------------------------------------------------------------- /Profile Based Pricing/img/profileimg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoho/ThirdPartySubscription/master/Profile Based Pricing/img/profileimg.png -------------------------------------------------------------------------------- /Profile Based Pricing/img/ajax-loader1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoho/ThirdPartySubscription/master/Profile Based Pricing/img/ajax-loader1.gif -------------------------------------------------------------------------------- /Profile Based Pricing/webcontent/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoho/ThirdPartySubscription/master/Profile Based Pricing/webcontent/.DS_Store -------------------------------------------------------------------------------- /Profile Based Pricing/lib/Constants.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Profile Based Pricing/lib/actions/Redirect.php: -------------------------------------------------------------------------------- 1 | utils->setupIni["platformUrl"]."?hostedPageId=".$hostedPageId; 9 | header('Location: '.$url); 10 | } 11 | ?> -------------------------------------------------------------------------------- /Profile Based Pricing/config/setup.ini: -------------------------------------------------------------------------------- 1 | ; Configuration file 2 | 3 | ;Paste the Authtoken & ZAPIKey given in Developer Console Here 4 | authToken = ""; 5 | zapikey = ""; 6 | 7 | ;Paste the OrganziationId from Zoho Subscriptions Here 8 | organizationId = ""; 9 | 10 | ;Paste the AppDomain Here 11 | appDomain = ""; 12 | 13 | ;Paste the Redirect URL here 14 | redirectUrl = "" 15 | 16 | ;Paste the Platform Redirect URL here 17 | platformUrl = ""; 18 | 19 | 20 | ;DO NOT CHANGE THESE ! 21 | baseUrl = "https://subscriptions.zoho.com"; 22 | getAllProducts = "/api/v1/products"; 23 | getAllPlans = "/api/v1/plans?filter_by=PlanStatus.ACTIVE&product_id="; 24 | getPlan = "/api/v1/plans/"; 25 | getAddons = "/api/v1/addons?plan_code="; 26 | generateHostedPage = "/api/v1/hostedpages/newsubscription"; 27 | getSubscription = "/api/v1/subscriptions/"; 28 | updateSubscription = "/api/v1/subscriptions/"; 29 | updateCard = "/api/v1/hostedpages/updatecard"; 30 | getHostedpage = "/api/v1/hostedpages/"; 31 | cancelSub = "/api/v1/subscriptions/{SID}/cancel?cancel_at_end=false"; 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /Profile Based Pricing/webcontent/js/selectbox.js: -------------------------------------------------------------------------------- 1 | $(document).ready(function(){ 2 | $('select').each(function(){ 3 | var $this = $(this), numberOfOptions = $(this).children('option').length; 4 | 5 | $this.addClass('select-hidden'); 6 | $this.wrap('
'); 7 | $this.after('
'); 8 | 9 | var $styledSelect = $this.next('div.select-styled'); 10 | $styledSelect.text($this.children('option').eq(0).text()); 11 | 12 | var $list = $('