A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Passing PayPal Variables with Webassist program

  1. #1
    Junior Member
    Join Date
    Jun 2004
    Location
    HAwaii
    Posts
    10

    Passing PayPal Variables with Webassist program

    Aloha slowley but ssurely my form is coming together.. I just downloaded this component for free from a site called web assist. It supposed to help me with passing my variables to Pay pal from a flash file. Well I opened it up and drag the component to my stage with the form i it and I think I got an anurism from all the code that poped up. I am not so good with AS in fact I really suck at it ... So if some kind sir or Madamn that has used this componant wants to tell me how to use it and what all the code means, I can finish this project and get some sleep this week instead of the couple winks between AS and PHP nightmares.

    Bel

  2. #2
    Junior Member
    Join Date
    Jun 2004
    Location
    HAwaii
    Posts
    10

    This is the code in the Webassist button

    Can some one tell me how I make my variables work with it.

    I just want to pass my variables "totalprice" , "Idnumber","email", and "address" to PayPal to pay for everything.

    Below is the code in webassist "buy now" component for flash MX. I need this a a frame or onClipevent, but not a button.

    Code:
    this.ppType._visible = false;
    this.SIPText._visible = false;
    //assign associated object buttonPress() method
    this._parent[this._targetInstanceName].onPress = PayPalSubmit;
    _
    function PayPalSubmit()__ {
    _getURL("https://www.paypal.com/cgi-bin/webscr?return="+escape(pp_return), targetWindow, "POST");_
    }
    _
    #initclip 3
    // object definition
    function SIP_Button()_ {
    _ return;_
    }
    _
    // targetWindow variable manipulation
    function SIP_SetTarget(theTarget)_ {
    _ this.targetWindow = theTarget;
    }
    function SIP_GetTarget()_ {
    _ return (this.targetWindow);
    }
    _
    // business variable manipulation
    function SIP_SetBus(theBus)_ {
    _ this.business = theBus;
    }
    function SIP_GetBus()_ {
    _ return (this.business);
    }
    // item_name variable manipulation
    function SIP_SetItemName(theName)_ {
    _ this.item_name = theName;
    }
    function SIP_GetItemName()_ {
    _ return (this.item_name);
    }
    // item_number variable manipulation
    function SIP_SetItemNumber(theNumber)_ {
    _ this.item_number = theNumber;
    }
    function SIP_GetItemNumber()_ {
    _ return (this.item_number);
    }
    // amount variable manipulation
    function SIP_SetAmount(theAmount)_ {
    _ this.amount = theAmount;
    }
    function SIP_GetAmount()_ {
    _ return (this.amount);
    }
    // shipping variable manipulation
    function SIP_SetShipping(theShipping)_ {
    _ this.shipping = theShipping;
    }
    function SIP_GetShipping()_ {
    _ return (this.shipping);
    }
    // shipping2 variable manipulation
    function SIP_SetExtraShipping(theShipping)_ {
    _ this.shipping2 = theShipping;
    }
    function SIP_GetExtraShipping()_ {
    _ return (this.shipping2);
    }
    // handling variable manipulation
    function SIP_SetHandling(theHandling)_ {
    _ this.handling = theHandling;
    }
    function SIP_GetHandling()_ {
    _ return (this.handling);
    }
    // image_url variable manipulation
    function SIP_SetImageURL(theURL)_ {
    _ this.image_url = theURL;
    }
    function SIP_GetImageURL()_ {
    _ return (this.image_url);
    }
    // pp_return variable manipulation
    function SIP_SetReturnURL(theReturn)_ {
    _ this.pp_return = theReturn;
    }
    function SIP_GetReturnURL()_ {
    _ return (this.pp_return);
    }
    // cancel_return variable manipulation
    function SIP_SetCancelURL(theURL)_ {
    _ this.cancel_return = theURL;
    }
    function SIP_GetCancelURL()_ {
    _ return (this.cancel_return);
    }
    // curency_code variable manipulation
    function SIP_SetCurrency(theCurrency)_ {
    _ this.currency_code = theCurrency;
    }
    function SIP_GetCurrency()_ {
    _ return (this.currency_code);
    }
    // undefined_quantity variable manipulation
    function SIP_SetUpdateableQuantity(theBoolean)_ {
    _ if (theBoolean)
    ___ this.undefined_quantity = "1";
    _ else
    ___ this.undefined_quntity = "0";
    _ this.undefined_quntity = undefined_quntity;
    }
    function SIP_GetUpdateableQuantity()_ {
    _ if (this.undefined_quantity=="1")__ {
    ___ return true;
    _ }
    _ return false;
    }
    // no_shipping variable manipulation
    function SIP_SetNoShipping(theBoolean)_ {
    _ if (theBoolean)
    ___ this.no_shipping = "1";
    _ else
    ___ this.no_shipping = "0";
    _ this.no_shipping = no_shipping;
    }
    function SIP_GetNoShipping()_ {
    _ if (this.no_shipping=="1")__ {
    ___ return true;
    _ }
    _ return false;
    }
    // no_note variable manipulation
    function SIP_SetAllowNote(theBoolean)_ {
    _ if (theBoolean)
    ___ this.no_note = "0";
    _ else
    ___ this.no_note = "1";
    _ this.no_note = no_note;
    }
    function SIP_GetAllowNote()_ {
    _ if (this.no_note=="0")__ {
    ___ return true;
    _ }
    _ return false;
    }
    _
    function SIP_Submit()_ {
    _this._parent[this._targetInstanceName].onPress();
    }
    _
    SIP_Button.prototype.setTarget = SIP_SetTarget;
    SIP_Button.prototype.getTarget = SIP_GetTarget;
    _
    SIP_Button.prototype.setBusinessID = SIP_SetBus;
    SIP_Button.prototype.getBusinessID = SIP_GetBus;
    _
    SIP_Button.prototype.setItemName = SIP_SetItemName;
    SIP_Button.prototype.getItemName = SIP_GetItemName;
    _
    SIP_Button.prototype.setItemNumber = SIP_SetItemNumber;
    SIP_Button.prototype.getItemNumber = SIP_GetItemNumber;
    _
    SIP_Button.prototype.setAmount = SIP_SetAmount;
    SIP_Button.prototype.getAmount = SIP_GetAmount;
    _
    SIP_Button.prototype.setShipping = SIP_SetShipping;
    SIP_Button.prototype.getShipping = SIP_GetShipping;
    _
    SIP_Button.prototype.setExtraShipping = SIP_SetExtraShipping;
    SIP_Button.prototype.getExtraShipping = SIP_GetExtraShipping;
    _
    SIP_Button.prototype.setHandling = SIP_SetHandling;
    SIP_Button.prototype.getHandling = SIP_GetHandling;
    _
    SIP_Button.prototype.setLogoURL = SIP_SetImageURL;
    SIP_Button.prototype.getLogoURL = SIP_GetImageURL;
    _
    SIP_Button.prototype.setReturnURL = SIP_SetReturnURL;
    SIP_Button.prototype.getReturnURL = SIP_GetReturnURL;
    _
    SIP_Button.prototype.setCancelURL = SIP_SetCancelURL;
    SIP_Button.prototype.getCancelURL = SIP_GetCancelURL;
    _
    SIP_Button.prototype.setUpdateableQuantity = SIP_SetUpdateableQuantity;
    SIP_Button.prototype.getUpdateableQuantity = SIP_GetUpdateableQuantity;
    _
    SIP_Button.prototype.setNoShipping = SIP_SetNoShipping;
    SIP_Button.prototype.getNoShipping = SIP_GetNoShipping;
    _
    SIP_Button.prototype.setAllowNote = SIP_SetAllowNote;
    SIP_Button.prototype.getAllowNote = SIP_GetAllowNote;
    _
    SIP_Button.prototype.setCurrency = SIP_SetCurrency;
    SIP_Button.prototype.getCurrency = SIP_GetCurrency;
    _
    SIP_Button.prototype.buyNow = SIP_Submit;
    Object.registerClass("PP_BuyNow",SIP_Button)
    #endinitclip 3

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