info@drugapisarna.si
Brezplačna uporaba
Predstavitev Novice Vprašanja Cenik Kontakt Dokumentacija



Dokumentacija


Zadje spremenjeno 21.01.08 s strani duck Prikaži spremembe za 1.0
HordePaymentInterace Osveži stran
PovezaveNazaj | PodobneStrani | Priponke | Zgodovina | Nazaj na

Available methods for Plačevanje (Horde_Payment)

Application: Horde_Payment
Prefix: payment
Name: Plačevanje

Example:

// inside ObalaNET 1
$result = $registry->call("payment/METHOD_NAME", array(PARAMETERS));

// inside ObalaNET 2
$result = $registry->callByPackage("Horde_Payment", "METHOD_NAME", array(PARAMETERS));

// XML RPC (http://pear.php.net/package/XML_RPC)
require_once "XML/RPC.php";
$msg = new XML_RPC_Message("payment.METHOD_NAME", PARAMETERS);
$cli = new XML_RPC_Client("/rpc.php", "http://HOSTNAME");
$resp = $cli->send($msg);
$val = $resp->value();
$result = XML_RPC_decode($val);

// XML RPC 2 (http://pear.php.net/package/XML_RPC2)
require_once "XML/RPC2/Client.php";
$client = XML_RPC2_Client::create("http://HOSTNAME/rpc.php", array("prefix" => "payment"));
$result = $client->METHOD_NAME(PARAMETER_1, PARAMETER_2, PARAMETER_3 ...);

// Python Example (http://wiki.horde.org/XmlRpcPythonHowTo)
import xmlrpclib
url = "http://HOSTNAME/rpc.php"
server = xmlrpclib.ServerProxy(url, verbose=0)
result = server.payment.METHOD_NAME(PARAMETER_1, PARAMETER_2, PARAMETER_3 ...)

More detailed examples: http://www.drugapisarna.si/wicked/ZunanjaUporaba

Payment_perms - Categories/Permissio...

Call: (mixed) Payment_perms()

Description :

Categories/Permissions

Payment_show - Wrapper for show met...

Call: (string) Payment_show((string) id)

Description :

Wrapper for show method, just to be available RPC

Parameters:
Type Name Documentation
string id Authorization id

Payment_authorizationRequest - Add a request to aut...

Call: (boolean|PEAR_Error) Payment_authorizationRequest((string) app, (string) id, (double) amount [ , (array) params ] )

Description :

Add a request to authorization mechanism
avaiable to the selling app in the current session.

Parameters:
Type Name Documentation
string app The Horde application that is doing the authorization
string id Horde appliaction internal id
double amount t Amount for atuherisation request
array params s Addition data passed by selling app

Payment_getAuthorization - Get basic authorizat...

Call: (boolean|PEAR_Error) Payment_getAuthorization((string) id)

Description :

Get basic authorization data

Parameters:
Type Name Documentation
string id Authorization id

Payment_getMethods - Get authorization me...

Call: (array|PEAR_Error) Payment_getMethods((string) app [ , (double) amount ] )

Description :

Get authorization methods linked to an application

Parameters:
Type Name Documentation
string app The Horde application that is doing the authorization
double amount t Amount to process

Payment_getStatuses - Get available status...

Call: (array) Payment_getStatuses()

Description :

Get available statuses

Payment_voidRequest - Void an original aut...

Call: (boolean|PEAR_Error) Payment_voidRequest((string) id [ , (double) amount ] )

Description :

Void an original authorization or order

Parameters:
Type Name Documentation
string id Authorization id
double amount t Amount for atuherisation request

DrugaPisarna je projekt podjetja Obala d.o.o..