Skip to content

Commit

Permalink
Merge pull request #11 from realexpayments-developers/master
Browse files Browse the repository at this point in the history
Updated hash for Mobile-Auth to support Google Pay.
  • Loading branch information
RealexITSO authored Mar 22, 2018
2 parents 0ed518e + 6b2d66c commit 8b13225
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 7 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# Change Log
All notable changes to the SDK will be documented in this file.

## [1.3.1]
- Updated hash for Mobile-Auth to support Google Pay.

## [1.3]
- Updated endpoints.

## [1.2]
- Added Card Storage: Receipt-in, Payment-out, Payer-New, Payer-Edit, Card-new, Card-update, Card-delete, Verify Enrolled Card, DCC Rate Lookup, DCC + Auth, Receipt in OTB

Expand Down
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2017 Pay and Shop Ltd t/a Realex Payments
Copyright (c) 2018 Pay and Shop Ltd t/a Realex Payments

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ Add this dependency to your project's POM:
<dependency>
<groupId>com.realexpayments.remote.sdk</groupId>
<artifactId>rxp-remote-java</artifactId>
<version>1.3</version>
<version>1.3.1</version>
</dependency>
```

### Gradle users
Add this dependency to your project's build file:
```
compile "com.realexpayments.remote.sdk:rxp-remote-java:1.3"
compile "com.realexpayments.remote.sdk:rxp-remote-java:1.3.1"
```
## Usage

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.realexpayments.remote.sdk</groupId>
<artifactId>rxp-remote-java</artifactId>
<version>1.3</version>
<version>1.3.1</version>
<name>Realex Payments Remote Java SDK</name>
<description>The official Realex Payments Remote Java SDK</description>
<url>http://www.realexpayments.com</url>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1686,7 +1686,11 @@ public PaymentRequest hash(String secret) {
.append(merchantId)
.append(".")
.append(orderId)
.append("...")
.append(".")
.append(amount)
.append(".")
.append(currency)
.append(".")
.append(token)
.toString();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public void testValidExpiryDatePastMonthThisYear() {
String mm = (month < 10 ? ("0".concat(Integer.toString(month))) : Integer.toString(month));
String yy = Integer.toString(year).substring(2);
String expiryDate = mm + yy;
boolean expectedResult = false;
boolean expectedResult = true;

boolean result = CardValidationUtils.performExpiryDateCheck(expiryDate);
Assert.assertEquals(message + " : " + expiryDate, expectedResult, result);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public static Collection testData() {
{ "Incorrect date MMYY", "1212", false },
{ "Incorrect date MMYY", "0015", false },
{ "Incorrect date MMYY", "0415", false },
{ "Correct date MMYY", "1216", true },
{ "Correct date MMYY", "1225", true },
{ "Incorrect date MMYY", "0021", false },
};
return Arrays.asList(testCases);
Expand Down

0 comments on commit 8b13225

Please sign in to comment.