I have a rather complicated issue that I am trying to solve in PHP and Paypal’s IPN codes..
I am selling one product which has multiple licenses in a drop down box, for example:
5 users – $20
10 users- $50
20 users – $100
Once someone purchases a license, I got the $payment_amount passed from paypal and did an if, ifelse statement to generate the number of usernames accordingly.
I did not think about different currencies, therefore this technique won’t work. Instead, I need to be able to assign an ID to each option in the drop down box and pass that instead.
I was wondering if this is possible and how I might go about doing this.
You could easily use any of the variables in the list of HTML variables to accomplish what you wish.
All of them are equally effective, though the most commonly used method is probably #2.