mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 17:47:54 +08:00
refactor(payment_method_data): send optional billing details in response (#4569)
This commit is contained in:
@ -527,7 +527,9 @@ impl From<payments::PaymentsResponse> for StripePaymentIntentResponse {
|
||||
capture_on: resp.capture_on,
|
||||
capture_method: resp.capture_method,
|
||||
payment_method: resp.payment_method,
|
||||
payment_method_data: resp.payment_method_data.map(|pmd| pmd.payment_method_data),
|
||||
payment_method_data: resp
|
||||
.payment_method_data
|
||||
.and_then(|pmd| pmd.payment_method_data),
|
||||
payment_token: resp.payment_token,
|
||||
shipping: resp.shipping,
|
||||
billing: resp.billing,
|
||||
|
||||
Reference in New Issue
Block a user