![]() |
|
|||||||
| Integrations Find / Share / Request the integration of ClipShare with other Scripts. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#21 | |
|
Member
|Forum Newbie|
![]() Join Date: Apr 2009
Posts: 1
![]() |
Quote:
In your PAYMENT.PHP file, do this: Find this: Code:
$return = $config['BASE_URL']. '/pmt_success.php?pack=' .$pack_id. '&is_success=1&period=' .$s_period.'; Code:
$return = $config['BASE_URL']. '/pmt_success.php?pack=' .$pack_id. '&is_success=1&period=' .$s_period. '&a='.$UID.''; --Then-- Go to your PMT_SUCCESS.PHP file and add this directly under the 2 "require" statements: Code:
$pack_id = ( isset($_GET['pack']) ) ? intval($_GET['pack']) : NULL; $userid = ( isset($_GET['a']) ) ? intval($_GET['a']) : NULL; Next Find this code: Code:
$is_success = 'false';
if ( isset($_GET['is_success']) && $_GET['is_success'] ) {
$success = 'true';
STemplate::assign('exp_date', date('Y-m-d', strtotime("+$_GET[period]")));
Code:
$is_success = 'false';
if ( isset($_GET['is_success']) && $_GET['is_success'] ) {
$success = 'true';
STemplate::assign('exp_date', date('Y-m-d', strtotime("+$_GET[period]")));
$expired_time = date("Y-m-d H:i:s", strtotime("+$_GET[period]"));
$sql = "update subscriber set
pack_id=$pack_id,
subscribe_time='".date("Y-m-d H:i:s")."',
expired_time='$expired_time'
where UID = $userid";
$conn->execute($sql);
$sql = "update signup set
account_status = 'Active'
where UID=$userid";
$conn->execute($sql);
}
|
|
|
|
|
|
|
#22 | |
|
Member
|Forum Newbie|
![]() Join Date: Dec 2009
Posts: 15
![]() |
I found this worked for me - and I have to tell you it is a monkey off my back.
I highly recommend the fix to anyone who wants paypal and subscriptions working together on their site. Thank you!! Quote:
|
|
|
|
|
|
|
#23 |
|
Member
|Forum Newbie|
![]() Join Date: May 2010
Posts: 1
![]() |
You must block direct access to the pmt_success.php
The referrer must be paypal Becouse if user go manualy to submit this url http://www.yourdomain.com/pmt_succes...=1Month& a=26 where pack=2 is the id of the pack period=1Month or 1Year is for how long wil update the subscription a=26 is the user id that will be updated The subscription will be updated in the database without paypal payment ![]() |
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| paypal integration | glennh | Integrations | 9 | 09-12-2007 03:41 AM |
| IPN Paypal replacement | mentaldave | Freelance Services | 0 | 04-27-2007 06:32 PM |
| used paypal where is it | sfcommunity | Pre-Sales Questions | 2 | 01-10-2007 10:38 PM |