# Passing Informations to Paypal

**URL:** <https://forum.kirupa.com/t/passing-informations-to-paypal/217521>\
**Category:** flash\
**Created:** [February 27, 2007, 6:14pm UTC](https://forum.kirupa.com/t/passing-informations-to-paypal/217521 "2007-02-27T18:14:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bigimaginations](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/bigimaginations/32/3200_2.png) [@bigimaginations](https://forum.kirupa.com/u/bigimaginations)\
**Post date:** [February 27, 2007, 6:14pm UTC](https://forum.kirupa.com/t/passing-informations-to-paypal/217521/1 "2007-02-27T18:14:24Z")

</div>

I am making a site that sells T-Shirts in Flash 8. I am using Paypal as the payment method. How can I make it so the user gets to pick the color and the size and then send that information to Paypal? So when we see an order has been placed, we will also know the color and size that they ordered.

Here is the current code on my Paypal “buy now” button:

```auto
on(release){        
        var paypalObj = new Object();
        paypalObj["add"] = 1;
        paypalObj.cmd = "_cart";
        paypalObj.business = "email12345@gmail.com"; //replace with your business name
        paypalObj.item_name= " T-Shirt stock number 2BC91 "; //replace with your item name.
        paypalObj.amount="14.95"; //replace with the price
        paypalObj.page_style="Primary";
        paypalObj.shipping="5.00";
        paypalObj.cn="Comment";
        paypalObj.currency_code="USD";
        var sUrl = "https://www.paypal.com/cgi-bin/webscr?"
        for (var o in paypalObj)
        sUrl += o + "=" + paypalObj[o] + "&";
        trace(sUrl);
        getURL(sUrl,"_cart","POST");
}

```
