Ukrmoney::API - Perl extension for UkrMoney.com Payment System
use UkrMoney::API; my $um = new UkrMoney::API; #login in.. login fucntion returns your session_id, but this is not needed to remember it, #cause UkrMoney::API module remembers it for you, so all operations below go with this session_id param. $um->login({login => 'your@email.com', password => 'yourpassword'}); #making new transaction $um->trans({'payee_purse' => '1', 'amount' => '200', 'description' => 'payment for product id#3274823', 'benef_email' => 'receiver_email', 'mode' => 'test'}); #getting the last 10 transactions on purse #1 on you account: my $transactions = $um->trans_list({purse => '1', offset => -10, limit => 10}); #checking the time of last transaction my $time = $transactions->[scalar(@{$transactions})-1]->{'transaction'}->{'time'};
UkrMoney::API is needed to work with UkrMoney payment system from your scripts (like automated payments scripts, etc..)
$um->login({params..}) - Logining to system via automated API, needed params:
$um->login({params..})
login is your email in the system
password is your password in the system
$um->trans({params..}); - making new transaction, params needed:
$um->trans({params..});
payee_purse is the purse-source number
benef_email is the receiver id(email) in the system
benef_purse is the receiver's purse number, if you know it,.. not needed param
amount is the sum you want to transfer
description is the description (comment) of transfer
mode if this is set to 'test', than transfer will be made in test mode(just check if this transfer is possible)
$um->trans_info({params..}); - Get information about needed transaction, params:
$um->trans_info({params..});
trans_id is the transaction ID you want to check
$um->trans_list({params..}); - Logining to system via automated API
$um->trans_list({params..});
purse is the purse you want to check transactions of
offset is the offset in the list of all transactions, can be <0 then offset is counting from the end of list
limit is the number of transactions you want to get.
$um->my_info(); - Getting info about current user.
$um->my_info();
$um->check_user({params..}); - Checking if the user you want to transfer to exists
$um->check_user({params..});
payee_purse is the purse, from what test transaction will be made
email is the person's email you want to check
UkrMoney Online Payment System site: http://ukrmoney.com
Dmitry Nikolayev <dmitry@cpan.org>, http://perl.dp.ua/resume.html
Thanks to UkrMoney.com Support team for their help in creating of this module.
Also, thanks for DotHost Hosting Provider: http://dothost.ru for their Tech. support.
Copyright (C) 2006 by Dmitry Nikolayev
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install UkrMoney::API, copy and paste the appropriate command in to your terminal.
cpanm
cpanm UkrMoney::API
CPAN shell
perl -MCPAN -e shell install UkrMoney::API
For more information on module installation, please visit the detailed CPAN module installation guide.