• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: AquaticPrime Config.php + PayPal Advanced Variables Not Working
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AquaticPrime Config.php + PayPal Advanced Variables Not Working


  • Subject: Re: AquaticPrime Config.php + PayPal Advanced Variables Not Working
  • From: Chunk 1978 <email@hidden>
  • Date: Tue, 3 Feb 2009 19:24:39 -0500

excuse me.  there was a typo in my example code.  it should have read:

if ($appLicense == "Software-A")
       {
       $key = "//the key for Software-A";
       $privateKey = "//the private key for Software-A";
       }

also, $licenseExtension = ""; is not important here.





On Tue, Feb 3, 2009 at 7:21 PM, Chunk 1978 <email@hidden> wrote:
> i have AquaticPrime set up with PayPal for a small software license
> that i sell maybe once every 2 months.  i'm releasing something new
> soon and i'm trying to customize the AquaticPrime .PHP scripts to
> handle the production and emailing of 2 different licenses depending
> on what the customer is buying.
>
> let's say the two applications are "Software-A" and "Software-B".
> simple enough.
>
> i've created buttons for the two applications and i've added variables
> to these PayPal buttons under "Step 3: Customize advance features
> (optional)" of creating buttons with paypal.  the variable i've added
> for Software-A is "appLicense=SoftwareA", and the variable i've added
> for Software-B is "appLicense=SoftwareB".
>
> next in AquaticPrime's "config.php" script, i've configured the script
> to look like this:
>
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> $appLicense = $_POST["appLicense"];
>
> $error_url = "//the error url";
>
> $key = "";
> $privateKey = "";
> $licenseExtension = "";
>
> if ($appLicense == "Software-A")
>        {
>        $key = "//the key for Software-B";
>        $privateKey = "//the private key for Software-A";
>        }
> else if ($appLicense == "Software-B")
>        {
>        $key = "//the key for Software-B";
>        $privateKey = "//the private key for Software-B";
>        }
> else
>        {
>        header("Location: $error_url");
>        die;
>        }
>
> //remaining lines of code involve the email message
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
>
> the result is that the customer will be directed to the error url and
> the script will exit without sending a produced license by email.  it
> appears that the script isn't reading the appLicense variable of the
> paypal button.  isn't this the correct method to incorporate
> customized php variables with the AquaticPrime scripts?
>
> help would be greatly appreciated.
>
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >AquaticPrime Config.php + PayPal Advanced Variables Not Working (From: Chunk 1978 <email@hidden>)

  • Prev by Date: AquaticPrime Config.php + PayPal Advanced Variables Not Working
  • Next by Date: Re: problems resetting timer interval.
  • Previous by thread: AquaticPrime Config.php + PayPal Advanced Variables Not Working
  • Next by thread: Re: AquaticPrime Config.php + PayPal Advanced Variables Not Working
  • Index(es):
    • Date
    • Thread