A Flash Developer Resource Site

Results 1 to 9 of 9

Thread: paypal

  1. #1
    Member
    Join Date
    Aug 2009
    Posts
    44

    Question paypal

    hi,
    Does anyone know how, in as3, i can allow a client to press a button to pay for a file with paypal and when they've finished redirect them the the download page (a url).
    I know i could do it from a html site but i want the buy now button to be in my flash site.
    can anyone help??
    thanx in advance!
    MrSmither

  2. #2
    Flashmatics silentweed's Avatar
    Join Date
    Mar 2005
    Location
    London, UK
    Posts
    4,876
    you ca check out my paypal cart in my library (its in as2 though) but it shouldn't be too tricky to re-code it for as3
    Flashmatics | Flashmatics Library (free downloads)
    -----------------------------------------------------
    Latest Projects:
    The Dead Room | Are You Smarter | Prison Break (Frame A Friend) | Beck's Fusions | The 24 Experience

    -----------------------------------------------------
    Flash Certified Developer

  3. #3
    Member
    Join Date
    Aug 2009
    Posts
    44
    thanx alot!
    I can't find the url that the client is redirected to affter payment...
    Can you help?

    oh and nice site by the way!
    Last edited by MrSmither; 03-10-2010 at 04:58 PM.

  4. #4
    Member
    Join Date
    Aug 2009
    Posts
    44
    anyone?

  5. #5
    Member
    Join Date
    May 2004
    Posts
    57
    <input type="hidden" name="notify_url" value="http://www.example.com/thankyou.html" />

    Do you mean that field?
    He took daddy's umbrella!

  6. #6
    Member
    Join Date
    Aug 2009
    Posts
    44
    thanx!
    so if i'm reading that rite that's html... so the variable that tels paypal where to goto affter payment is "notifie_url" but when I do a simple buy now btn in as3 with paypal i send a lode of variables to the paypal site so if i say, in the list of variables that I send
    Actionscript Code:
    notify_url="http://www.exaple.com/thanx/"
    will the client be sent to that url affter payment?

  7. #7
    Member
    Join Date
    Aug 2009
    Posts
    44
    anyone?

  8. #8
    Junior Member
    Join Date
    Nov 2009
    Location
    UK
    Posts
    22
    Hi all,

    slight hijack...

    My paypal button has worked for a year but suddenly gives an error on the paypal site like this:
    "You have requested an outdated version of PayPal. This error often results from the use of bookmarks."
    Same problem for this guy (click the button his selling for exactly the same error message):
    http://activeden.net/item/flash-paypal-button/33157

    So my button code looks like this: (anyone know where the problem lies) ?

    Actionscript Code:
    on (release) {
        var paypal = new LoadVars();
        paypal.cmd = '_xclick';
        paypal.upload = '1';
        paypal.business = 'me@adomain.com';
        paypal.currency_code = 'GBP';
        paypal.amount = price;
        paypal.no_shipping = '1';
        paypal.shipping = '0';
        paypal.tax = '0';
        paypal.lc = 'GB';
        paypal.item_name = [style+", "+type];
        paypal.send('https://www.paypal.com/cgi-bin/webscr', 'POST');
    }

    Best wishes
    Monty

  9. #9
    Member
    Join Date
    Aug 2009
    Posts
    44
    I don't want to be unkind but:

    1)why don't you start a new post?
    2)thats as2 and your in the as3 forum.

    sorry but i can't help you...

    can anyone answer my question?
    please.
    Last edited by MrSmither; 03-12-2010 at 01:52 PM.

Tags for this Thread

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