Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: sierraftp on February 22, 2011, 02:07:26 AM

Title: Basic Alertpay Gateway for 2.x
Post by: sierraftp on February 22, 2011, 02:07:26 AM
A limited, but functional Alertpay Gateway
*Not trying to release as an offical Mod

Limits:
English Hard Coded
Recurring subs not coded yet
Automatic Refunds not possible cause Alertpay doesn't send those notifications

How to use:
just copy the file to your .\Sources folder
Setup like paypal in subscription settings, Email and ID

It's a base, feel free to post updates
Title: Re: Basic Alertpay Gateway for 2.x
Post by: venex on March 06, 2011, 02:13:45 PM
Awesome! I was looking for this.

I took a little time to make this better for more users that use other languages than English. Here are the steps:

1) Download the file attached and upload it to .\Source folder. (If you previously download sierraftp's file, dont worry, just replace it).
2) Add this at the end of "ManagePaid.english.php" which is in the language folder:
// AlertPay
$txt['alertpay'] = 'Alertpay';
$txt['pay_alertpay'] = 'To pay using <a href="http://www.alertpay.com">Alertpay</a> please click the button below. You will be directed to the Alertpay site for payment.';
$txt['order_alertpay'] = 'Order with Alertpay';
$txt['email_alertpay'] = 'Alertpay Email';
$txt['code_alertpay'] = 'Alertpay Security Code';


And that's it, you're all set to go.

Additionally, I translated it to Spanish. Just copy and paste this at the very end of "ManagePaid.spanish_es.php" or "ManaPaid.spanish_latin.es" file (I think that's what it's called):

// AlertPay
$txt['alertpay'] = 'Alertpay';
$txt['pay_alertpay'] = 'Para pagar mediante <a href="http://www.alertpay.com">Alertpay</a> por favor haz clic en el bot&oacute;n de abajo. Ser&aacute;s dirigido al sitio de Alertpay para el pago.';
$txt['order_alertpay'] = 'Ordenar con Alertpay';
$txt['email_alertpay'] = 'Email de Alertpay';
$txt['code_alertpay'] = 'C&oacute;digo de seguridad de Alertpay';


If someone wants to translate this into their language, just fill in the blanks and modify the language file:

// AlertPay
$txt['alertpay'] = 'Alertpay';
$txt['pay_alertpay'] = '_____________';
$txt['order_alertpay'] = '____________';
$txt['email_alertpay'] = '___________';
$txt['code_alertpay'] = '___________';


Greetings ;).
Title: Re: Basic Alertpay Gateway for 2.x
Post by: The-Wishmaster on November 14, 2012, 12:49:01 PM
Hello 

1#I was wondering if any one know if this mod work in 2.0.2

http://www.simplemachines.org/community/index.php?topic=423345.0

2# if you go to alertpay.com you get a nother page payza.com is this the same as alertpay and do this mod work for them ?

I really need a nother payment gateway then paypal so any help will be much appreciated 

Brian