Fitpassu / react-native-stripe-payments

Lightweight, easy to integrate and use React native library for Stripe payments (using Payment Intents) compliant with SCA (strong customer authentication)
MIT License
98 stars 30 forks source link

Umbrella Features ☂️ #2

Closed lukebrandonfarrell closed 4 years ago

lukebrandonfarrell commented 4 years ago

Details

Opening this issue so we can coordinate development in this library in order to build all the missing features for full SCA using Stripe. The goal is to add all the missing pieces to the library for the 1st of September.

@viktorasl let me know what you think of the following API:

// Setup Intent
setupPayment(clientSecret, cardDetails)
// Using card details on the fly
confirmPaymentWithCard(clientSecret, cardDetails)
// Using existing card
confirmPaymentWithId(clientSecret, paymentMethodId)

Tasks

The same above is true for Android:

If I have missed any important features, please let me know in the comments.

0xamogh commented 4 years ago

Hey guys, Amogh here. Worked with @lukebrandonfarrell on the native Android aspect of our version of this library, would be cool if we could continue developing it and be able to launch it as a production-level alternative to tipsi-stripe 😄

viktorasl commented 4 years ago

Looks great! Generally I'm iOS developer so if you have less resources regarding iOS development I can help.

As production ready as tipsi is will be hard to implement as there are quite a lot of edge cases and extra functionalities build around Stripe (i.e fraudulent activity middleware) 😄

But I believe this library can find it's niche in the market 👍

lukebrandonfarrell commented 4 years ago

@viktorasl Sounds good. We have the iOS implementation already done in Swift, so just need to make the conversion. I'll attach you in to review the PR for iOS side.

As for a note to myself, we need to support Diners Club cards which our native implementation has trouble with at the moment.

lukebrandonfarrell commented 4 years ago

Finished the implementation over at: https://github.com/aspect-apps/react-native-stripe-payments (@viktorasl) will make a PR in next week.