SET Ä«¼¼Æ®¿ë °è»ê¿ø ÇÁ·ÎÆÄÀÏ - Wallet

´ÙÀ½ XML ÄÚµå´Â SET Ä«¼¼Æ®¿¡ »ç¿ëÇϵµ·Ï WebSphere Commerce¿¡¼­ Á¦°øÇϴ ǥÁØ °è»ê¿ø ÇÁ·ÎÆÄÀÏÀÔ´Ï´Ù.

<?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 restricted by GSA ADP Schedule Contract with IBM Corp.
//*
//*================================================================== -->

<!-- ==================================================================
This is the Standard WC 5.1 cashier profile for the Payment Manager 
Cassette for SET 
================================================================== -->

<Profile useWallet="true" enableTrace="true" >

<CollectPayment>

<!-- ==================================================================
Parameters required by Payment Manager for order creation
================================================================== -->
<Parameter name="PAYMENTTYPE"><CharacterText>SET</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>

<!-- ==================================================================
Optional parameters for Payment Manager
================================================================== -->

<!-- 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
The default value is 0.

Since a Wallet application is used, the Payment Manager has to return a wakeup
message to WC to send to the shopper. This completes the DoPayment command.
Specifying an APPROVEFLAG of 1 means the Wallet application would receive the 
Purchase Response from the Payment Manager after the Authorization response is 
received from the Payment Gateway.
-->
<Parameter name="APPROVEFLAG"><CharacterText>1</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.
-->
<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="$SUCCESSURL"><CharacterText>http://{WCHostName}{WebPath}/PaySuccessView?storeId={storeId}&amp;orderId={orderId}&amp;langId={buyer_language_id}</CharacterText></Parameter>
<Parameter name="$FAILUREURL"><CharacterText>http://{WCHostName}{WebPath}/PayResetPM?storeId={storeId}&amp;orderId={orderId}&amp;fail=1&amp;langId={buyer_language_id}&amp;URL=PayFailureView</CharacterText></Parameter>
<Parameter name="$CANCELURL" ><CharacterText>http://{WCHostName}{WebPath}/PayResetPM?storeId={storeId}&amp;orderId={orderId}&amp;cancel=1&amp;langId={buyer_language_id}&amp;URL=PayCancelView</CharacterText></Parameter>
<Parameter name="$SERVICEURL"><CharacterText>http://{WCHostName}{WebPath}/PayServiceView?storeId={storeId}&amp;orderId={orderId}&amp;langId={buyer_language_id}</CharacterText></Parameter>

<!-- The encoding attribute indicates to the Cashier that the bytes for the 
OrderDescription can be obtained from the returned String using the 8859_1 
character encoding because that was how the GenericExtension class encodes 
the bytes. The resulting bytes are in the language of the requester. -->
<Parameter name="$ORDERDESCRIPTION" encoding="8859_1" >
<ExtensionValue name="com.ibm.commerce.payment.extensions.GenericExtension" />
</Parameter>


<!-- ==================================================================
Optional parameters for the cassette
================================================================== -->

<!-- The cardholder's street address. 1 to 128 ASCII characters. -->
<Parameter name="$AVS.STREETADDRESS" maxBytes="128" encoding="ASCII"><CharacterText>{billto_address1}</CharacterText></Parameter>

<!-- The cardholder's city. 1 to 50 ASCII characters. -->
<Parameter name="$AVS.CITY" maxBytes="50" encoding="ASCII"><CharacterText>{billto_city}</CharacterText></Parameter>

<!-- The cardholder's state or province. 1 to 50 ASCII characters. -->
<Parameter name="$AVS.STATEPROVINCE" maxBytes="50" encoding="ASCII"><CharacterText>{billto_state}</CharacterText></Parameter>

<!-- The cardholder's postal/zip code. 1 to 14 ASCII characters. -->
<Parameter name="$AVS.POSTALCODE" maxBytes="14" encoding="ASCII"><CharacterText>{billto_zipcode}</CharacterText></Parameter>

