Skip to content

Commit 0fddb93

Browse files
committed
cards-xendit
1 parent 5cf1df4 commit 0fddb93

File tree

2 files changed

+5
-21
lines changed
  • crates/hyperswitch_connectors/src/connectors
  • cypress-tests/cypress/e2e/PaymentUtils

2 files changed

+5
-21
lines changed

crates/hyperswitch_connectors/src/connectors/xendit.rs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,8 @@ use hyperswitch_domain_models::{
3030
};
3131
use hyperswitch_interfaces::{
3232
api::{
33-
34-
self, ConnectorCommon, ConnectorCommonExt, ConnectorIntegration, ConnectorSpecifications,
35-
ConnectorRedirectResponse,
36-
ConnectorValidation,
37-
,
33+
self, ConnectorCommon, ConnectorCommonExt, ConnectorIntegration, ConnectorRedirectResponse,
34+
ConnectorSpecifications, ConnectorValidation,
3835
},
3936
configs::Connectors,
4037
errors,
@@ -165,9 +162,10 @@ impl ConnectorIntegration<Void, PaymentsCancelData, PaymentsResponseData> for Xe
165162
}
166163

167164
impl ConnectorValidation for Xendit {
168-
fn validate_capture_method(
165+
fn validate_connector_against_payment_request(
169166
&self,
170167
capture_method: Option<CaptureMethod>,
168+
_payment_method: enums::PaymentMethod,
171169
_pmt: Option<PaymentMethodType>,
172170
) -> CustomResult<(), errors::ConnectorError> {
173171
let capture_method = capture_method.unwrap_or_default();
@@ -176,7 +174,7 @@ impl ConnectorValidation for Xendit {
176174
| CaptureMethod::Manual
177175
| CaptureMethod::SequentialAutomatic => Ok(()),
178176
CaptureMethod::ManualMultiple | CaptureMethod::Scheduled => Err(
179-
utils::construct_not_implemented_error_report(capture_method, self.id()),
177+
utils::construct_not_supported_error_report(capture_method, self.id()),
180178
),
181179
}
182180
}

cypress-tests/cypress/e2e/PaymentUtils/Xendit.js

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -308,11 +308,6 @@ export const connectorDetails = {
308308
country_code: "+91",
309309
},
310310
311-
phone: {
312-
number: "8056594427",
313-
country_code: "+91"
314-
315-
},
316311
},
317312
},
318313
setup_future_usage: "off_session",
@@ -354,11 +349,6 @@ export const connectorDetails = {
354349
country_code: "+91",
355350
},
356351
357-
phone: {
358-
number: "8056594427",
359-
country_code: "+91"
360-
361-
},
362352
},
363353
},
364354
setup_future_usage: "off_session",
@@ -417,10 +407,6 @@ export const connectorDetails = {
417407
first_name: "joseph",
418408
last_name: "Doe",
419409
},
420-
phone: {
421-
number: "9123456789",
422-
country_code: "+91",
423-
},
424410
425411
phone: {
426412
number: "8056594427",

0 commit comments

Comments
 (0)