Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 12389
Latest: GhostHunting
New This Month: 6
New This Week: 1
New Today: 1
Stats
Total Posts: 40330
Total Topics: 7100
Most Online Today: 83
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 1
Guests: 38
Total: 39

Author Topic: Rewriting the subscription coding  (Read 2452 times)

0 Members and 1 Guest are viewing this topic.

Offline shuban

  • Hero Member
  • *****
  • Posts: 657
    • View Profile
    • Homework Clinic - Your Academic Lifeline
Rewriting the subscription coding
« on: August 06, 2016, 01:43:18 am »
I am curious if this would work. Please hear me out ::)

I want to make subscription cycling per user, not per item based as it comes stock.

So, let's say a user wants to purchase a membership upgrade that lasts 7 days. In the item purchase page, I add an input box { [] make this purchase recurring }. If it is clicked, once a payment is recorded, the quantity column records 0 instead of the default 1.

Now, when the CheckGroupExpire function is activated, it will check whether the quantity is 0 or 1. If it is zero, it sends a new payment transaction, and upon success, updates the number of days again to 7.

Is this method plausible? My only concern is how I would validate a new payment transaction. Does PayPal allow something like this to happen?

 

Related Topics

  Subject / Started by Replies Last post
6 Replies
10755 Views
Last post February 07, 2007, 11:04:17 am
by bopla
0 Replies
2274 Views
Last post May 30, 2009, 12:58:57 pm
by menew
1 Replies
2570 Views
Last post November 14, 2009, 07:55:22 pm
by SMFHacks
21 Replies
8822 Views
Last post December 05, 2012, 08:29:05 pm
by SMFHacks
1 Replies
2553 Views
Last post January 10, 2012, 12:23:41 pm
by SMFHacks

+- Recent Topics

prettyurls - TroubleShooting.wiki by SMFHacks
Today at 04:24:47 pm

Quality of images after import by SMFHacks
September 05, 2020, 10:21:44 am

How do I download gallery images? by CWVRV
August 30, 2020, 11:50:07 pm

Deleting Empty Galleries by SMFHacks
August 30, 2020, 11:43:32 am

PHP error by davejo
August 25, 2020, 07:35:13 am

Permissions to list ads and buy items by CWVRV
August 21, 2020, 05:19:45 pm

Doubt with download permissions. by Rock Lee
August 20, 2020, 08:23:24 pm

Attachment images Upsidedown or Sideways by SMFHacks
August 18, 2020, 05:41:07 pm

[Mod]Avatars Display Integration by Hatshepsut
August 17, 2020, 11:39:54 pm

Simple Portal Block - Classifieds by SMFHacks
August 16, 2020, 09:56:48 am

Powered by EzPortal