utm5_payment_tool
utm5_payment_tool
/netup/utm5/utm5_payment_tool.cfg
core_host=192.168.1.25
core_port=11758
core_user=init
core_password=init
vpn-z# ./utm5_payment_tool -b 100 -a 1
Notice: Sep 02 16:39:19 UTM5 Config: Processing config file: /netup/utm5/utm5_payment_tool.cfg
ERROR : Sep 02 16:39:19 UTM5 Config: ./utm5_payment_tool: Error while calling receive payment function. Check command line and config file.
при запуске на localhost работает без проблем.
что необходимо для использовании на сторонней машине?
core_host=192.168.1.25
core_port=11758
core_user=init
core_password=init
vpn-z# ./utm5_payment_tool -b 100 -a 1
Notice: Sep 02 16:39:19 UTM5 Config: Processing config file: /netup/utm5/utm5_payment_tool.cfg
ERROR : Sep 02 16:39:19 UTM5 Config: ./utm5_payment_tool: Error while calling receive payment function. Check command line and config file.
при запуске на localhost работает без проблем.
что необходимо для использовании на сторонней машине?
Спасибо за то что ткнул носом 
ERROR : сен 05 18:35:42 DBAInternalError: burn_time < curr_time or burn_time == expire_time_never, credit canceled
ERROR : сен 05 18:35:42 DBAInternalError: [rpcf_add_payment_for_account] burn_time < curr_time or burn_time == expire_time_never, credit canceled
хочет время сгорания? но какие параметры, как прописать burn_time?

ERROR : сен 05 18:35:42 DBAInternalError: burn_time < curr_time or burn_time == expire_time_never, credit canceled
ERROR : сен 05 18:35:42 DBAInternalError: [rpcf_add_payment_for_account] burn_time < curr_time or burn_time == expire_time_never, credit canceled
хочет время сгорания? но какие параметры, как прописать burn_time?
Ну слава богу ))))
запустить тулку с ключиком -h, там все параметры, но чтобы тебя не убивать окончательно, я это сделал за тебя:
chris bin # ./utm5_payment_tool -h
NetUP UTM billing system console payment tool. Compile date: Nov 24 2008 15:11:04 Version: 5.2.1
Copyright (c) 2001-2008 NetUP Inc. www.netup.ru
The options are as follows:
[-C <path> Config filename, default: /netup/utm5/utm5_payment_tool.cfg
[-h <core host>] Core host, default: 127.0.0.1
[-P <core port>] URFA port, default: 11758
[-l <login>] URFA login, default: init]
[-p <password>] URFA password, default: init
[-b <payment>] Payment. Default: 0.0
[-a <account_id>] Account id. Default: 0
[-c <currency_id>] Currency ID. Default: 810 (russian rouble)
[-m <pay_method>] Payment method. Default: 0 (cash in office)
[-L <comment_for_admins>] Comments for admins. Default:none
[-k <comment_for_users>] Comments for users. Default:none
[-e <payment_external_number>] Payment external number. Default:none
[-t <unix_timestamp>] Time of payment acceptance. Default:current
[-i ] Turn on internet. Default: no
запустить тулку с ключиком -h, там все параметры, но чтобы тебя не убивать окончательно, я это сделал за тебя:
chris bin # ./utm5_payment_tool -h
NetUP UTM billing system console payment tool. Compile date: Nov 24 2008 15:11:04 Version: 5.2.1
Copyright (c) 2001-2008 NetUP Inc. www.netup.ru
The options are as follows:
[-C <path> Config filename, default: /netup/utm5/utm5_payment_tool.cfg
[-h <core host>] Core host, default: 127.0.0.1
[-P <core port>] URFA port, default: 11758
[-l <login>] URFA login, default: init]
[-p <password>] URFA password, default: init
[-b <payment>] Payment. Default: 0.0
[-a <account_id>] Account id. Default: 0
[-c <currency_id>] Currency ID. Default: 810 (russian rouble)
[-m <pay_method>] Payment method. Default: 0 (cash in office)
[-L <comment_for_admins>] Comments for admins. Default:none
[-k <comment_for_users>] Comments for users. Default:none
[-e <payment_external_number>] Payment external number. Default:none
[-t <unix_timestamp>] Time of payment acceptance. Default:current
[-i ] Turn on internet. Default: no
слабо... я еще не разобрался с urfa php, есть ко всему этому где нибудь описание?Vans писал(а):А с помоющью urfa php вот так слабо?
$ret = $urfa_admin->rpcf_add_payment_for_account($account,300,time(),time()+86400*$credit_days,7,$admin_comment='Обещанный платеж',$comment='Обещанный платеж',$payment_ext_number='');