On This Page
Authorizing a Payment with JCB Using Cybersource Decryption
Method
Cybersource
Decryption
MethodThis section provides the following information:
Required Fields for Authorizing a Payment Using JCB and the Cybersource
Decryption Method
Cybersource
Decryption MethodThe following fields are required when submitting an authorization request using the
Cybersource
decryption method:- encryptedPayment_data-set this field to the Base64-encoded value obtained from thepaymentDataproperty of thePKPaymentTokenobject.
- encryptedPayment_descriptor-set this field toRklEPUNPTU1PTi5TQU1TVU5HLklOQVBQLlBBWU1FTlQ=.
- paymentSolution-set this field to008.
Related Information
Authorizing a Payment
- Request the service. Set theccAuthService_runfield totrue, and send the request to one of these endpoints:
- Include the required fields in the request.
- Include optional fields in the request as needed.
- Check the response message to make sure that the request was successful. A value ofACCEPTfor thedecisionfield indicates success. For information about reason codes, see Reason Codes for the Simple Order API.
Example: Cybersource Decryption with JCB
Using the Simple Order API
Cybersource
Decryption with JCB
Using the Simple Order APIAuthorization Request
<requestMessage xmlns="urn:schemas-cybersource-com:transaction-data-1.121"> <merchantID>demomerchant</merchantID> <merchantReferenceCode>demorefnum</merchantReferenceCode> <billTo> <firstName>Jane</firstName> <lastName>Smith</lastName> <street1>123 Main Street</street1> <city>Small Town</city> <state>CA</state> <postalCode>98765</postalCode> <country>US</country> <email>jsmith@example.com</email> </billTo> <purchaseTotals> <currency>USD</currency> <grandTotalAmount>5.00</grandTotalAmount> </purchaseTotals> <encryptedPayment> <descriptor>RklEPUNPTU1PTi5TQU1TVU5HLklOQVBQLlBBWU1FTlQ=</descriptor> <data>ABCDEFabcdefABCDEFabcdef0987654321234567</data> <encoding>Base64</encoding> </encryptedPayment> <card> <cardType>007</cardType> </card> <ccAuthService run="true"/> <paymentSolution>008</paymentSolution> </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:token> <c:expirationMonth>07</c:expirationMonth> <c:expirationYear>2025</c:expirationYear> <c:prefix>239845</c:prefix> <c:suffix>2947</c:suffix> </c:token> <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:processorResponse>100</c:processorResponse> <c:reconciliationID>11267051CGJSMQDC</c:reconciliationID> </c:ccAuthReply> </c:replyMessage>