Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

>> Actionscript function and Paypal

Posted on 2010-11-11
4
Medium Priority
?
383 Views
Last Modified: 2012-08-13
I try to add shipping to an actionscript 2 function, do U see why it doesnt work ?

if thereno shipping the is on the bill, if there, there is just shipping without product, do U see why ?

Thank you


paypal = new LoadVars();
paypal.cmd = '_cart';
paypal.upload = '1';
paypal.business = "plus@carabus.com";
paypal.currency_code = "EUR";
var var_prix_ttc_var = 0;
function purchase(){
      _root.div_txt.text = _root.cart_mc.myDG.length;//product selected
      for (n = 0; n < _root.cart_mc.myDG.length; n++)      {
            _root.cart_mc.myDG.selectedIndex = _root.cart_mc.myDG.selectedItem = n;
            nombre_var = _root.cart_mc.myDG.selectedItem.Nbr;
            prix_var = _root.cart_mc.myDG.selectedItem.Prix;
            taille_var = _root.cart_mc.myDG.selectedItem.tai;
            //
            paypal["item_name_" + (n + 1)] = _root.cart_mc.myDG.selectedItem.Produit + " > taille : " + taille_var;
            paypal["quantity_" + (n + 1)] = nombre_var;
            paypal["amount_" + (n + 1)] = prix_var;
        }
//PROBLEM THERE :
      paypal.no_shipping = '1';
      paypal.shipping = '15';
      paypal["tax_cart"] = prix_tot_ttc_var - prix_tot_ht_var;
      getURL("https://www.paypal.com/_cart/webscr/" + paypal, "_blank", "POST");
}
0
Comment
Question by:LCNANCY
3 Comments
 
LVL 17

Expert Comment

by:deepanjandas
ID: 34117502
Sorry dude,
I did not get the problem. Can you please explain the problem in brief.

Warm Regards
Deepanjan Das
http://deepanjandas.wordpress.com
0
 

Accepted Solution

by:
LCNANCY earned 0 total points
ID: 34118616
yes, sorry.

II done a cart with flash wich is running ok

It works with paypal

I find the way to send the cart and get payment page to paypal :
it list all products without problem, but when I had the shipment it just send shipment without product, they diseappear. I dont understand how to solve it. Thank you
0
 
LVL 37

Expert Comment

by:CyanBlue
ID: 34819952
This question has been classified as abandoned and is being closed as part of the Cleanup Program. See my comment at the end of the question for more details.
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.
Suggested Courses

879 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question