Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
target
.idea
*.iml
.claude/*.local.*
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Add this dependency to your project's POM:
<dependency>
<groupId>jp.pay</groupId>
<artifactId>payjp-java</artifactId>
<version>0.8.0</version>
<version>0.9.0</version>
</dependency>
```

Expand All @@ -27,7 +27,7 @@ Add this dependency to your project's POM:
Add this dependency to your project's build file:

```groovy
compile "jp.pay:payjp-java:0.8.0"
compile "jp.pay:payjp-java:0.9.0"
```

### Others
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.8.0
0.9.0
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<groupId>jp.pay</groupId>
<artifactId>payjp-java</artifactId>
<packaging>jar</packaging>
<version>0.8.0</version>
<version>0.9.0</version>
<name>pay-java</name>
<url>https://github.com/payjp/payjp-java</url>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/jp/pay/Payjp.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

public abstract class Payjp {
public static final String LIVE_API_BASE = "https://api.pay.jp";
public static final String VERSION = "0.8.0";
public static final String VERSION = "0.9.0";
public static volatile String apiKey;
public static volatile String apiVersion;
public static volatile Integer maxRetry = 0;
Expand Down
5 changes: 5 additions & 0 deletions src/main/java/jp/pay/model/Card.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ public class Card extends ExternalAccount implements MetadataStore<Card> {
String email;
String phone;
String threeDSecureStatus;
Boolean isJp;

public Card update(Map<String, Object> params)
throws AuthenticationException, InvalidRequestException,
Expand Down Expand Up @@ -206,4 +207,8 @@ public String getThreeDSecureStatus() {
return threeDSecureStatus;
}

public Boolean getIsJp() {
return isJp;
}

}
1 change: 1 addition & 0 deletions src/test/java/jp/pay/model/ChargeTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ public void testDeserialize() throws PayjpException, IOException {
assertEquals("liveaccount@example.com", ca.getEmail());
assertEquals("+81301234567", ca.getPhone());
assertNull(ca.getThreeDSecureStatus());
assertTrue(ca.getIsJp());

assertEquals("Visa", ca.getBrand());
}
Expand Down
1 change: 1 addition & 0 deletions src/test/java/jp/pay/model/TokenTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public void testDeserialize() throws PayjpException, IOException {
assertEquals(Boolean.FALSE, token.getLivemode());
assertEquals(Boolean.FALSE, token.getUsed());
assertEquals("card", token.getCard().getObject());
assertEquals(Boolean.FALSE, token.getCard().getIsJp());
}

@Test
Expand Down
3 changes: 2 additions & 1 deletion src/test/resources/jp/pay/model/charge.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"object": "card",
"email": "liveaccount@example.com",
"phone": "+81301234567",
"three_d_secure_status": null
"three_d_secure_status": null,
"is_jp": true
},
"created": 1578372537,
"currency": "jpy",
Expand Down
3 changes: 2 additions & 1 deletion src/test/resources/jp/pay/model/token.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"object": "card",
"three_d_secure_status": "verified",
"email": "liveaccount@example.com",
"phone": "+81301234567"
"phone": "+81301234567",
"is_jp": false
},
"created": 1442290383,
"id": "tok_5ca06b51685e001723a2c3b4aeb4",
Expand Down
Loading