Section
A - General Integration
On the invoices
and signup pages there are tags you can use in forming links or forms
to third party systems. An overview of these tags are below:
{name}
Clients
Name
{address}
Address
{city}
City
{state}
State
{zip}
Zip
{country}
Country
{service}
Service
Ordered
{amount}
Invoice/Order
Fee
Section
B- 2Checkout Integration
To integrate
2checkout you need to edit two files in the templates, one is the email
invoice which gets sent to customers, the other is the signup page when
you users signup.
Step one
is open up the include/tpl/register_success.tpl and insert the following
<form
action=https://www.2checkout.com/cgi-bin/Abuyers/purchase.2c method=post>
<input type=hidden name=x_login value=2CHECKOUT_USERNAME
<input type=hidden namex_amount value{amount}>
<input type=hidden namex_invoice_number value{invoice_id}>
<input type=hidden namex_First_Name value{fname}>
<input type=hidden namex_Last_Name value{lname}>
<input type=hidden namex_Phone value{phone}>
<input type=hidden namex_Email value{email}>
<input type=hidden namex_Address value{address}>
<input type=hidden namex_City value{city}>
<input type=hidden namex_State value{state}>
<input type=hidden namex_Zip value{zip}>
<input type=hidden namex_Country value{country}>
<div align=Center><input type=Submit
name=Submit value=Submit></div></form>
Now to setup
payment in invoices you need to add this link to the invoice.txt file
https://www.2checkout.com/cgi-bin/sbuyers/cartpurchase.2c?sid=ACCOUNTNUMBER&total={amount}&cart_order_id={id}
Section
C - PayPal Payment Integration
Step one
is open up the include/tpl/register_success.tpl and insert the following
<form
action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="me@me.com ">
<input type="hidden" name="item_name" value="{service}">
<input type="hidden" name="item_number" value="{invoice_id}">
<input type="hidden" name="amount" value="{amount}">
<input type="image" src="https://www.paypal.com/images/x-click-but23.gif"
border="0" name="submit" alt="Make payments with
PayPal - it's fast, free and secure!">
</form>
Now to setup
payment in invoices you need to add this link to the invoice.txt file
https://www.paypal.com/xclick/business=PAYPAL_EMAIL &item_name={service}&item_number={invoice_id}&amount={amount}