mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-03 05:17:02 +08:00
fix(connector): [Paypal] fix amount to its currency base unit for Paypal Bank redirects (#2002)
This commit is contained in:
@ -244,7 +244,10 @@ impl TryFrom<&types::PaymentsAuthorizeRouterData> for PaypalPaymentsRequest {
|
||||
};
|
||||
let amount = OrderAmount {
|
||||
currency_code: item.request.currency,
|
||||
value: item.request.amount.to_string(),
|
||||
value: utils::to_currency_base_unit_with_zero_decimal_check(
|
||||
item.request.amount,
|
||||
item.request.currency,
|
||||
)?,
|
||||
};
|
||||
let reference_id = item.attempt_id.clone();
|
||||
let purchase_units = vec![PurchaseUnitRequest {
|
||||
|
||||
Reference in New Issue
Block a user