Pay to post

Last post 06-16-2009 6:15 AM by Greengrass001. 2 replies.

Sort Posts:

  • Pay to post

    06-07-2009, 9:13 PM

     Hi,  I have two requests. I'm just a starting out.  So any help is much appreciated.

    1) I want to have people pay to post.  

    2) Records registered users IP address.

     

    Thanks in advance!

  • Re: Pay to post

    06-08-2009, 1:22 AM
    • All-Star
      21,009 point All-Star
    • qwe123kids
    • Member since 03-27-2008, 9:49 AM
    • Posts 3,603

     Hi,

    //*I want to have people pay to post. */

    Keep Sesison an Check if they are paid or Not if Not then,,

    Redirect To payment gateway example Paypal..

     

    /Tofind Ip Of user U may use follwing code..

    Request.ServerVariables["REMOTE_ADDR"];

    Or

    Private Function GetIPs() As StringCollection
     Dim localIP = New StringCollection()
     Dim localHostName = Dns.GetHostName()
     Dim hostEntry = Dns.GetHostEntry(localHostName)
     ' Grab all ip addesses.
     For Each ipAddr As IPAddress In hostEntry.AddressList
      localIP.Add(ipAddr.ToString())
     Next
     GetIPs = localIP
    End Function


    Or

    http://www.byteblocks.com/post/2009/03/06/How-to-get-IP-address-of-machine.aspx

    http://csharpdotnetfreak.blogspot.com/2008/12/finding-ip-address-behind-proxy-using-c.html

    Check the above link

    Thanks
    Avinash Tiwari

    Remember to click “Mark as Answer” on the post, if it helps you.

    MY Blog

    Hacking Inside .net exe
  • Re: Pay to post

    06-16-2009, 6:15 AM

     

     I did some research on paying for posting.  First I want to say, I not good with coding and so any help is appreciated.

    I want to bounce this idea off the forum and see if my logic works or not.  This is what I have in mind.  In Postad.aspx file, I'll include my Finish button to handle the Google Checkout Buy Now button.  If other words, Finish would redirect the user to Google Check and once transaction is completed, list the ad.  Would this work?  Can someone help me with the coding if it does work or point me to a direction of a sample coding.

     Below is a sample codes for the Google Check out Buy Now button.

     Thanks in advance!

     

    <form method="POST"
      action="https://checkout.google.com/api/checkout/v2/checkoutForm/Merchant/1234567890"
          accept-charset="utf-8">

      <input type="hidden" name="item_name_1" value="Peanut Butter"/>
      <input type="hidden" name="item_description_1" value="Chunky peanut butter."/>
      <input type="hidden" name="item_quantity_1" value="1"/>
      <input type="hidden" name="item_price_1" value="3.99"/>
      <input type="hidden" name="item_currency_1" value="USD"/>

      <input type="hidden" name="ship_method_name_1" value="UPS Ground"/>
      <input type="hidden" name="ship_method_price_1" value="10.99"/>
      <input type="hidden" name="ship_method_currency_1" value="USD"/>

      <input type="hidden" name="tax_rate" value="0.0875"/>
      <input type="hidden" name="tax_us_state" value="NY"/>

      <input type="hidden" name="_charset_"/>

      <input type="image" name="Google Checkout" alt="Fast checkout through Google"
    src="http://checkout.google.com/buttons/checkout.gif?merchant_id=1234567890&w=180&h=46&style=white&variant=text&loc=en_US"
    height="46" width="180"/>

    </form>

Page 1 of 1 (3 items)