Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3309414
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T21:38:17+00:00 2026-05-17T21:38:17+00:00

I have been using Micah Carrick’s PAYPAL IPN class till now for web_accept but

  • 0

I have been using Micah Carrick’s PAYPAL IPN class till now for

web_accept

but now one of the Client wants to integrate the Recurring method into it.I tried using the same stuff but unfortunately was not so successful this time.
I am trying to connect to the Paypal recurring method.Following is the code by which I trying to get to it;

$paypalObj = new paypal_class();

$itemName = "My Product";
$itemNumber = $itemName . " - Premium ($amount$)";

$paypalObj->paypal_url = 'https://www.sandbox.paypal.com/cgi-bin/webscr';// testing paypal url
//$paypalObj->paypal_url = 'https://www.paypal.com/cgi-bin/webscr';// Live paypal url

$paypalObj->add_field('cmd','_xclick-subscriptions');
$paypalObj->add_field('txn_type', "recurring_payment");
$paypalObj->add_field('product_name', "My Product Subscription - Monthly( $$amount )");
$paypalObj->add_field('desc', "My Product Subscription - Monthly( $$amount )");

$paypalObj->add_field('business', "test@yahoo.com");

$paypalObj->add_field('return', "http://".$serverName . "/buy-now.php");
$paypalObj->add_field('cancel_return', "http://".$serverName. "/return.php?action=cancel");
$paypalObj->add_field('notify_url', "http://" . $serverName . "/return.php?action=ipn");

$paypalObj->add_field('src', "1");
$paypalObj->add_field('sra', "1");
$paypalObj->add_field('a3', "$amount");
$paypalObj->add_field('t3', "M");
$paypalObj->add_field('p3', "1");
//$paypalObj->add_field('no_note', "1");
$paypalObj->add_field('currency_code', "USD");

$paypalObj->add_field('first_name', $firstName);
$paypalObj->add_field('last_name', $lastName);

$paypalObj->submit_paypal_post();   

Code lets me to redirect to the Paypal sandbox(As I am still testing),but when I login onto Paypal sandbox it throws me this Error :


The link you have used to enter the PayPal system is invalid. Please review the link and try again.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T21:38:17+00:00Added an answer on May 17, 2026 at 9:38 pm

    I just figured out what was the problem behind my code.I just rewrote the code with some other Variables and it just worked fine.

    $paypalObj = new paypal_class();
    
    
    $customData = $firstName . ":";
    $customData .= $lastName . ":";
    $customData .= $emailId ;
    $itemName = "MY_PRODUCT";
    $itemNumber = $itemName . " - Premium ($amount$)";
    
    $paypalObj->paypal_url = 'https://www.sandbox.paypal.com/cgi-bin/webscr';// testing paypal url
    
    
    $paypalObj->add_field('cmd','_xclick-subscriptions');
    $paypalObj->add_field('business','MY_MECHANT_ACCOUNT');
    $paypalObj->add_field('item_name',$itemName);
    $paypalObj->add_field('item_number',$itemNumber);
    $paypalObj->add_field('return', "http://" . $serverName . "/buy-now.php");
    $paypalObj->add_field('cancel_return', "http://".$serverName. "/buy-now.php?action=cancel");
    $paypalObj->add_field('notify_url', "http://" . $serverName . "/buy-now.php?action=ipn");
    $paypalObj->add_field('no_note','1');
    $paypalObj->add_field('currency_code','USD');
    $paypalObj->add_field('custom',$customData);
    $paypalObj->add_field('a3', "$amount");
    $paypalObj->add_field('t3', "M");
    $paypalObj->add_field('p3', "1");
    $paypalObj->add_field('src', "1");
    $paypalObj->add_field('sra', "1");
    
    $paypalObj->submit_paypal_post();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been using data binding for several years with win forms, but now
I have been using Castle MonoRail for the last two years, but in a
I have been using C# for a while now, and going back to C++
I have been using ASP.NET for years, but I can never remember when using
I have been using Ruby for a while now and I find, for bigger
I have been using IoC for a little while now and I am curious
I have been using the CSLA framework for couple of years now for windows
I have been using a stored procedure for more than 1.5 years. But I've
I have been using php for quite a sometime now and encounter three different
We have been using BinarySerialization with our C# app, but the size and complexity

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.