Sample Cybersource Transactions

Cybersource Token (paySubscriptionCreate) Transaction: Sample Messages

Cybersource Authorization (ccAuthService) Transaction without Decision Manager: Sample Messages

Cybersource Authorization (ccAuthService) Transaction with Decision Manager: Sample Messages

Cybersource Token and Authorization (paySubscriptionCreate and ccAuthService) Transaction: Sample Messages

Cybersource Debit Deposit (ccCaptureService) Transaction: Sample Messages

Cybersource Credit Deposit (ccCreditService) Transaction: Sample Messages

Cybersource Authorization and Deposit (ccAuthService and ccCaptureService) Transaction: Sample Messages

Cybersource Authorization Reversal (ccAuthReversalService) Transaction: Sample Messages

Cybersource Token (paySubscriptionCreate) Transaction: Sample Messages

A sample of a Cybersource Token (paySubscriptionCreate) transaction is presented below.

Request: See Cybersource Token Request (paySubscriptionCreate) XML Message for mapping details.

<requestMessage xmlns="urn:schemas-cybersource-com:transaction-data-1.57">

<merchantID xmlns="urn:schemas-cybersource-com:transaction-data-1.57">merchID</merchantID>

<merchantReferenceCode>CMPORDER_NBR</merchantReferenceCode>

<billTo>

<firstName>FIRST</firstName>

<lastName>LAST</lastName>

<street1>STREET1</street1>

<city>CITY</city>

<state>MA</state>

<postalCode>POSTAL</postalCode>

<country>US</country>

<email>null@cybersource.com</email>

</billTo>

<purchaseTotals>

<currency>USD</currency>

</purchaseTotals>

<card>

<accountNumber>***** REMOVED *****</accountNumber>

<expirationMonth>12</expirationMonth>

<expirationYear>2012</expirationYear>

<cardType>001</cardType>

</card>

<recurringSubscriptionInfo>

<frequency>on-demand</frequency>

</recurringSubscriptionInfo>

<decisionManager>

<enabled>false</enabled>

</decisionManager>

<paySubscriptionCreateService run="true" />

</requestMessage>

Response: See Cybersource Token Response (paySubscriptionCreate) XML Message for mapping details.

<c:replyMessage xmlns:c="urn:schemas-cybersource-com:transaction-data-1.57">

<c:merchantReferenceCode>CMPORDER_NBR</c:merchantReferenceCode>

<c:requestID>REQUEST_ID</c:requestID>

<c:decision>ACCEPT</c:decision>

<c:reasonCode>100</c:reasonCode>

<c:requestToken>REQUEST_TOKEN</c:requestToken>

<c:purchaseTotals>

<c:currency>USD</c:currency>

</c:purchaseTotals>

<c:ccAuthReply>

<c:reasonCode>100</c:reasonCode>

<c:amount>0.00</c:amount>

<c:authorizationCode>AUTH_CODE</c:authorizationCode>

<c:avsCode>X</c:avsCode>

<c:avsCodeRaw>I1</c:avsCodeRaw>

<c:authorizedDateTime>2011-06-30T19:44:12Z</c:authorizedDateTime>

<c:processorResponse>100</c:processorResponse>

<c:reconciliationID>RECONCILIATIONID</c:reconciliationID>

</c:ccAuthReply>

<c:paySubscriptionCreateReply>

<c:reasonCode>100</c:reasonCode>

<c:subscriptionID>SUBSCRIPTION_ID</c:subscriptionID>

</c:paySubscriptionCreateReply>

</c:replyMessage>

Cybersource Authorization (ccAuthService) Transaction without Decision Manager: Sample Messages

A sample of a Cybersource Authorization (ccAuthService) transaction when Decision Manager is not enabled is presented below. This transaction uses the token, rather than the actual credit card number, to authorize a credit card payment.

Request: See Cybersource Authorization Request (ccAuthService) XML Message for mapping details.

<requestMessage xmlns="urn:schemas-cybersource-com:transaction-data-1.57">

<merchantID xmlns="urn:schemas-cybersource-com:transaction-data-1.57">merchID</merchantID>

<merchantReferenceCode>CMPORDER_NBR</merchantReferenceCode>

<purchaseTotals>

