Der folgende XML-Code ist das Standard-Cashier-Profil, das in WebSphere Commerce für die Verwendung mit der Kassette für CyberCash bereitgestellt wird.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Profile SYSTEM "../../../../xml/PaymentManager/profile.dtd">
<!--
//*==================================================================
//* Licensed Materials - Property of IBM
//*
//* 5724-A18
//*
//* (c) Copyright IBM Corp. 2001
//*
//* US Government Users Restricted Rights - Use, duplication or
//* disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
//*
//*================================================================== -->
<!-- ==================================================================
This is the Standard WC 5.1 cashier profile for the Payment Manager
Cassette for CyberCash
================================================================== -->
<Profile useWallet="false" enableTrace="true" >
<CollectPayment>
<!-- ==================================================================
Parameters required by Payment Manager for order creation
================================================================== -->
<Parameter name="PAYMENTTYPE"><CharacterText>CyberCash</CharacterText></Parameter>
<Parameter name="MERCHANTNUMBER"><CharacterText>{storeId}</CharacterText></Parameter>
<Parameter name="ORDERNUMBER"><CharacterText>{orderId}</CharacterText></Parameter>
<Parameter name="CURRENCY"><CharacterText>{CURRENCY}</CharacterText></Parameter>
<Parameter name="AMOUNT"><CharacterText>{AMOUNT}</CharacterText></Parameter>
<Parameter name="AMOUNTEXP10"><CharacterText>{AMOUNTEXP10}</CharacterText></Parameter>
<!-- Indicates how automatic approval of the order should be attempted
Supported values are:
0 - no automatic approval
1 - synchronous automatic approval - Payment Manager attempts approval as
part of order creation operation
2 - asynchronous automatic approval - Payment Manager schedules an approval
operations after order is created
WC works best with APPROVEFLAG set to 2. When the APPROVEFLAG is set to 1, the WC
DoPayment command is blocked until Payment Manager completes the approval of the order.
Until this approval is complete, any commands wanting to read/update the same inventory
records modified by the DoPayment command will be blocked. This will affect the throughput
of the other commands.
-->
<Parameter name="APPROVEFLAG"><CharacterText>2</CharacterText></Parameter>
<!-- The amount which should be used when approving an order. Usually
this will be the same as the order amount. This field is required
if the APPROVEFLAG is set to 1 or 2. -->
<Parameter name="PAYMENTAMOUNT"><CharacterText>{approval_amount}</CharacterText></Parameter>
<!-- The payment number which should be used when approving an order.
Usually this will be 1. This field is required if the APPROVEFLAG
is set to 1 or 2. -->
<Parameter name="PAYMENTNUMBER"><CharacterText>1</CharacterText></Parameter>
<!-- Indicates whether the deposit should be attempted automatically.
This flag is only valid if APPROVEFLAG is set to 1 or 2.
Supported values are:
0 - Funds should not be automatically deposited.
1 - Funds should be automatically deposited.
The default value is 0.
For CyberCash accounts that specify HostCapture/AuthCapture set DEPOSITFLAG to 1.
For other CyberCash accounts (HostCapture/PostAuth and TerminalCapture) set this
flag to 0.
-->
<Parameter name="DEPOSITFLAG"><CharacterText></CharacterText></Parameter>
<!-- The following two parameters are optional. Either one could be used to pass the
Buyer Purchase Order number to the Payment Manager. The first Parameter takes only
ASCII Text. If Buyer Purchase Order numbers on your system may contain non-ASCII
Strings, use parameter ORDERDATA2 instead.
-->
<Parameter name="TRANSACTIONID" maxBytes="128" encoding="ASCII"><CharacterText>{PONumber}</CharacterText></Parameter>
<Parameter name="ORDERDATA2"><CharacterText></CharacterText></Parameter>
<!-- ==================================================================
Parameters required by the cassette
================================================================== -->
<Parameter name="$PAN" sensitive="true"><CharacterText>{card_number}</CharacterText></Parameter>
<Parameter name="$BRAND"><CharacterText>{cardBrand}</CharacterText></Parameter>
<!-- The expiry date in format YYYYMM -->
<Parameter name="$EXPIRY"><CharacterText>{card_expiry}</CharacterText></Parameter>
<!-- ==================================================================
Optional parameters for the cassette
================================================================== -->
<!-- The $CARDHOLDERNAME, $AVS.STREETADDRESS, $AVS.CITY, $AVS.STATEPROVINCE
and $AVS.POSTALCODE parameters are only for use with the United States
Address Verification Service. Only English ASCII characters are allowed
in these fields.
$CARDHOLDERNAME 1 - 64 characters
$AVS.STREETADDRESS 1 - 128 characters
$AVS.CITY 1 - 50 characters
$AVS.STATEPROVINCE 1 - 50 characters
$AVS.POSTALCODE 1 - 14 characters
-->
<Parameter name="$CARDHOLDERNAME" maxBytes="64" encoding="ASCII"><CharacterText></CharacterText></Parameter>
<Parameter name="$AVS.STREETADDRESS" maxBytes="128" encoding="ASCII"><CharacterText></CharacterText></Parameter>
<Parameter name="$AVS.CITY" maxBytes="50" encoding="ASCII"><CharacterText></CharacterText></Parameter>
<Parameter name="$AVS.STATEPROVINCE" maxBytes="50" encoding="ASCII"><CharacterText></CharacterText></Parameter>
<Parameter name="$AVS.POSTALCODE" maxBytes="14" encoding="ASCII"><CharacterText></CharacterText></Parameter>
<!-- Indicates the ISO-3166 country code of the cardholder for the Address
Verification Service. Valid values are from 1 to 999. -->
<Parameter name="$AVS.COUNTRYCODE"><CharacterText></CharacterText></Parameter>
</CollectPayment>
<Command name="DEPOSIT">
<!-- ==================================================================
Parameters required by Payment Manager for DEPOSIT Command
================================================================== -->
<Parameter name="MERCHANTNUMBER"><CharacterText>{storeId}</CharacterText></Parameter>
<Parameter name="ORDERNUMBER"><CharacterText>{orderId}</CharacterText></Parameter>
<Parameter name="PAYMENTNUMBER"><CharacterText>{payment_number}</CharacterText></Parameter>
<Parameter name="AMOUNT"><CharacterText>{AMOUNT}</CharacterText></Parameter>
</Command>
</Profile>
Die Datei WC51_CyberCash.profile befindet sich in:
laufwerk:\WebSphere\CommerceServer\instances\exemplarname\xml\payment\
laufwerk:\Programme\WebSphere\CommerceServer\instances\exemplarname\xml\payment\
/usr/WebSphere/CommerceServer/instances/exemplarname/xml/payment/
/opt/WebSphere/CommerceServer/instances/exemplarname/xml/payment/
root_pfad_des_exemplars/xml/payment/
Hierbei ist root_pfad_des_exemplars der Pfad, den Sie
während der Erstellung des Exemplars im Feld
Root-Pfad des Exemplars auf der Seite Exemplar
im Konfigurationsmanager angegeben haben. Der Standardpfad lautet:
/QIBM/UserData/WebCommerce/instances/exemplarname/.
WebSphere Commerce verwendet das Element <BuyPageInformation> des Cashier-Profils nicht. Eine vergleichbare Funktionalität wird durch die Eigenschaft attrPageName der Zahlungsrichtlinie erreicht.
Weitere Informationen zu den für die Kassette für CyberCash erforderlichen Parametern enthält IBM WebSphere Payment Manager für mehrere Plattformen, Kassette für CyberCash, Version 3.1.
![]() |