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 <chunk1...@gmail.com> 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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to