Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
PHP IPN, non paypal - Help Please
Old 07-24-2006, 07:52 PM PHP IPN, non paypal - Help Please
Junior Talker

Posts: 2
Trades: 0
Hello, I am very new when it comes to coding from scratch. However, I would like tha ability to be able to sell a product. Unfortunately the developer of the product told me he cannot do it, has no time.

I have tried to figure it out, but everytime I try, I get a headache, I can install mods, with step by step instructions but this is not the case.

Can someone please help me to make these scripts? I can pay a small amount of money to whomever helps me, via Paypal... $50?

You can email me @ spitt1 @ gmail.com or get me on aim as Spitt1337

Warning, you will not be able to initiate a transfer, due to this being IP specific.

Code:
Similar to...
http://www.web-bureau.com/modules/fr...ipn-script.php

Introduction
Our transfer automation system is designed very similar to PayPal's automated payment notification system. In a nutshell, your web server needs to hit a php script on ours with a few bits of information: a) Reseller account name, b) User account name, c) Number of days to transfer, and d) Code. Optionally, e) Test and f) Redirect. Our system will then hit a designated URL to verify the request, and if that URL verifies it, the transfer is completed.

This transfer automation system is to be used in web site back end, and users are not authorized to access the transfer automation system (they will get a HTTP authorization error unless their IP address is explicitly allowed by Lavish Software to view the authorized reseller pages).

Step 1: Initiating the transfer
URL: http://www.lavishsoft.com/resellers/...d/automate.php
HTTP POST Fields:
# reseller: Your reseller account name (REQUIRED)
# user: Lavish Software account username to transfer to (REQUIRED)
# days: Number of days to transfer (REQUIRED)
# code: Whole number used to verify the request and prevent duplicates (REQUIRED)
# test: Only provide this field if you are testing your system. Set it to 1 (optional)
# redirect: This field is for your internal usage (optional)

After receiving a request, our server will do the following:
1. Check required fields. If any are invalid, our server stop and responds immediately (See "Responses from our server")
2. Verify by hitting the URL with the reseller, user, days, code, and redirect fields in HTTP POST.
3. Respond


Step 2: Verification
This is where our server talks to yours to ensure that yes, your server really did make this request, and that it is not duplicate. Ideally, you use the "code" to ensure that the request wasnt sent twice by your server on accident, that only one ever gets processed. But, that's up to you and probably isn't necessary because you can keep a record of the transfer beginning anyway. Better safe than sorry.

URL: Supply one for us to use for your account!
HTTP POST Fields:
# reseller: Your reseller account name (REQUIRED)
# user: Lavish Software account username to transfer to (REQUIRED)
# days: Number of days to transfer (REQUIRED)
# code: Whole number used to verify the request and prevent duplicates (REQUIRED)
# redirect: This field is for your internal usage (optional)

# Using these fields to verify, respond in the content of the HTTP response (as opposed to the header) with one of the following: VERIFIED: The transer is authorized and is not a duplicate
# INVALID: The transfer is unauthorized or is a duplicate


Step 3: Responses from our server
# Server responses are given in the content of the HTTP request (as opposed to the header) and are visible in browsers when hitting the URL. INVALID: One or more of the required POST fields was not supplied or was invalid
# INVALID:RESELLER: Invalid reseller account name provided
# NOURL: The reseller account has no verification URL, and therefore the request cannot be processed (you would need to submit a URL to us for verification)
# INSUFFICIENT: The reseller account has insufficient days in its pool to complete this transfer
# SUCCESS: The transfer has completed successfully
# FAILED: The reseller account has sufficient days and the reseller URL was used to successfully verify the transfer, but the transfer failed to complete
# UNVERIFIED: The reseller account has sufficient days, but the reseller URL did not respond with VERIFIED, and the transfer did not complete
# SUCCESS:TEST: The "test" field was given

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Automating user account signups
    Introduction
This process can be used to set up a Lavish Software user account (as well as an ISMods.com account, optionally) for your users, without having to direct them through the Lavish Software website. It is completed in nearly the same way as the Lavish Software account signup process, as it uses the same system. Basically, first a username request is sent to reserve a username. If the username is available, it is reserved for 6 hours or until a followup request is received to complete the registration. If the followup request is not received in that 6 hours, it will no longer be valid.

Lavish Software user accounts must use a valid e-mail address, which is the purpose of the followup request. Our signup system sends a link to the user's e-mail address to verify the e-mail address and complete the account registration. You may do the same if necessary, or simply immediately complete the registration if you have already verified the user's e-mail address.

Step 1: Reserving the account name
This step requires username, email address, password, and the user's IP address as hexadecimal bytes (this allows our system to automatically handle duplicate requests from the same user). Information is validated and stored in database upon success. The success response contains a code that must be used to complete the request separately (within 6 hours).

Valid usernames contain only a-z, A-Z, 0-9 and spaces, are at least 3 characters in length, and no more than 25. E-mail addresses are expected to contain a @, a ., and be no less than 6 characters in length. Password must be no less than 5 characters in length.

URL: http://www.lavishsoft.com/resellers/...d/automate.php
HTTP POST Fields:
# reseller: Your reseller account name (REQUIRED)
# mode: Must be "register" (REQUIRED)
# username: Lavish Software account username to reserve (REQUIRED)
# password: Password to assign to this user (REQUIRED)
# email: E-mail address to assign to this user (REQUIRED)
# ipaddress: IP address
# test: Only provide this field if you are testing your system. Set it to 1 (optional)

After receiving a request, our server will do the following:
1. Check required fields. If any are invalid, our server stop and responds immediately (See "Responses from our server")
2. Verify by hitting the URL with the reseller, user, days, code, and redirect fields in HTTP POST.
3. Respond


Response set
INVALID:EMAIL
INVALID:USERNAME
INVALID:PASSWORD
DUPLICATE:EMAIL
DUPLICATE:USERNAME
SUCCESS:(code)


We use the following PHP function to split a .-separated IP address such as 127.0.0.1 to 8 byte hexadecimal. You may do the same, or use your own method. It doesnt matter.
function encode_ip($dotquad_ip)
{
$ip_sep = explode('.', $dotquad_ip);
return sprintf('%02x%02x%02x%02x', $ip_sep[0], $ip_sep[1], $ip_sep[2], $ip_sep[3]);
}


Step 2. AFTER verifying the user's email address, use this to complete registration of the reserved username. This step MUST be completed within 6 hours, or the entry will be removed from our database and considered invalid!
POST variables
mode=validate
code=(code)

Response set
INVALID:CODE
SUCCESS
__________________
Spitt
Admin of
Please login or register to view this content. Registration is FREE
Spitt is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-26-2006, 05:58 AM Re: PHP IPN, non paypal - Help Please
Junior Talker

Posts: 2
Trades: 0
Hmmm, i was hoping for some type of a response either here email or AIM... nothing. Well, I will kepp checking back and hope someone wants to help on this.
__________________
Spitt
Admin of
Please login or register to view this content. Registration is FREE
Spitt is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to PHP IPN, non paypal - Help Please
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.09926 seconds with 12 queries