Skip to content

Sdk 2.0.1 - #100

Open
Bozhidar-Banchev wants to merge 79 commits into
Nuvei:masterfrom
Bozhidar-Banchev:sdk-2.0.1
Open

Sdk 2.0.1#100
Bozhidar-Banchev wants to merge 79 commits into
Nuvei:masterfrom
Bozhidar-Banchev:sdk-2.0.1

Conversation

@Bozhidar-Banchev

Copy link
Copy Markdown
Contributor

rc 2.0.1

radostin.tonev and others added 30 commits May 18, 2023 17:51
Update state validation from 2 to 5 characters.

Related work items: #589224, #589753
pbi/be-599558 -add ExternalTokenProvider to InitPaymentRequest in java SDK

Test plan:
-GIVEN  test:
src/test/testng/initPayment/initPayment-cardData-success.xml,
- WHEN apply ExternalTokenProvider in InitPaymentRequest
- THEN verify externalToken data is passed when we call  /initPayment.do in Cachier.![requestSDK.png](https://dev.azure.com/nuvei/e5fb54f4-ee3d-45dd-bf91-e1ad63931dc3/_apis/git/repositories/9af0a573-46b3-47dd-b666-75b0f84b648b/pullRequests/50486/attachments/requestSDK.png) ![CashierRequest.png](https://dev.azure.com/nuvei/e5fb54f4-ee3d-45dd-bf91-e1ad63931dc3/_apis/git/repositories/9af0a573-46b3-47dd-b666-75b0f84b648b/pullRequests/50486/attachments/CashierRequest.png)

Related work items: #599558
fix_property in CardResponse
change property from ExternalTokenProvider to  private String externalTokenProvider;
The same as in Chashier com.safecharge.ppp.api.dto.cashier.rest.payment.CardResponseDTO

Related work items: #607411
Related work items: #599558
Bug fixes in external token provider functionality and extending the functionality to initPayment.

Related work items: #599558, #607411
Update account capture with URL details

Related work items: #604602
…IP Preferred Web SDK solution

Related work items: #626165
Update Readme.md

Related work items: #619038
Related work items: #589224, #589753, #599558, #607411, #619038
Related work items: #599558, #604602, #607411, #619038, #621366, #626165
…ended with new fields

#582426- Columbia Fields - AddendumsLocalPayment extended with new fields

Related work items: #582426
…erAddress DTO

625794 - Add addressLines and shipAddressLines in UserAddress DTO

Related work items: #624435, #625794
Related work items: #598819, #622454
#624390 - merchantAdviceCode added

Related work items: #624390, #624556
Add AFT indicator in /payment response

Related work items: #629557
…equest

634879 - Add CurrencyConversion support for payout request

Related work items: #569085, #634879
new Release 1.7.4

Related work items: #569085, #582426, #598819, #622454, #624390, #624435, #624556, #625794, #629557, #634879
bozhidar.banchev and others added 30 commits May 16, 2024 11:45
add item tax fields

Related work items: #802748, #802753
The Java SDK project was limited to use only libraries located in the local jFrog.

Related work items: #752665
update version to v.1.7.8

Related work items: #782968
To keep the NotNull validation for the SettleTransaction and VoidTransaction requests I had to extract the relatedTransactionId field into every implementing class.

Now in the RefundTransactionRequest the client needs to provide one of  relatedTransactionId (which makes the refund referenced) or payment option with credit card information or payment option with UPO ID.

That's why I introduced one more validation with the AtLeastOneFieldPresent annotation. If you think the additional validation is unnecessary I will remove it.

I tested referenced and unreferenced refund with a credit card information.

Related work items: #808855
new version 1.7.9

Related work items: #836472
revert-sonatype-dependency

Related work items: #836472
#856693
adds **userTokenId** to JAVA SDK refundTransactionRequest
#Tested locally with:

        SafechargeRequestExecutor requestExecutor = SafechargeRequestExecutor.getInstance();

        MerchantInfo merchantInfo = new
        MerchantInfo("vRZsQfFAey7c9sElV0QGIiKua6EDDHDEi8nJTZ11XQK9pMLJ4cB3w6vHeDH5KC74",
                "3865149424377641344",
                "37341", "http://localhost:8080/ppp/", Constants.HashAlgorithm.MD5);

        UrlDetails urlDetails = new UrlDetails();
        urlDetails.setNotificationUrl("");

        String clientRequestId = RequestUtils.calculateClientRequestId(RequestUtils.calculateTimestamp());
        RefundPaymentOption refundPaymentOption = new RefundPaymentOption();
        refundPaymentOption.setUserPaymentOptionId("7063075");

        SafechargeBaseRequest request = RefundTransactionRequest.builder()
                .addMerchantInfo(merchantInfo)
                .addAmount("10")
                .addCurrency("EUR")
                .addRefundPaymentOption(refundPaymentOption)
                .addUserTokenId("blkakadsf")
                .addClientRequestId(clientRequestId)
                .addURLDetails(urlDetails)
                .build();

        SafechargeResponse response = requestExecutor.executeRequest(request);

        System.out.println(response);

Result:
RefundTransactionResponse{merchantAdviceCode='',transactionId='2110000000014943016', externalTransactionId='', userPaymentOptionId=7063075, paymentMethodErrorCode=null, paymentMethodErrorReason='null', gwErrorCode=0, gwErrorReason='null', gwExtendedErrorCode=0, **transactionStatus='APPROVED'**, authCode='004882', paRequest='null', redirectUrl='null', eci='null', threeDReason='null', threeDFlow='null', externalTokenInfo='null', partialApprovalDetails='null', cvv2Replay='null', avsCode='null', transactionType='Credit', customData='', fraudDetails='null', acquirerId='103', bin='476134', last4Digits='1390', ccCardNumber='4****1390', ccExpMonth='12', cardType='Credit', cardBrand='VISA', issuerCountry='SG', methodUrl='null', threeDSVersion='null', v2supported='null', methodPayload='null', acsChallengeMandated='null', cReq='null', authenticationType='null', cardHolderInfoText='null', whiteListStatus='null', cavv='null', directoryServerId='null', directoryServerPublicKey='null', acsSignedContent='null', serverTransId='null', xid='null', threeDresult='null', dsTransID='null', threeDReasonId='null', challengeCancelReasonId='null', challengeCancelReason='null', isLiabilityOnIssuer='null', isExemptionRequestInAuthentication='null', challengePreferenceReason='null', internalRequestId=1510461, **status=SUCCESS**, errCode=0, reason='', merchantId='3865149424377641344', merchantSiteId='37341', version='1.0', clientRequestId='1724418612000', sessionToken='null', clientUniqueId='null', errorType=null, apiType=null, hint=null}

Related work items: #856693, #860440, #860441
Update to version 1.7.10

Related work items: #861850
Support sg_NotUseCVV in payment
Depends on !90952

Related work items: #866490, #866494
Support `serviceDueDate` in payment
Tested locally with Java SDK Automation test for payment.

Related work items: #824245, #824250
Change Safecharge to Nuvei reference

Related work items: #437452
Related work items: #1005132
#1026376 - userTokenId max length modified

Related work items: #1026374, #1026376
#1003530 remove unused file (brought with revert)

Related work items: #1003530
…entral

Because of OSSRH [deprecation](https://central.sonatype.org/news/20250326_ossrh_sunset/) we need to update the way we publish this to maven.

Changes were done according to https://central.sonatype.org/publish/publish-portal-maven/
Also according to the docs [snapshot](https://central.sonatype.org/publish/publish-portal-snapshots/#publishing-with-the-central-publishing-maven-plugin) section, we shouldn't need explicit distribution management configuration

Related work items: #1155022
Add developers tag

Related work items: #1155022
Add auto publish option.

Related work items: #1155022
# Conflicts:
#	README.md
#	pom-github.xml
#	pom.xml
#	src/main/java/com/nuvei/biz/Nuvei.java
#	src/main/java/com/nuvei/biz/RequestBuilder.java
#	src/main/java/com/nuvei/model/CompanyDetails.java
#	src/main/java/com/nuvei/model/RefundPaymentOption.java
#	src/main/java/com/nuvei/model/RiskInfo.java
#	src/main/java/com/nuvei/model/ShippingTrackingDetails.java
#	src/main/java/com/nuvei/model/StoredCredentials.java
#	src/main/java/com/nuvei/request/AccountCaptureRequest.java
#	src/main/java/com/nuvei/request/Authorize3dAndPaymentRequest.java
#	src/main/java/com/nuvei/request/CreateUserRequest.java
#	src/main/java/com/nuvei/request/NuveiOrderDetailsRequest.java
#	src/main/java/com/nuvei/request/NuveiTransactionRequest.java
#	src/main/java/com/nuvei/request/PayoutRequest.java
#	src/main/java/com/nuvei/request/SettleTransactionRequest.java
#	src/main/java/com/nuvei/request/builder/NuveiOrderBuilder.java
#	src/main/java/com/nuvei/request/builder/NuveiTransactionBuilder.java
#	src/main/java/com/nuvei/response/InitPaymentResponse.java
#	src/main/java/com/nuvei/util/AtLeastOneFieldPresent.java
#	src/main/java/com/nuvei/util/AtLeastOneFieldPresentValidator.java
#	src/main/java/com/safecharge/model/AddendumsLocalPayment.java
#	src/main/java/com/safecharge/model/InitPaymentCard.java
#	src/main/java/com/safecharge/model/Item.java
#	src/main/java/com/safecharge/request/PaymentRequest.java
#	src/main/java/com/safecharge/request/RefundTransactionRequest.java
#	src/main/java/com/safecharge/request/VoidTransactionRequest.java
#	src/main/java/com/safecharge/response/AccountCaptureResponse.java
#	src/main/java/com/safecharge/response/GetMerchantPaymentMethodsResponse.java
#	src/main/java/com/safecharge/response/RefundTransactionResponse.java
#	src/test/java/com/nuvei/biz/NuveiTest.java
#	src/test/java/com/nuvei/test/workflow/APMWorkflowTest.java
#	src/test/java/com/nuvei/test/workflow/CompleteFunctionalTest.java
#	src/test/java/com/nuvei/test/workflow/CreditCardWorkflowTest.java
#	src/test/java/com/nuvei/test/workflow/TestVariables.java
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants