Skip to content

Adding paypal control #62

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

Merged
merged 3 commits into from
Sep 18, 2021
Merged

Conversation

mihailox
Copy link
Contributor

Fixes issue #60

What problem are we trying to solve?

Upon integrating react-native-braintree-dropin-ui into an existing React Native project with a pre-existing module that handles Paypal payments, we needed a way to disable Paypal payment method via the Drop-in.

Why should we solve it?

While we appreciate that other apps might not need or even require this particular option, its addition would allow developers to have full control over the payment methods they want to use. Currently this module offers the options to disable googlePay,applePay and CreditCards but does not have the same option for disabling Paypal.

How do we propose to solve it?

We already have a patch file that adds this option to the react native layer and also adds supporting functionality to both native platforms.
A further change would be to update documentation to detail this change.

What could go wrong?

This option would be disabled by default which would match current expected behaviour.

Modified documentation to reflect new property `paypal`.
Add `paypal` control support to Android
Add `paypal` control support to iOS
@GFean
Copy link

GFean commented Jan 31, 2021

well, there's a prop cardDisabled but that doesn't work as well. weird

@chris-gooley
Copy link

I'm after this functionality also. Any chance we could get this merged in?

@wgltony wgltony merged commit dbc9b01 into wgltony:master Sep 18, 2021
ysudharsono added a commit to ysudharsono/react-native-braintree-dropin-ui that referenced this pull request Oct 26, 2021
A typo in this PR:
wgltony#62

The correct config attribute is 'payPal' and not 'paypal'

This PR updates the correct usage in the README file
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

Successfully merging this pull request may close these issues.

4 participants