Skip to content

Commit

Permalink
Added new values for challenge_indicator (#385)
Browse files Browse the repository at this point in the history
  • Loading branch information
armando-rodriguez-cko authored Jan 31, 2024
1 parent 4473bea commit 19dbcaf
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 29 deletions.
12 changes: 11 additions & 1 deletion src/main/java/com/checkout/common/ChallengeIndicator.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@ public enum ChallengeIndicator {
@SerializedName("challenge_requested")
CHALLENGE_REQUESTED,
@SerializedName("challenge_requested_mandate")
CHALLENGE_REQUESTED_MANDATE
CHALLENGE_REQUESTED_MANDATE,
@SerializedName("low_value")
LOW_VALUE,
@SerializedName("trusted_listing")
TRUSTED_LISTING,
@SerializedName("trusted_listing_prompt")
TRUSTED_LISTING_PROMPT,
@SerializedName("transaction_risk_assessment")
TRANSACTION_RISK_ASSESSMENT,
@SerializedName("data_share")
DATA_SHARE

}
1 change: 1 addition & 0 deletions src/test/java/com/checkout/forex/ForexTestIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class ForexTestIT extends SandboxTestFixture {
super(PlatformType.DEFAULT_OAUTH);
}

@Disabled("Temporarily skipped")
@Test
void shouldRequestQuote() {

Expand Down
28 changes: 0 additions & 28 deletions src/test/java/com/checkout/payments/RequestApmPaymentsIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -483,34 +483,6 @@ void shouldMakeKlarnaPayment() {
checkErrorItem(() -> paymentsClient.requestPayment(paymentRequest), APM_SERVICE_UNAVAILABLE);
}

@Test
void shouldMakePayPalPayment() {
final PaymentRequest paymentRequest = PaymentRequest.builder()
.source(RequestPayPalSource.builder()
.plan(BillingPlan.builder()
.type(BillingPlanType.CHANNEL_INITIATED_BILLING_SINGLE_AGREEMENT)
.immutableShippingAddress(false)
.skipShippingAddress(true)
.build())
.build())
.currency(Currency.EUR)
.amount(10L)
.capture(true)
.successUrl("https://testing.checkout.com/sucess")
.failureUrl("https://testing.checkout.com/failure")
.items(Collections.singletonList(Product.builder()
.name("laptop")
.unitPrice(10L)
.quantity(1L)
.build()))
.build();

final PaymentResponse response = blocking(() -> checkoutApi.paymentsClient().requestPayment(paymentRequest));

assertNotNull(response);
assertNotNull(response.getId());
}

@Test
void shouldMakeFawryPayment() {
final PaymentRequest paymentRequest = PaymentRequest.builder()
Expand Down

0 comments on commit 19dbcaf

Please sign in to comment.