PayPal Back End Verification

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default PayPal Back End Verification

    I need to hook up to the PayPal backend for autoverification.
    It may be over my head but I thought I could make my
    way through it. But, there is one thing I know nothing about
    and need to ask if anyone can get me on the right track
    If you go to this link and then click on the ASP/VBSCRIPT link
    that is on that page, (can't use that link from here, won't work)
    [url]http://www.paypal.com/cgi-bin/webscr?cmd=p/xcl/rec/ipn-code-outside[/url]

    Anyway, on the resultant page it says (requires MSXML)
    and gives this link. [url]http://msdn.microsoft.com/xml[/url]
    Obviously this link does nothing to narrow this down at all.
    I know nothing about XML and so I have no idea whether
    for this application, would I expect this to be a major thing
    to learn or just something to install ?

    Note that PayPal is impossible to communicate with
    since they give you no way to get help from them.

    Any help would be appreciated.
    Thanks,
    Fox


    Fox Guest

  2. Similar Questions and Discussions

    1. connection verification
      Hi I'm a newbie so please take it slow. I'm running win 98 & using coldfusion v6.1. After install I'm trying the compass travel tute but can't set...
    2. Form verification
      Hi there When I try to verify this page of a 4 page form it wont let me! When I copy and paste the form to a new page it will. Can anyone advise or...
    3. DSN verification failed
      Installed eval copy: worked fine Installed serial number copy: verification fails on Data Source Add with the following error message:...
    4. Account Verification
      --Apple-Mail-7-943274467 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed Who are you? Are you really...
    5. Password verification
      I have a form (frmpassword) with an unbound text box (text0) I would like for the text box to verify the password against a table...
  3. #2

    Default Re: PayPal Back End Verification


    "Atrax" <atrax@dontspamatrax.co.uk> wrote in message
    news:u4viXBUbDHA.1580@tk2msftngp13.phx.gbl...
    > > Anyway, on the resultant page it says (requires MSXML)
    >
    > MSXML is included with Windows 2000 or better, so you shouldn't need to
    > install it, unless this code requires an updated version.
    >
    > ________________________________________
    > Atrax. MVP, IIS
    > [url]http://rtfm.atrax.co.uk/[/url]
    >
    > newsflash : Atrax.Richedit 1.0 now released.
    > [url]http://rtfm.atrax.co.uk/infinitemonkeys/components/Atrax.RichEdit/[/url]
    >
    > *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    > Don't just participate in USENET...get rewarded for it!
    Thanks for the response. It is beginning to set my mind
    at ease. I was hoping it did not involve another trip
    to cosmic consciousness (G)

    Seriously. I posted the sample code code here so that if there is
    something that you or anyone reading this notices
    that is a flag to tell me that I need to do something
    with MSXML specifically, this could help me avoid
    an unexpected pitfall. I do notice they have options
    for XML which I am guessing would relate to versions.
    Can you also tell me how I find out which version I have ?
    Now I am wondering how can I test to see if XML is
    working properly on my system ? Would you suggest
    a reference book or do I not need one ?

    Thanks,
    fox


    Dim Item_name, Item_number, Payment_status, Payment_amount
    Dim Txn_id, Receiver_email, Payer_email
    Dim objHttp, str

    ' read post from PayPal system and add 'cmd'
    str = Request.Form & "&cmd=_notify-validate"

    ' post back to PayPal system to validate
    set objHttp = Server.CreateObject("Msxml2.ServerXMLHTTP")
    ' set objHttp = Server.CreateObject("Msxml2.ServerXMLHTTP.4.0")
    ' set objHttp = Server.CreateObject("Microsoft.XMLHTTP")
    objHttp.open "POST", "https://www.paypal.com/cgi-bin/webscr", false
    objHttp.setRequestHeader "Content-type", "application/x-www-form-urlencoded"
    objHttp.Send str

    ' assign posted variables to local variables
    Item_name = Request.Form("item_name")
    Item_number = Request.Form("item_number")
    Payment_status = Request.Form("payment_status")
    Payment_amount = Request.Form("mc_gross")
    Payment_currency = Request.Form("mc_currency")
    Txn_id = Request.Form("txn_id")
    Receiver_email = Request.Form("receiver_email")
    Payer_email = Request.Form("payer_email")

    ' Check notification validation
    if (objHttp.status <> 200 ) then
    ' HTTP error handling
    elseif (objHttp.responseText = "VERIFIED") then
    ' check that Payment_status=Completed
    ' check that Txn_id has not been previously processed
    ' check that Receiver_email is your Primary PayPal email
    ' check that Payment_amount/Payment_currency are correct
    ' process payment
    elseif (objHttp.responseText = "INVALID") then
    ' log for manual investigation
    else
    ' error
    end if
    set objHttp = nothing


    Fox Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139