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
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Changelog
All notable changes to this project will be documented in this file.

## [3.1.19]
- Changed `CardType` values for the `CardInformation` `Type` element to the BIN interchange group classifications: `Consumer Credit`, `Consumer Debit`, `Corporate Credit`, `Corporate Debit`.

## [3.1.18]
- Added possibility to pass client browser data in `MerchantApi` to support 3DS processing for wallet nontokenized flow (eg. GooglePay from desktop browser).

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

group = 'com.altapay'
version = '3.1.18'
version = '3.1.19'

repositories {
mavenCentral()
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ For integrating Java projects with the AltaPay gateway.
<dependency>
<groupId>com.altapay</groupId>
<artifactId>sdk-java</artifactId>
<version>3.1.18</version>
<version>3.1.19</version>
</dependency>

### Gradle
Expand Down
7 changes: 4 additions & 3 deletions src/main/resources/xsd/APIResponse.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -808,9 +808,10 @@

<xs:simpleType name="CardType">
<xs:restriction base="xs:string">
<xs:enumeration value="CREDIT"/>
<xs:enumeration value="DEBIT"/>
<xs:enumeration value="CHARGE_CARD"/>
<xs:enumeration value="Consumer Credit"/>
<xs:enumeration value="Consumer Debit"/>
<xs:enumeration value="Corporate Credit"/>
<xs:enumeration value="Corporate Debit"/>
</xs:restriction>
</xs:simpleType>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ void ParsePostBackXmlResponse_ReadECommerceWithout3dSecurePaymentSource() throws
}

@Test
void parseCardInformationType_credit() throws PensioAPIException, IOException, URISyntaxException {
void parseCardInformationType_consumerCredit() throws PensioAPIException, IOException, URISyntaxException {
String xmlResponse = readFile("com/pensio/api/txt/CardTypeCredit.xml");
APIResponse response = api.parsePostBackXMLParameter(xmlResponse);

Expand All @@ -92,7 +92,7 @@ void parseCardInformationType_credit() throws PensioAPIException, IOException, U
.get(0)
.getCardInformation()
.getType();
Assertions.assertEquals(com.pensio.api.generated.CardType.CREDIT, type);
Assertions.assertEquals(com.pensio.api.generated.CardType.CONSUMER_CREDIT, type);
}

@Test
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/com/pensio/api/txt/CardTypeCredit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<IssuingCountry>GB</IssuingCountry>
<LastFourDigits>0466</LastFourDigits>
<Scheme>Visa</Scheme>
<Type>CREDIT</Type>
<Type>Consumer Credit</Type>
</CardInformation>
<ThreeDSecureResult>Not_Attempted</ThreeDSecureResult>
<LiableForChargeback>Merchant</LiableForChargeback>
Expand Down
Loading