On This Page
Authorizing a Payment with Visa Using Cybersource Decryption
Method
Cybersource
Decryption
MethodThis section provides the following information:
Required Fields for Authorizing a Payment Using Visa and the Cybersource Decryption Method
Cybersource
Decryption MethodThe following fields are required when submitting an authorization request using the
Cybersource
decryption method:- ccAuthService_commerceIndicator-set this field tointernet.
- encryptedPayment_data
- Set the field to the value that was returned from Samsung Pay in the3ds.datablock as follows:
- Retrieve the payment data from Samsung Pay in JSON Web Encryption (JWE) format.
- Encode it in Base64.
- Add the value to theencryptedPayment_datafield.
- encryptedPayment_descriptor-set this field toRklEPUNPTU1PTi5TQU1TVU5HLklOQVBQLlBBWU1FTlQ=.
- paymentNetworkToken_transactionType-set this field to1.
- paymentSolution-set this field to008.
Related Information
Example: Cybersource Decryption with
Visa Using the Simple Order API
Cybersource
Decryption with
Visa Using the Simple Order APIAuthorization Request
<requestMessage xmlns="urn:schemas-cybersource-com:transaction-data-1.121"> <merchantID>demomerchant</merchantID> <merchantReferenceCode>demorefnum</merchantReferenceCode> <billTo> <firstName>James</firstName> <lastName>Smith</lastName> <street1>1295 Charleston Road</street1> <city>Test City</city> <state>CA</state> <postalCode>99999</postalCode> <country>US</country> <email>demo@example.com</email> </billTo> <purchaseTotals> <currency>USD</currency> <grandTotalAmount>5.00</grandTotalAmount> </purchaseTotals> <ccAuthService run="true"> <commerceIndicator>internet</commerceIndicator> </ccAuthService> <encryptedPayment> <data>ABCDEFabcdefABCDEFabcdef0987654321234567</data> <descriptor>RklEPUNPTU1PTi5TQU1TVU5HLklOQVBQLlBBWU1FTlQ=</descriptor> </encryptedPayment> <paymentSolution>008</paymentSolution> <paymentNetworkToken> <transactionType>1</transactionType> </paymentNetworkToken> </requestMessage>
Authorization Response
<c:replyMessage> <c:merchantReferenceCode>demorefnum</c:merchantReferenceCode> <c:requestID>4465840340765000001541</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>5.00</c:amount> <c:authorizationCode>888888</c:authorizationCode> <c:avsCode>X</c:avsCode> <c:avsCodeRaw>I1</c:avsCodeRaw> <c:authorizedDateTime>2015-11-03T20:53:54Z</c:authorizedDateTime> <c:processorResponse>100</c:processorResponse> <c:reconciliationID>11267051CGJSMQDC</c:reconciliationID> </c:ccAuthReply> <c:token> <c:prefix>294672</c:prefix> <c:suffix>4397</c:suffix> <c:expirationMonth>08</c:expirationMonth> <c:expirationYear>2021</c:expirationYear> </c:token> </c:replyMessage>