<!-- The cardholder's ISO 3166 (3 digits) country code. This field is
required if any other AVS data is passed. -->
<Parameter name="$AVS.COUNTRYCODE"><CharacterText>{billto_country_code}</CharacterText></Parameter>

<!-- An identifier that the merchant uses to specify one of its locations. 
The value is specified as a String. 1 to 10 ASCII characters. -->
<Parameter name="$AVS.LOCATIONID" maxBytes="10" encoding="ASCII"><CharacterText></CharacterText></Parameter>


<!-- Indicates the content type and character set of the $ORDERDESCRIPTION 
parameter. Some wallet may require the Content-Type Header of the 
Payment Initiation message to include the charset specification. 
In that case, specify "text/plain; charset={language_encoding}"
without the quotes as value for the $CHARSET parameter.
-->
<Parameter name="$CHARSET"><CharacterText></CharacterText></Parameter> 

<!-- One of two fields in the merchData structure; when specified, the 
Cassette will use it. Value must be a 4-character numeric string. 
Note: The requirement to use this field will come from the acquirer. -->
<Parameter name="$MERCHCATCODE"><CharacterText></CharacterText></Parameter> 

<!-- One of two fields in the merchData structure; when specified, 
the Cassette will use it. Value must be a numeric string between 
"1" and "8". Semantics for possible values are described in the SET
specification. Note: The requirement to use this field will come 
from the acquirer. -->
<Parameter name="$MERCHGROUP"><CharacterText></CharacterText></Parameter> 

<!-- The MerOrderNum field is in the SaleDetail structure of CapReq and 
AuthReq (with capture now) messages. Value must be a character string 
with a maximum length of 24 characters. -->
<Parameter name="$MERORDERNUM"><CharacterText></CharacterText></Parameter> 

<!-- Indicates whether or not a merchant may approve additional shipments. 
Supported values are:
0-Indicates that this is the final payment for the order.
1-Indicates that the merchant may approve additional split 
payments for the order. -->
<Parameter name="$SPLITALLOWED"><CharacterText>1</CharacterText></Parameter> 

<!-- Used to indicate that an incoming purchase request from a Wallet must contain
a cardholder certificate. If this keyword is omitted, purchases without 
certificates are allowed. Valid values are: 
0: Indicates that cardholder certificates are not required. 
1: Indicates that cardholder certificate are required. 
-->
<Parameter name="$REQUIRECARDCERT"><CharacterText>1</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>

WC51_SET_Wallet.profileÀº ´ÙÀ½ À§Ä¡¿¡ ÀÖ½À´Ï´Ù.
drive:\WebSphere\CommerceServer\instances\instance_name\xml\payment\
drive:\Program Files\WebSphere\CommerceServer\instances\instance_name\xml\payment\
/usr/WebSphere/CommerceServer/instances/instance_name/xml/payment/
/opt/WebSphere/CommerceServer/instances/instance_name/xml/payment/
instance root path/xml/payment/

¿©±â¼­ instance root path´Â ÀνºÅϽº ÀÛ¼º Áß¿¡ ±¸¼º °ü¸®ÀÚÀÇ ÀνºÅϽº ÆÐ³Î¿¡¼­ ÀνºÅϽº ·çÆ® °æ·Î Çʵ忡 ÁöÁ¤µÈ °æ·ÎÀÔ´Ï´Ù. ±âº» °æ·Î´Â /QIBM/UserData/WebCommerce/instances/instance_name/ÀÔ´Ï´Ù.

PAYMENTTYPE ¸Å°³º¯¼ö´Â ÇÁ·ÎÆÄÀÏ Ä«¼¼Æ®ÀÇ À̸§À» ÁöÁ¤ÇÕ´Ï´Ù.

