msasinowski / react-native-expo-braintree

React Native library that implements PayPal(Braintree) checkout, vault, and tokenize card flow using Braintree SDK, and pure native code using swift and kotlin. And add possibility to integrate the braintree sdk with expo based project.
MIT License
5 stars 3 forks source link

Documentation guide on how to contribute #17

Closed coyksdev closed 1 month ago

coyksdev commented 3 months ago

Can you create a guide on how we can contribute?

msasinowski commented 3 months ago

hey, @coyksdev there is an existing https://github.com/msasinowski/react-native-expo-braintree/blob/main/CONTRIBUTING.md CONTRIBUTING.md file in the repo, also this whole package is based on https://callstack.github.io/react-native-builder-bob/create , I think that's enough information to at least start, but I am open to any feedback or any additional things that I can add to support it, Can you elaborate on that a little bit more?

coyksdev commented 3 months ago

hey, @coyksdev there is an existing https://github.com/msasinowski/react-native-expo-braintree/blob/main/CONTRIBUTING.md CONTRIBUTING.md file in the repo, also this whole package is based on https://callstack.github.io/react-native-builder-bob/create , I think that's enough information to at least start, but I am open to any feedback or any additional things that I can add to support it, Can you elaborate on that a little bit more?

Oops. I didn't see that. thanks! I would like to know how to test it locally, for example I added a method in android/ios and would like to test it if it is working.

msasinowski commented 3 months ago

I think, for the end testing you will need to do also the Backend part of the integration, this package is only responsible for creating a payment nonce which later you can use on the backend side to call and charge the account.

Please check these links from Braintree Pages https://developer.paypal.com/braintree/docs/guides/payment-method-types-overview https://developer.paypal.com/braintree/docs/start/overview

coyksdev commented 3 months ago

I think, for the end testing you will need to do also the Backend part of the integration, this package is only responsible for creating a payment nonce which later you can use on the backend side to call and charge the account.

Please check these links from Braintree Pages https://developer.paypal.com/braintree/docs/guides/payment-method-types-overview https://developer.paypal.com/braintree/docs/start/overview

Thanks, I understand. I mean, for example, I added a Google Pay function. how can I test it locally? given I already setup the backend.

msasinowski commented 3 months ago

I am not so sure about the GPay, but if the client integration generates the nonce from GPay then everything is in place and ready at least on the client side, I assume you follow these ones

https://developer.paypal.com/braintree/docs/guides/google-pay/overview https://developer.paypal.com/braintree/docs/guides/google-pay/client-side/android/v4

It looks very similar to what I had done for already covered flow's