On This Page
Processing a Healthcare Sale
This section provides the information you need to process a healthcare sale
transaction.
A sale combines an authorization and a capture into a single transaction.
Endpoint
Set the
ccAuthService_run
field to
true
, and the ccCaptureService_run
field
to true
.Send the request to
https://ics2ws.ic3.com/commerce/1.x/transactionProcessor
.Required Fields for Processing a Healthcare Sale
- Set this value toHC.
- Set the value totrue.
- Set the value totrue.
- Possible values:
- clinic
- dental
- healthcare: The amount for this type should be greater than or equal to the sum of all amount types included in the request.
- prescription
- vision
Related Information
Simple Order Example: Processing a Healthcare Sale
Request
<requestMessage xmlns="urn:schemas-cybersource-com:transaction-data-1.165"> <merchantID>MD12345</merchantID> <merchantReferenceCode>ABC123</merchantReferenceCode> <billTo> <firstName>Tanya</firstName> <lastName>Lee</lastName> <street1>123 Main Street</street1> <street2>Suite 4</street2> <city>Small Town</city> <state>CA</state> <postalCode>98765</postalCode> <country>US</country> <phoneNumber>9876543210</phoneNumber> <email>[email protected]</email> </billTo> <purchaseTotals> <currency>USD</currency> <grandTotalAmount>200.00</grandTotalAmount> </purchaseTotals> <card> <accountNumber>4111111111111111</accountNumber> <expirationMonth>12</expirationMonth> <expirationYear>2027</expirationYear> <cvNumber>321</cvNumber> <cardType>001</cardType> </card> <ccAuthService run="true"> <cardProductSubtype>HC</cardProductSubtype> </ccAuthService> <ccCaptureService run="true"/> <healthCare id="0"> <amountType>healthcare</amountType> <amount>100.00</amount> </healthCare> <healthCare id="1"> <amountType>prescription</amountType> <amount>50.00</amount> </healthCare> <healthCare id="2"> <amountType>clinic</amountType> <amount>20.00</amount> </healthCare> <healthCare id="3"> <amountType>dental</amountType> <amount>25.00</amount> </healthCare> <healthCare id="4"> <amountType>vision</amountType> <amount>5.00</amount> </healthCare> </requestMessage>
Response to a Successful Request
<c:replyMessage xmlns:c="urn:schemas-cybersource-com:transaction-data-1.165"> <c:merchantReferenceCode>ABC123</c:merchantReferenceCode> <c:requestID>5997658713476733103095</c:requestID> <c:decision>ACCEPT</c:decision> <c:reasonCode>100</c:reasonCode> <c:purchaseTotals> <c:currency>USD</c:currency> </c:purchaseTotals> <c:ccAuthReply> <c:reasonCode>100</c:reasonCode> <c:amount>100.00</c:amount> <c:authorizationCode>831000</c:authorizationCode> <c:avsCode>Y</c:avsCode> <c:processorResponse>00</c:processorResponse> <c:reconciliationID>025419845739</c:reconciliationID> <c:merchantAdviceCode>01</c:merchantAdviceCode> <c:merchantAdviceCodeRaw>M001</c:merchantAdviceCodeRaw> <c:cavvResponseCode>2</c:cavvResponseCode> <c:cavvResponseCodeRaw>2</c:cavvResponseCodeRaw> <c:paymentNetworkTransactionID>016153570198200</c:paymentNetworkTransactionID> </c:ccAuthReply> <c:receiptNumber>845739</c:receiptNumber> <c:additionalData>ABC</c:additionalData> <c:card> <c:cardType>001</c:cardType> </c:card> <c:acquirerMerchantNumber>1234567890abcde</c:acquirerMerchantNumber> <c:pos> <c:terminalID>12345678</c:terminalID> </c:pos> </c:replyMessage>