Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ca3d801

Browse files
mateuszpajakMateusz Pająk
andauthored
Remove redundant env variable (#23)
Co-authored-by: Mateusz Pająk <[email protected]>
1 parent 1f093dc commit ca3d801

File tree

6 files changed

+5
-6
lines changed

6 files changed

+5
-6
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ jobs:
2121
- name: Execute Gradle build
2222
env:
2323
SECRET_KEY: ${{ secrets.SECRET_KEY }}
24-
EXPLICIT_MERCHANT_SECRET_KEY: ${{ secrets.EXPLICIT_MERCHANT_SECRET_KEY }}
2524
EXPLICIT_MERCHANT: ${{ secrets.EXPLICIT_MERCHANT }}
2625
run: ./gradlew build
2726

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ To do this you will need to add this configuration to your `pom.xml`:
1414
<dependency>
1515
<groupId>com.shift4</groupId>
1616
<artifactId>shift4-java</artifactId>
17-
<version>2.8.0</version>
17+
<version>2.9.0</version>
1818
</dependency>
1919
```
2020

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ plugins {
55
}
66

77
group = "com.shift4"
8-
version = "2.8.0"
8+
version = "2.9.0"
99
archivesBaseName = "shift4-java"
1010

1111
repositories {

src/test/java/com/shift4/AbstractShift4GatewayTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public AbstractShift4GatewayTest() {
1717
}
1818

1919
public Shift4Gateway createExplicitMerchantGateway() {
20-
return createGateway("EXPLICIT_MERCHANT_SECRET_KEY", true);
20+
return createGateway("SECRET_KEY", true);
2121
}
2222

2323
private Shift4Gateway createGateway(String secretKeyParamName, boolean withExplicitMerchant) {

src/test/java/com/shift4/ChargesTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ void shouldCreateChargeUsingExplicitMerchant() {
130130

131131
// when
132132
Charge createdCharge = gatewayWithExplicitMerchant.createCharge(request);
133-
Charge retrievedCharge = gateway.retrieveCharge(createdCharge.getId());
133+
Charge retrievedCharge = gatewayWithExplicitMerchant.retrieveCharge(createdCharge.getId());
134134

135135
// then
136136
assertThat(retrievedCharge.getStatus()).isEqualTo(ChargeStatus.SUCCESSFUL);

src/test/java/com/shift4/UploadsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ void shouldUploadUsingExplicitMerchant(@TempDir File tempDir) throws IOException
3434
File tempFile = createTestFile(tempDir);
3535
// when
3636
FileUpload createdFileUpload = gatewayWithExplicitMerchant.createFileUpload(tempFile, DISPUTE_EVIDENCE);
37-
FileUpload retirevedFileUpload = gateway.retrieveFileUpload(createdFileUpload.getId());
37+
FileUpload retirevedFileUpload = gatewayWithExplicitMerchant.retrieveFileUpload(createdFileUpload.getId());
3838
// then
3939
assertThat(retirevedFileUpload.getId()).isNotBlank();
4040
}

0 commit comments

Comments
 (0)