A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Error on paypal script; can someone help please

  1. #1
    Junior Member
    Join Date
    Jun 2014
    Posts
    3

    Error on paypal script; can someone help please

    there are two functions for the paypal shopping cart:

    1. buy now button, working fine

    on (press) {
    add ="1";
    cmd ="_cart";
    business = "MyBusiness@Adomain.com";
    item_name ="Animal Clips 512Kbs";
    amount = "4.99";
    currency_code = "GBP";
    getURL("https://www.paypal.com/cgi-bin/webscr","_blank","POST");
    }

    2. VIEW shopping cart items with an error

    on (press) {
    cmd ="_cart";
    business = "MyBusiness@Adomain.com";
    display = 1;
    getURL("https://www.paypal.com/cgi-bin/webscr","_blank","POST");
    }

    viewing the shopping cart items once or several times, every time the script adds 1 more unit to the last "bought now" item automatically.

    Unfortunately I`m not experienced enough to find the error myself.
    Could someone please help?

    thank you

  2. #2
    . fruitbeard's Avatar
    Join Date
    Oct 2011
    Posts
    1,780
    Hi,

    Just a stab in the dark here, try adding add ="0"; to the view cart button

  3. #3
    Junior Member
    Join Date
    Jun 2014
    Posts
    3
    Quote Originally Posted by fruitbeard View Post
    Hi,

    Just a stab in the dark here, try adding add ="0"; to the view cart button

    Hi fruitbeard, thanks for your reply!

    Yes, I`ve tried that, but with settings to "0" too, one
    additional quantity will be added. So, don`t think that`s
    the solution. I remember someone else had the same issue,
    though cant`t find the fix anymore.

    Anyhow, thank you!

  4. #4
    hello i have the same problem here



    **Links removed by Site Administrator so it doesn't look like you're spamming us. Please don't post them again.**

  5. #5
    Junior Member
    Join Date
    Jun 2014
    Posts
    3

    resolved

    Quote Originally Posted by pollenca View Post
    there are two functions for the paypal shopping cart:

    1. buy now button, working fine

    on (press) {
    add ="1";
    cmd ="_cart";
    business = "MyBusiness@Adomain.com";
    item_name ="Animal Clips 512Kbs";
    amount = "4.99";
    currency_code = "GBP";
    getURL("https://www.paypal.com/cgi-bin/webscr","_blank","POST");
    }

    2. VIEW shopping cart items with an error

    on (press) {
    cmd ="_cart";
    business = "MyBusiness@Adomain.com";
    display = 1;
    getURL("https://www.paypal.com/cgi-bin/webscr","_blank","POST");
    }

    viewing the shopping cart items once or several times, every time the script adds 1 more unit to the last "bought now" item automatically.

    Unfortunately I`m not experienced enough to find the error myself.
    Could someone please help?

    thank you

    after a while I found out at least one way about what`s wrong with my "view shopping cart"
    script.

    Since often I see issues "resolved" but no indication of HOW TO ... I post it here for anyone who is interested in the answer ... once all of Paypal is in a sprite ... no more
    items are added
    Attached Files Attached Files

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