Skip to content

Commit 4a53f7f

Browse files
Update DecryptVisaCheckoutData.java
1 parent 8cebf36 commit 4a53f7f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/net/authorize/sample/VisaCheckout/DecryptVisaCheckoutData.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public static ANetApiResponse run(String apiLoginId, String transactionKey) {
4242
if (response != null) {
4343

4444
System.out.println("Response Code : "+ response.getMessages().getResultCode());
45-
if (response.getMessages().getResultCode() == MessageTypeEnum.OK) {
45+
if (response.getMessages().getResultCode() != MessageTypeEnum.OK) {
4646
System.out.println("Successful Visa Checkout Decryption");
4747
System.out.println("Card Number : " + response.getCardInfo().getCardNumber());
4848
System.out.println("Amount : " + response.getPaymentDetails().getAmount());

0 commit comments

Comments
 (0)