A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Sent variables? PayPal

  1. #1
    Senior Member
    Join Date
    Mar 2002
    Posts
    172

    Sent variables? PayPal

    We're in the process of making an online paypal store....it works fine from our html site but how can we incorporate this into the flash site. I'm thinking something like sent variables? This is the code in html:

    <form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
    <input type="hidden" name="cmd" value="_cart">
    <input type="hidden" name="business" value="citrucide@yahoo.com">
    <input type="hidden" name="item_name" value="Largo Divine">
    <input type="hidden" name="amount" value="12.00">
    <input type="hidden" name="no_note" value="1">
    <input type="hidden" name="currency_code" value="USD">
    <input type="hidden" name="lc" value="US">
    <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but22.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
    <input type="hidden" name="add" value="1">
    </form>


    ok so I just saw that the html is getting converted into the actual link......Hmmmmm. Any suggestions?

    Thanks for any help...

    Mik
    Where is Ralph Machio these days...?

  2. #2
    Developer
    Join Date
    Sep 2001
    Location
    The Bluegrass State Will Flash For Food ™
    Posts
    3,789

    Re: Sent variables? PayPal

    code:
    _btn.onRelease = function() {\
    var _lv = new LoadVars();
    _lv.cmd = "_cart";
    _lv.business = "citrucide@yahoo.com";
    _lv.item_name = "Largo Divine";
    _lv.amount = "12.00";
    _lv.no_note = "1";
    _lv.currency_code = "USD";
    _lv.lc = "US";
    _lv.add = "1";
    _lv.send("https://www.paypal.com/cgi-bin/webscr", "amazon", "POST");
    }


  3. #3
    Senior Member
    Join Date
    Mar 2002
    Posts
    172

    Thanks a lot...how ever???

    This almost worked exept for that the variable called "add" wont work cause flash thinks it's an operator or something??? Is there any way to get around that? This is the current code:

    on (release) {
    var _lv = new LoadVars();
    _lv.cmd = "_cart";
    _lv.business = "citrucide@yahoo.com";
    _lv.item_name = "Largo Divine";
    _lv.amount = "12.00";
    _lv.no_note = "1";
    _lv.currency_code = "USD";
    _lv.lc = "US";
    _lv.add = "1";
    _lv.send("https://www.paypal.com/cgi-bin/webscr", "amazon", "POST");
    }


    Thanks again!!!
    Where is Ralph Machio these days...?

  4. #4
    Developer
    Join Date
    Sep 2001
    Location
    The Bluegrass State Will Flash For Food ™
    Posts
    3,789
    code:
    /*
    */
    _lv["add"] = "1";
    /*
    */


  5. #5
    Senior Member
    Join Date
    Mar 2002
    Posts
    172

    You are God.

    Thank you so much it all works now......you rule.

    Mik
    Where is Ralph Machio these days...?

  6. #6
    Developer
    Join Date
    Sep 2001
    Location
    The Bluegrass State Will Flash For Food ™
    Posts
    3,789
    no problem...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center