<currency>USD</currency>

<grandTotalAmount>10.87</grandTotalAmount>

</purchaseTotals>

<recurringSubscriptionInfo>

<subscriptionID>SUBSCRIPTION_ID</subscriptionID>

<frequency>on-demand</frequency>

</recurringSubscriptionInfo>

<decisionManager>

<enabled>false</enabled>

</decisionManager>

<ccAuthService run="true">

<commerceIndicator>moto</commerceIndicator>

</ccAuthService>

</requestMessage>

Response: See Cybersource Authorization Response (ccAuthService) XML Message for mapping details.

<c:replyMessage xmlns:c="urn:schemas-cybersource-com:transaction-data-1.57">

<c:merchantReferenceCode>CMPORDER_NBR</c:merchantReferenceCode>

<c:requestID>REQUEST_ID</c:requestID>

<c:decision>ACCEPT</c:decision>

<c:reasonCode>100</c:reasonCode>

<c:requestToken>REQUEST_TOKEN</c:requestToken>

<c:purchaseTotals>

<c:currency>USD</c:currency>

</c:purchaseTotals>

<c:ccAuthReply>

<c:reasonCode>100</c:reasonCode>

<c:amount>10.87</c:amount>

<c:authorizationCode>AUTH_CODE</c:authorizationCode>

<c:avsCode>X</c:avsCode>

<c:avsCodeRaw>I1</c:avsCodeRaw>

<c:authorizedDateTime>2011-07-01T14:10:04Z</c:authorizedDateTime>

<c:processorResponse>100</c:processorResponse>

<c:reconciliationID>RECONCILIATIONID</c:reconciliationID>

<c:ownerMerchantID>merchID</c:ownerMerchantID>

</c:ccAuthReply>

</c:replyMessage>

Cybersource Authorization (ccAuthService) Transaction with Decision Manager: Sample Messages

A sample of a Cybersource Authorization (ccAuthService) transaction when Decision Manager is enabled is presented below. This transaction uses the token, rather than the actual credit card number, to authorize a credit card payment.

Request: See Cybersource Authorization Request (ccAuthService) XML Message for mapping details.

<requestMessage xmlns="urn:schemas-cybersource-com:transaction-data-1.57">

<merchantID xmlns="urn:schemas-cybersource-com:transaction-data-1.57">merchID</merchantID>

<merchantReferenceCode>CMPORDER_NBR</merchantReferenceCode>

<clientLibrary xmlns="urn:schemas-cybersource-com:transaction-data-1.57">Java XML</clientLibrary>

<clientLibraryVersion xmlns="urn:schemas-cybersource-com:transaction-data-1.57">5.0.2</clientLibraryVersion>

<clientEnvironment xmlns="urn:schemas-cybersource-com:transaction-data-1.57">Windows NT (unknown)/6.2/Sun Microsystems Inc./1.6.0_30</clientEnvironment>

<billTo>

<firstName>FIRST</firstName>

<lastName>LAST</lastName>

<street1>STREET1</street1>

<city>CITY</city>

<state>MA</state>

<postalCode>POSTAL</postalCode>

<country>US </country>

<email>EMAIL_ADDR</email>

<customerID>CSTID</customerID>

</billTo>

<shipTo>

<firstName>FIRST</firstName>

<lastName>LAST</lastName>

<street1>STREET1</street1>

<city>CITY</city>

<state>MA</state>

<postalCode>POSTAL</postalCode>

<country>US</country>

<phoneNumber>PHONE</phoneNumber>

<shippingMethod>lowcost</shippingMethod>

</shipTo>

<item id="0">

<unitPrice>13.50</unitPrice>

<quantity>1</quantity>

<productCode>default</productCode>

<productName>ITEM DESCRIPTION </productName>

<productSKU>ITEM</productSKU>

</item>

<purchaseTotals>

<currency>USD</currency>

<grandTotalAmount>16.67</grandTotalAmount>

</purchaseTotals>

<recurringSubscriptionInfo>

<subscriptionID>SUBSCRIPTION_ID</subscriptionID>

<frequency>on-demand</frequency>

</recurringSubscriptionInfo>

<decisionManager>

<enabled>true</enabled>

</decisionManager>

<ccAuthService run="true">

