mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-01 02:57:02 +08:00
fix(connector): fix wordline card number validation issue (#695)
This commit is contained in:
@ -150,7 +150,10 @@ fn make_card_request(
|
|||||||
);
|
);
|
||||||
let expiry_date: Secret<String> = Secret::new(secret_value);
|
let expiry_date: Secret<String> = Secret::new(secret_value);
|
||||||
let card = Card {
|
let card = Card {
|
||||||
card_number: ccard.card_number.clone(),
|
card_number: ccard
|
||||||
|
.card_number
|
||||||
|
.clone()
|
||||||
|
.map(|card| card.split_whitespace().collect()),
|
||||||
cardholder_name: ccard.card_holder_name.clone(),
|
cardholder_name: ccard.card_holder_name.clone(),
|
||||||
cvv: ccard.card_cvc.clone(),
|
cvv: ccard.card_cvc.clone(),
|
||||||
expiry_date,
|
expiry_date,
|
||||||
|
|||||||
@ -91,7 +91,7 @@ impl WorldlineTest {
|
|||||||
#[actix_web::test]
|
#[actix_web::test]
|
||||||
async fn should_requires_manual_authorization() {
|
async fn should_requires_manual_authorization() {
|
||||||
let authorize_data = WorldlineTest::get_payment_authorize_data(
|
let authorize_data = WorldlineTest::get_payment_authorize_data(
|
||||||
"4012000033330026",
|
"5424 1802 7979 1732",
|
||||||
"10",
|
"10",
|
||||||
"25",
|
"25",
|
||||||
"123",
|
"123",
|
||||||
|
|||||||
Reference in New Issue
Block a user