Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why this package do not accept currency other than usd format? #129

Open
abdulqayyum686 opened this issue Sep 1, 2022 · 1 comment
Open

Comments

@abdulqayyum686
Copy link

<PayPalButton
style={style}
title="Pay with"
// currency={
// currencyObject[store?.compaignReducer?.compaign?.currencyType]
// }
currency={"EUR"}
// amount={store?.compaignReducer?.compaign?.budgetLimit}
amount={10}
onSuccess={(details, data) => {
console.log(details, data);
dispatch(
addCompaign({
mode: "paypal",
})
);
}}........

here is the code it does not accept EUR currency formate
i have currency format dropdown in my project with options USD,EUR, GBP but it accept only USD for payments

@Sanaullahbugti
Copy link

Hey, @abdulqayyum you can do that by putting currency in options some like
options={{
currency:"EUR"
}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants