AlertPay
From PhpCOIN Documentation
Using AlertPay as a payment method is a simple process:
- Goto https://www.alertpay.com/ and set yourself up with an account
- Log into phpCOIN on your website as an admin
- Add the vendor
- Add PayLinks
Admin -> Vendors
If AlertPay exists in the list of available vendors, you can simply edit the existing record. If it does not exist, then click [Add New] to add AlertPay as a payment method that you will accept. The info should look like the following:
Vendor ID: (will be auto-completed by phpCOIN) Status: On (Off to disable this payment method) Vendor Name: AlertPay (for the drop-down lists) Buy Return Param Name: alertpay (notice it is lowercase) Buy Return Param Value: 1 URL / Website: https://www.alertpay.com/ Use IPN: No (YES if you want to use the IPN option) Notes: (whatever you want, this is for your eyes only)
Admin -> PayLinks
Select the PayLink you want to edit, or click [Create New] to create a new one. Paste the following code into the "order link" field, changing the parameters shown in bold:
Vendor Product Id: (Auto-created by phpCOIN)
Vendor ID: (From the drop-down, choose "PayPal")
Product ID: (From the drop-down, choose the product that this
PayLink applies to)
Description: PayPal Product x (for listing)
Order Link: (This is for the "pay link" html provided by
AlertPay, such as:
<form action='https://www.alertpay.com/PayProcess.aspx' method='post'>
<input type='hidden' name='ap_purchasetype' value='Service'>
<input type='hidden' name='ap_merchant' value='you@yoursite.com'>
<input type='hidden' name='ap_itemname' value='<prod_desc>'>
<input type='hidden' name='ap_currency' value='USD'>
<input type='hidden' name='ap_returnurl' value='<return_link_buy>'>
<input type='image' src='https://www.alertpay.com/images/BuyNow/pay_now_3.gif'>
<input type='hidden' name='ap_quantity' value='1'>
<input type='hidden' name='ap_description' value='<prod_desc>'>
<input type='hidden' name='ap_amount' value='<total_amt>'>
<input type='hidden' name='ap_cancelurl' value='<return_link_cancel>'>
</form>
In the above PayLink, the <> tells phpCOIN that it should replace the variable name with the actual value at run-time. For example, leaving <return_link_buy> means that phpCOIN will enter the actual return URL when it displays an order PayLink. It also means that you could move your site to another URL entirely but would not need to adjust your PayLinks.
The sample link will let the customer come back to your site upon payment completion so the orders module can finish processing (by calling the WHM add-on to create the server account, for example).
Lather, Rinse, Repeat
Repeat the above steps as many times as necessary, so that you end up with one PayLink for each product or service that will allow PayPal as a payment method.

