mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 04:04:55 +08:00
fix: Use setup future usage for saving card (#401)
This commit is contained in:
@ -552,6 +552,7 @@ pub enum RoutableConnectors {
|
||||
Globalpay,
|
||||
Klarna,
|
||||
Payu,
|
||||
Rapyd,
|
||||
Shift4,
|
||||
Stripe,
|
||||
Worldline,
|
||||
|
||||
@ -183,6 +183,15 @@ where
|
||||
)
|
||||
})?;
|
||||
};
|
||||
} else if resp.request.get_setup_future_usage().is_some() {
|
||||
helpers::call_payment_method(
|
||||
state,
|
||||
merchant_account,
|
||||
Some(&resp.request.get_payment_method_data()),
|
||||
Some(resp.payment_method),
|
||||
maybe_customer,
|
||||
)
|
||||
.await?;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user