<commerceIndicator>moto</commerceIndicator>

</ccAuthService>

<businessRules>

<ignoreAVSResult>true</ignoreAVSResult>

<ignoreCVResult>true</ignoreCVResult>

</businessRules>

</requestMessage>

Response: See Cybersource Authorization Response (ccAuthService) XML Message for mapping details.

<c:replyMessage xmlns:c="urn:schemas-cybersource-com:transaction-data-1.57">

<c:merchantReferenceCode>CMPORDER_NBR</c:merchantReferenceCode>

<c:requestID>REQUEST_ID</c:requestID>

<c:decision>REVIEW</c:decision>

<c:reasonCode>480</c:reasonCode>

<c:requestToken>REQUEST_TOKEN</c:requestToken>

<c:purchaseTotals>

<c:currency>USD</c:currency>

</c:purchaseTotals>

<c:ccAuthReply>

<c:reasonCode>100</c:reasonCode>

<c:amount>16.67</c:amount>

<c:authorizationCode>AUTH_CODE</c:authorizationCode>

<c:avsCode>X</c:avsCode>

<c:avsCodeRaw>I1</c:avsCodeRaw>

<c:authorizedDateTime>2014-05-01T14:17:41Z</c:authorizedDateTime>

<c:processorResponse>100</c:processorResponse>

<c:reconciliationID>RECONCILIATIONID</c:reconciliationID>

<c:ownerMerchantID>merchID</c:ownerMerchantID>

</c:ccAuthReply>

<c:afsReply>

<c:reasonCode>100</c:reasonCode>

<c:afsResult>62</c:afsResult>

<c:hostSeverity>1</c:hostSeverity>

<c:consumerLocalTime>10:17:39</c:consumerLocalTime>

<c:afsFactorCode>H^R</c:afsFactorCode>

<c:velocityInfoCode>VEL-ADDR^VEL-NAME</c:velocityInfoCode>

<c:scoreModelUsed>xxxxxxx</c:scoreModelUsed>

<c:binCountry>xx</c:binCountry>

<c:cardAccountType>Coxxxxxxxxx&E</c:cardAccountType>

<c:cardScheme>Vixxxxxxxit</c:cardScheme>

<c:cardIssuer>JPMOxxxxxxxxxxxxxxxxxN.A.</c:cardIssuer>

</c:afsReply>

<c:decisionReply>

<c:casePriority>x</c:casePriority>

<c:activeProfileReply/>

</c:decisionReply>

</c:replyMessage>

Cybersource Token and Authorization (paySubscriptionCreate and ccAuthService) Transaction: Sample Messages

A sample of a Cybersource Token and Authorization (paySubscriptionCreate and ccAuthService) transaction is presented below. This transaction sends the actual credit card number, rather than a token, to authorize a credit card payment. Cybersource replaces the credit card number with a token during the authorization process.

Request: See Cybersource Token and Authorization Request (paySubscriptionCreate and ccAuthService) XML Message for mapping details.

<requestMessage xmlns="urn:schemas-cybersource-com:transaction-data-1.57">

<merchantID xmlns="urn:schemas-cybersource-com:transaction-data-1.57">merchID</merchantID>

<merchantReferenceCode>CMPORDER_NBR</merchantReferenceCode>

<billTo>

<firstName>FIRST</firstName>

<lastName>LAST</lastName>

<street1>STREET1</street1>

<city>CITY</city>

<state>MA</state>

<postalCode>POSTAL</postalCode>

<country>US</country>

<email>null@cybersource.com</email>

</billTo>

<purchaseTotals>

<currency>USD</currency>

<grandTotalAmount>10.87</grandTotalAmount>

</purchaseTotals>

<card>

<accountNumber>***** REMOVED *****</accountNumber>

<expirationMonth>12</expirationMonth>

<expirationYear>2012</expirationYear>

<cardType>001</cardType>

</card>

<recurringSubscriptionInfo>

<frequency>on-demand</frequency>

</recurringSubscriptionInfo>

<decisionManager>

<enabled>false</enabled>

</decisionManager>

<ccAuthService run="true">

<commerceIndicator>moto</commerceIndicator>

</ccAuthService>

<paySubscriptionCreateService run="true" />

