PayPal Single Item Checkout -- Anyone have a Google Equivalent?

Last post 08-21-2008 4:02 AM by AliSufyanButt. 4 replies.

Sort Posts:

  • PayPal Single Item Checkout -- Anyone have a Google Equivalent?

    02-25-2008, 2:44 PM

    One of my sites had been using the PayPal "form" manner of invoking a single item sale, and I finally found a URL method of doing the same by passing the arguments. The scenario is that I have a dropdownlist with the quantity of tickets to be ordered and when an acceptable quantity (other than none) is selected, I make the hyperlink enabled. (This allows me to open the PayPal transaction in a separate window, keeping mine around.) Here's the code:

    1        Protected Sub ddlQuantity_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ddlQuantity.SelectedIndexChanged
    2            Dim lvQuantity As Integer = 0
    3            Dim lvResp As String = ""
    4   
    5            lvQuantity = ddlQuantity.SelectedValue
    6            If lvQuantity > 0 Then
    7   
    8                lvResp = "https://www.paypal.com/cgi-bin/webscr"
    9                lvResp &= "?cmd=_xclick"
    10               lvResp &= "&business=tickets@TasteOfHawaii.com"
    11  
    12               If lvQuantity = 1 Then
    13                   lvResp &= "&item_name=One (1) ticket to 2008 Taste of Hawaii / June 1, 2008"
    14               Else
    15                   lvResp &= "&item_name=" & FormatQuantity(lvQuantity) & " tickets to 2008 Taste of Hawaii / June 1, 2008"
    16               End If
    17  
    18               Dim
    lvAmount As Double = lvQuantity * CONST_TICKET_PRICE
    19               lvResp &= "&amount=" & CStr(lvAmount)
    20               lvResp &= "&currency_code=USD"
    21  
    22               hypBuyNow.NavigateUrl = lvResp
    23  
    24               hypBuyNow.Enabled = True
    25               hypBuyNow.Focus()
    26  
    27           Else
    28               lblQtyError.Visible = True
    29               ddlQuantity.Focus()
    30           End If
    31       End Sub

     

    I've been searching the Google site for the equvalent form and only found complicated XML examples. Does anyone know of a Google equivalent for doing the same thing?

    mahalos (thanks) in advance for any tips ... :)  KevInKauai

    P.S. I've seen some posts that speak of encryption but is there really any "exposure" then openly invoking the PayPal page?

    Filed under: , ,
  • Re: PayPal Single Item Checkout -- Anyone have a Google Equivalent?

    02-26-2008, 2:47 AM
    • Loading...
    • AliSufyanButt
    • Joined on 06-05-2007, 6:01 AM
    • Islamabad-Pakistan
    • Posts 257

    There is a similar html code on Google site for html based solution.

    Track the checkout buttons, the code it generates will clear the scene.

    Best of Luck

    Ali Sufyan Butt
    Software Engineer
    Electronic Solutions Pvt. Limited
  • Re: PayPal Single Item Checkout -- Anyone have a Google Equivalent?

    02-26-2008, 4:31 AM

    Thanks, Ali, but that's not much of a real HINT, is it?

    All I'm looking for is the CLEAR way to implement a URL (like the PayPal one in my example) and for the life of me I cannot find the equivalent "reference material" that guides me to this. (It all seems to dive down into other territory and, of course, Google is too big to bother with having ONE, nice clear place that has the info.)

    Harrumph!  :(  KevInKauai

  • Re: PayPal Single Item Checkout -- Anyone have a Google Equivalent?

    02-28-2008, 11:08 PM

    ^BUMP^

    Is GOOGLE a dirty word on this Microsoft site? Just returned to see if I can unearth anything else on this urgent topic and searching for "google" finds NOTHING!?!?

    Huh?

    ANY pointers of substance gratefully accepted!

    :)  KevInKauai

  • Re: PayPal Single Item Checkout -- Anyone have a Google Equivalent?

    08-21-2008, 4:02 AM
    • Loading...
    • AliSufyanButt
    • Joined on 06-05-2007, 6:01 AM
    • Islamabad-Pakistan
    • Posts 257

    You can try 2checkout.com API, its simple, or even worldpay has simple API.

    If you do not require Google. But i want to add in this respect that Google has a method to add single item checkout the same way using url parameters as well as complex xml solution. That was what i was refering you to. I have myself impemented google checkout in around 30 minutes while i was not familiar with the API.

    Enjoy

    Ali Sufyan Butt
    Software Engineer
    Electronic Solutions Pvt. Limited
Page 1 of 1 (5 items)
Microsoft Communities
Page view counter