|
|
XIII. Cybercash Bezahl Funktionen
Diese Funktionen sind nur dann verf�gbar, wenn der Interpreter
mit der Option --with-cybercash=[DIR] kompiliert
wurde, und sie wurden mit PHP 4 eingef�hrt.
User Contributed Notes Cybercash Bezahl Funktionen |
|
dave at bcdei dot com
07-Jul-2000 02:54 |
|
**Posted to the newgroup by Mike Robinson <[email protected]>
**
In the php4 source, under ext/cybercash, you'll see a couple
of files with
sample snippets in them, cyberlib.php and test.php. The
mck comes with some
documentation as well. (Note, in the php3 source,
the dir is extra/cyberlib)
Other than that, I've seen very little.
|
|
mikebabcock at pobox dot com
17-Jul-2000 04:34 |
|
The cyberlib.php file is a library of functions for use with your Cybercash
transaction php files. The test.php file contains an example transaction
that is very simple:
$merchant=""; /* Your merchant ID
goes here. */
$merchant_key=""; /* Your merchant key goes
here. */
$payment_url="
$auth_type="mauthonly";
$response=SendCC2_1Server($merchant,$merchant_key,$payment_url,
$auth_type,array("Order-ID" =>
"2342322",
"Amount" =>
"usd 11.50",
"Card-Number" =>
"4111111111111111",
"Card-Address"
=> "1600 Pennsylvania Avenue",
"Card-City" => "Washington",
"Card-State" => "DC",
"Card-Zip" => "20500",
"Card-Country" => "USA",
"Card-Exp" => "12/99",
"Card-Name" => "Bill Clinton"));
while(list($key,$val)=each($response))
{
echo
$key."=".$val." ";
}
For all those
without source; hope this helps.
|
|
nathan at cjhunter dot com
01-Aug-2000 12:18 |
|
We use cybercash and php for all our website's financial transactions. I
developed CyberClass ()
as a clean up and extension of CyberLib. I recommend that you use
CyberClass over CybeLib.
|
|
|
| |