WebSphere Commerce´Â °è»ê¿ø ÇÁ·ÎÆÄÀÏÀÇ <BuyPageInformation> ¿ä¼Ò¸¦ »ç¿ëÇÏÁö ¾Ê½À´Ï´Ù. µ¿µîÇÑ ±â´ÉÀÌ ÁöºÒ Á¤Ã¥ÀÇ attrPageName Ư¼º°ú ÇÔ²² Á¦°øµË´Ï´Ù.

ÇÁ·ÎÆÄÀÏÀº GetOrderDescCmd ŽºÅ© ¸í·ÉÀ» È£ÃâÇÏ¿© Áö°©¿¡ ´ëÇÑ ÁöºÒ ½ÃÀÛ ¸Þ½ÃÁö¸¦ »ý¼ºÇÏ´Â µ¥ ÇÊ¿äÇÑ $ORDERDESCRIPTION ¸Å°³º¯¼öÀÇ °ªÀ» °¡Á®¿À±â À§ÇØ GenericExtension Ŭ·¡½º¸¦ »ç¿ëÇÕ´Ï´Ù. ÀÌ´Â ¿©·¯ »óÁ¡ÀÌ ¼­·Î ´Ù¸¥ GetOrderDescCmd ¸í·ÉÀ» ±¸ÇöÇÏ°í ¸ðµç »óÁ¡¿¡ ´ëÇØ °°Àº °è»ê¿ø ÇÁ·ÎÆÄÀÏÀ» °è¼Ó »ç¿ëÇÒ ¼ö ÀÖµµ·Ï ÇÕ´Ï´Ù.

ÀÌ ÇÁ·ÎÆÄÀÏÀº $SUCCESSURL, $FAILUREURL, $CANCELURL ¹× $SERVICEURL ¸Å°³º¯¼ö¿¡ ´ëÇØ PaySuccessView, PayFailureView, PayCancelView ¹× PayServiceView¸¦ ÁöÁ¤ÇÕ´Ï´Ù. $FAILUREURL ¹× $CANCELURL¿¡ ´ëÇÑ PayResetPM ¸í·Éµµ À¯ÀÇÇϽʽÿÀ. fail=1 ¹× cancel=1 ¸Å°³º¯¼ö´Â PayFailureView ¹× PayCancelView ¸ðµÎ¿¡ »ç¿ëµÇ´Â ±âº» °ßº» JSP ÆÄÀÏ(PayStatusPM.jsp)¿¡ ´ëÇÑ ¸Å°³º¯¼öÀÔ´Ï´Ù. ÀÌ ¸Å°³º¯¼ö´Â JSP ÆÄÀÏÀÌ ¼³Á¤µÈ ¸Å°³º¯¼ö¿¡ µû¶ó °í°´¿¡°Ô ´Ù¸¥ ¸Þ½ÃÁö¸¦ Ç¥½ÃÇϵµ·Ï Áö½ÃÇÕ´Ï´Ù.

PaySuccessView, PayFailureView, PayCancelView ¹× PayServiceView¿¡ ´ëÇÑ Ãß°¡ Á¤º¸´Â »ç¿ëÀÚ Á¤ÀÇ °¡´É ÁöºÒ JSP ÆÄÀÏÀ» ÂüÁ¶ÇϽʽÿÀ.

SET Ä«¼¼Æ®¿¡ ÇÊ¿äÇÑ ¸Å°³º¯¼ö¿¡ ´ëÇÑ Ãß°¡ Á¤º¸´Â ¸ÖƼ Ç÷§Æû¿ë IBM WebSphere Payment Manager, SET Ä«¼¼Æ® Ãß°¡ Á¤º¸, ¹öÀü 3.1À» ÂüÁ¶ÇϽʽÿÀ.

°ü·Ã °³³ä(1275¹ÙÀÌÆ®)

°ü·Ã ÂüÁ¶(1275¹ÙÀÌÆ®)

IBM copyright