</requestMessage>

Response: See Cybersource Token and Authorization Response (paySubscriptionCreate and ccAuthService) XML Message for mapping details.

<c:replyMessage xmlns:c="urn:schemas-cybersource-com:transaction-data-1.57">

<c:merchantReferenceCode>CMPORDER_NBR</c:merchantReferenceCode>

<c:requestID>REQUEST_ID</c:requestID>

<c:decision>ACCEPT</c:decision>

<c:reasonCode>100</c:reasonCode>

<c:requestToken>REQUEST_TOKEN</c:requestToken>

<c:purchaseTotals>

<c:currency>USD</c:currency>

</c:purchaseTotals>

<c:ccAuthReply>

<c:reasonCode>100</c:reasonCode>

<c:amount>10.87</c:amount>

<c:authorizationCode>AUTH_CODE</c:authorizationCode>

<c:avsCode>X</c:avsCode>

<c:avsCodeRaw>I1</c:avsCodeRaw>

<c:authorizedDateTime>2011-07-01T14:55:04Z</c:authorizedDateTime>

<c:processorResponse>100</c:processorResponse>

<c:reconciliationID>RECONCILIATIONID</c:reconciliationID>

</c:ccAuthReply>

<c:paySubscriptionCreateReply>

<c:reasonCode>100</c:reasonCode>

<c:subscriptionID>SUBSCRIPTION_ID</c:subscriptionID>

</c:paySubscriptionCreateReply>

</c:replyMessage>

Cybersource Debit Deposit (ccCaptureService) Transaction: Sample Messages

A sample of a Cybersource Debit Deposit (ccCaptureService) transaction is presented below.

Request: See Cybersource Debit Deposit Request (ccCaptureService) XML Message for mapping details.

<requestMessage xmlns="urn:schemas-cybersource-com:transaction-data-1.57">

<merchantID xmlns="urn:schemas-cybersource-com:transaction-data-1.57">merchID</merchantID>

<merchantReferenceCode>CMPORDER_NBR</merchantReferenceCode>

<invoiceHeader>

<userPO>USER_PO</userPO>

</invoiceHeader>

<item id="0">

<unitPrice>10.35</unitPrice>

<taxAmount>0.5175</taxAmount>

</item>

<purchaseTotals>

<currency>USD</currency>

<grandTotalAmount>10.87</grandTotalAmount>

</purchaseTotals>

<ccCaptureService run="true">

<authRequestID>AUTH_REQ_ID</authRequestID>

</ccCaptureService>

</requestMessage>

Response: See Cybersource Debit Deposit Response (ccCaptureService) XML Message for mapping details.

<c:replyMessage xmlns:c="urn:schemas-cybersource-com:transaction-data-1.57">

<c:merchantReferenceCode>CMPORDER_NBR</c:merchantReferenceCode>

<c:requestID>REQUEST_ID</c:requestID>

<c:decision>ACCEPT</c:decision>

<c:reasonCode>100</c:reasonCode>

<c:requestToken>REQUEST_TOKEN</c:requestToken>

<c:purchaseTotals>

<c:currency>USD</c:currency>

</c:purchaseTotals>

<c:ccCaptureReply>

<c:reasonCode>100</c:reasonCode>

<c:requestDateTime>2011-07-01T17:46:49Z</c:requestDateTime>

<c:amount>10.87</c:amount>

<c:reconciliationID>RECONCILIATIONID</c:reconciliationID>

</c:ccCaptureReply>

</c:replyMessage>

Cybersource Credit Deposit (ccCreditService) Transaction: Sample Messages

A sample of a Cybersource Credit Deposit (ccCreditService) transaction is presented below.

Request: See Cybersource Credit Deposit Request (ccCreditService) XML Message for mapping details.

<requestMessage xmlns="urn:schemas-cybersource-com:transaction-data-1.57">

<merchantID xmlns="urn:schemas-cybersource-com:transaction-data-1.57">merchID</merchantID>

<merchantReferenceCode>CMPORDER_NBR</merchantReferenceCode>

<invoiceHeader>

<userPO>USER_PO</userPO>

</invoiceHeader>

<billTo>

<firstName>FIRST</firstName>

<lastName>LAST</lastName>

