VII. CCVS API Funkce

Tyto funkce p°edstavujφ interface k CCVS API, a umo╛nujφ tak p°φmo pracovat s CCVS z va╣ich PHP skript∙. CCVS je RedHatφ °e╣enφ "zprost°edkovatele" ve zpracovßnφ kreditnφch karet. Umo╛%nuje vßm oslovovat p°φmo zpracovatele kreditnφch karet p°es vß╣ *nix systΘm a modem. Pomocφ CCVS modulu pro PHP m∙╛ete zpracovßvat kreditnφ karty p°es CCVS ve va╣ich PHP skriptech. Nßsledujφcφ reference tento proces p°iblφ╛φ.

Pokud chcete zapnout CCVS podporu v PHP, zjist∞te si nejd°φve instalaΦnφ adresß° CCVS. Potom budete muset PHP zkonfigurovat s --with-ccvs. Pokud toto pou╛ijete be udßnφ cesty k va╣φ instalaci CCVS, PHP se pokusφ podφvat do defaultnφ instalaΦnφ lokace CCVS (/usr/local/ccvs). Pokud je CCVS na nestandardnφm mφst∞, spust∞te configure s: --with-ccvs=$ccvs_path, kde $ccvs_path je cesta k va╣φ instalaci CVS. Pozn.: Podpora CCVS vy╛aduje existenci $ccvs_path/lib a $ccvs_path/include, a p°φtomnost cv_api.h v adresß°i include a libccvs.a v adresß°i lib.

Dßle je pot°eba, aby b∞╛el proces ccvsd. Navφc, PHP processy musφ b∞hat pod stejn²m u╛ivatelem, pod kter²m b∞hß CCVS (nap°. pokud jste instalovali ccvs jako 'ccvs', va╣e PHP procesy musφ takΘ b∞hat jako 'ccvs').

Dal╣φ informace o CCVS jsou na http://www.redhat.com/products/ccvs.

Na tΘto sekci dokumentace se pracuje. Prozatφm RedHat udr╛uje mφrn∞ zastaralou, ale stßle u╛iteΦnou dokumentaci na http://www.redhat.com/products/ccvs/support/CCVS3.3docs/ProgPHP.html.

Obsah
ccvs_add — Add data to a transaction
ccvs_auth — Perform credit authorization test on a transaction
ccvs_command — Performs a command which is peculiar to a single protocol, and thus is not available in the general CCVS API
ccvs_count — Find out how many transactions of a given type are stored in the system
ccvs_delete — Delete a transaction
ccvs_done — Terminate CCVS engine and do cleanup work
ccvs_init — Initialize CCVS for use
ccvs_lookup — Look up an item of a particular type in the database #
ccvs_new — Create a new, blank transaction
ccvs_report — Return the status of the background communication process
ccvs_return — Transfer funds from the merchant to the credit card holder
ccvs_reverse — Perform a full reversal on an already-processed authorization
ccvs_sale — Transfer funds from the credit card holder to the merchant
ccvs_status — Check the status of an invoice
ccvs_textvalue — Get text return value for previous function call
ccvs_void — Perform a full reversal on a completed transaction