PDA

View Full Version : Would this interest anyone?


vivehosting.com
05-05-05, 06:57 AM
During development of a system revamp, I've created PHP code that's an almost complete implementation of PayPal's API, IPN, and Subscriptions. What this basically means is... I've come up with a simple way to handle paypal transactions. I was wondering if anyone thought this was worth selling. Would anyone buy it? How much could it be worth? Now, I know this highly depends on the code, but imagine if it's completely user-friendly, intuitive, and flexible. Thanks.

acidbase
05-05-05, 08:46 AM
I would say a demo will give a much better picture. Well at least for me. Definitely there will be a market but also depends on how well you sell it and how supportive your service it.

Good Luck

vivehosting.com
05-05-05, 09:15 AM
here's a quick demo:


// Subscription Creation
// creates the subscription string using a bunch of setters then redirects the user using toHeader(). There is another method called toString() for when you want to provide a link.
$subscribe = new PayPalSubscription();
$subscribe->setBusinessID('paypal@email.com');
$subscribe->setItemName('User's Large Package');
$subscribe->setCurrency('USD');
$subscribe->setAmount('20.00');
$subscribe->setBillingCycle('1 M');
$subscribe->toHeader();

// IPN
$ipn = new PayPalPassBack();

if($ipn->isValid()
&& $ipn->isComplete()
&& $ipn->isEmail('paypal@email.com')
&& $ipn->isAmount('20.00', '1 M', 'USD'))
{
// this is a quick way to make sure the transaction is legit and noone editted any options
// here you would do something such as process the account
// this class also includes functions to retrieve account information such as name, address, paymentdate, pretty much all the stuff ipn would send
}

// Web Services
// PayPal offers web services which allow you more control over transactions such as getting details, searching for transactions, refunding payments, and more.

$transaction = new PayPalTransaction('certificate_file', 'username', 'password');
$txn = $transaction->GetTransactionDetails('TransactionID', '2HSJ37HDCS');

// you can then retrieve the transaction details from an array

$info = $txn['PaymentTransactionDetails']['PaymentInfo'];

echo 'TransactionID: '.$info['TransactionID'];
echo 'Date: '.$info['PaymentDate'];
echo 'Amount: '.$info['GrossAmount'];

Ryan
05-05-05, 01:00 PM
So what your saying is, you created a automated subscription creator for paypal? If you could get this to work like after details for the account was created, so it emailed the owner/billing the clients information, and then the paypal subscription was created for them, that would be great! I'm sure its worth selling. Maybe give a way a few free copies. :)

vivehosting.com
05-05-05, 06:23 PM
well... I'm generally only after a complete implementation of the paypal services... The extras of emailing the information is the developer's responsibility because there is no one way fits all when it comes to email. You could use PayPalPassBack class to get the client's information once the order goes through so it could be emailed.

jackjohn
08-12-07, 03:19 AM
I don't really understand what does this program do

m1lkym1ke
08-13-07, 12:35 AM
this is very easy to do with php... my website already implements something very similiar... however it does not keep a database of the orders... only processes them to paypal... so i manually create a database..... will be adding mysql database to it soon... but its easy to work with

huendin
12-16-07, 02:47 AM
I would try it out

mcwsinc
06-14-08, 01:24 AM
Will Try It Very Soon
Looks Good
Regards