<street1>STREET1</street1>

<city>CITY</city>

<state>MA</state>

<postalCode>POSTAL</postalCode>

<country>US</country>

<email>null@cybersource.com</email>

</billTo>

<item id="0">

<unitPrice>10.35</unitPrice>

<quantity>1</quantity>

<productCode>ITEM</productCode>

<productName>REGULAR ITEM - BACK IN BUSINESS</productName>

<productSKU />

<taxAmount>0.5175</taxAmount>

<unitOfMeasure>EA</unitOfMeasure>

<taxRate>0.0500</taxRate>

<totalAmount>10.35</totalAmount>

<discountAmount>39.65</discountAmount>

<commodityCode>0</commodityCode>

</item>

<purchaseTotals>

<currency>USD</currency>

<discountAmount>39.65</discountAmount>

<grandTotalAmount>10.87</grandTotalAmount>

<freightAmount>0.00</freightAmount>

</purchaseTotals>

<recurringSubscriptionInfo>

<subscriptionID>SUBSCRIPTION_ID</subscriptionID>

<frequency>on-demand</frequency>

</recurringSubscriptionInfo>

<ccCreditService run="true">

<purchasingLevel>3</purchasingLevel>

</ccCreditService>

</requestMessage>

Response: See Cybersource Credit Deposit Response (ccCreditService) XML Message for mapping details.

<c:replyMessage xmlns:c="urn:schemas-cybersource-com:transaction-data-1.57">

<c:merchantReferenceCode>CMPORDER_NBR</c:merchantReferenceCode>

<c:requestID>REQUEST_ID</c:requestID>

<c:decision>ACCEPT</c:decision>

<c:reasonCode>100</c:reasonCode>

<c:requestToken>REQUEST_TOKEN</c:requestToken>

<c:purchaseTotals>

<c:currency>USD</c:currency>

</c:purchaseTotals>

<c:ccCreditReply>

<c:reasonCode>100</c:reasonCode>

<c:requestDateTime>2011-07-01T20:14:15Z</c:requestDateTime>

<c:amount>10.87</c:amount>

<c:reconciliationID>RECONCILIATIONID</c:reconciliationID>

<c:purchasingLevel3Enabled>Y</c:purchasingLevel3Enabled>

<c:ownerMerchantID>merchID</c:ownerMerchantID>

</c:ccCreditReply>

</c:replyMessage>

Cybersource Authorization and Deposit (ccAuthService and ccCaptureService) Transaction: Sample Messages

A sample of a Cybersource Authorization and Deposit (ccAuthService and ccCaptureService) transaction is presented below.

Request: See Cybersource Authorization and Deposit Request (ccAuthService and ccCaptureService) XML Message for mapping details.

<requestMessage xmlns="urn:schemas-cybersource-com:transaction-data-1.57">

<merchantID xmlns="urn:schemas-cybersource-com:transaction-data-1.57">merchID</merchantID>

<merchantReferenceCode>CMPORDER_NBR</merchantReferenceCode>

<invoiceHeader>

<userPO>USER_PO</userPO>

</invoiceHeader>

<item id="0">

<unitPrice>10.35</unitPrice>

<quantity>4</quantity>

<productCode>ITEM</productCode>

<productName>REGULAR ITEM - BACK IN BUSINESS</productName>

<productSKU />

<taxAmount>2.07</taxAmount>

<unitOfMeasure>EA</unitOfMeasure>

<taxRate>0.0500</taxRate>

<totalAmount>41.40</totalAmount>

<discountAmount>158.60</discountAmount>

<commodityCode>0</commodityCode>

</item>

<item id="1">

<unitPrice>10.35</unitPrice>

<quantity>1</quantity>

<productCode>ITEM</productCode>

<productName>REGULAR ITEM - BACK IN BUSINESS</productName>

<productSKU />

<taxAmount>0.5175</taxAmount>

<unitOfMeasure>EA</unitOfMeasure>

<taxRate>0.0500</taxRate>

<totalAmount>10.35</totalAmount>

<discountAmount>39.65</discountAmount>

<commodityCode>0</commodityCode>

</item>

<purchaseTotals>

<currency>USD</currency>

<discountAmount>198.25</discountAmount>

<grandTotalAmount>27.17</grandTotalAmount>

<freightAmount>0.00</freightAmount>

</purchaseTotals>

<recurringSubscriptionInfo>

<subscriptionID>SUBSCRIPTION_ID</subscriptionID>

<frequency>on-demand</frequency>

</recurringSubscriptionInfo>

<decisionManager>

<enabled>false</enabled>

</decisionManager>

<ccAuthService run="true">

<commerceIndicator>moto</commerceIndicator>

</ccAuthService>

<ccCaptureService run="true">

<purchasingLevel>3</purchasingLevel>

</ccCaptureService>

</requestMessage>

Response: See Cybersource Authorization and Deposit Response (ccAuthService and ccCaptureService) XML Message for mapping details.

<c:replyMessage xmlns:c="urn:schemas-cybersource-com:transaction-data-1.57">

<c:merchantReferenceCode>CMPORDER_NBR</c:merchantReferenceCode>

<c:requestID>REQUEST_ID</c:requestID>

<c:decision>ACCEPT</c:decision>

<c:reasonCode>100</c:reasonCode>

<c:requestToken>REQUEST_TOKEN</c:requestToken>

<c:purchaseTotals>

<c:currency>USD</c:currency>

</c:purchaseTotals>

<c:ccAuthReply>

<c:reasonCode>100</c:reasonCode>

<c:amount>27.17</c:amount>

<c:authorizationCode>AUTH_CODE</c:authorizationCode>

<c:avsCode>X</c:avsCode>

<c:avsCodeRaw>I1</c:avsCodeRaw>

<c:authorizedDateTime>2011-07-05T12:58:27Z</c:authorizedDateTime>

<c:processorResponse>100</c:processorResponse>

<c:reconciliationID>RECONCILIATIONID</c:reconciliationID>

<c:ownerMerchantID>merchID</c:ownerMerchantID>

</c:ccAuthReply>

<c:ccCaptureReply>

<c:reasonCode>100</c:reasonCode>

<c:requestDateTime>2011-07-05T12:58:27Z</c:requestDateTime>

<c:amount>27.17</c:amount>

<c:reconciliationID>RECONCILIATIONID</c:reconciliationID>

<c:purchasingLevel3Enabled>Y</c:purchasingLevel3Enabled>

</c:ccCaptureReply>

</c:replyMessage>

Cybersource Authorization Reversal (ccAuthReversalService) Transaction: Sample Messages

A sample of a Cybersource Authorization Reversal (ccAuthReversalService) transaction is presented below.

Request: See Cybersource Authorization Reversal Request (ccAuthReversalService) XML Message for mapping details.

<requestMessage xmlns="urn:schemas-cybersource-com:transaction-data-1.57">

<merchantID xmlns="urn:schemas-cybersource-com:transaction-data-1.57">merchID</merchantID>

<merchantReferenceCode>CMPORDER_NBR</merchantReferenceCode>

<purchaseTotals>

<currency>USD</currency>

<grandTotalAmount>25.57</grandTotalAmount>

</purchaseTotals>

<ccAuthReversalService run="true">

<authRequestID>AUTH_REQ_ID</authRequestID>

</ccAuthReversalService>

</requestMessage>

Response: See Cybersource Authorization Reversal Response (ccAuthReversalService) XML Message for mapping details.

<c:replyMessage xmlns:c="urn:schemas-cybersource-com:transaction-data-1.57">

<c:merchantReferenceCode>CMPORDER_NBR</c:merchantReferenceCode>

<c:requestID>REQUEST_ID</c:requestID>

<c:decision>ACCEPT</c:decision>

<c:reasonCode>100</c:reasonCode>

<c:requestToken>REQUEST_TOKEN</c:requestToken>

<c:purchaseTotals>

<c:currency>USD</c:currency>

</c:purchaseTotals>

<c:ccAuthReversalReply>

<c:reasonCode>100</c:reasonCode>

<c:amount>25.57</c:amount>

<c:processorResponse>100</c:processorResponse>

<c:requestDateTime>2011-07-05T13:31:28Z</c:requestDateTime>

</c:ccAuthReversalReply>

</c:replyMessage>

SO04_16CYB OMSCS 19.0 December 2019 OHC