Started testing with tipsi-stripe

This introduces a Podfile
This commit is contained in:
Nikolai R Kristiansen committed 2017-09-20 22:59:16 +02:00
1 parent dac31e916a
commit c2586b7c52
14 files changed
+256 -4

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
import stripe from 'tipsi-stripe'
import Config from 'react-native-config';
stripe.init({
publishableKey: Config.STRIPE_PUBLISHABLE_KEY,
});
class Charge {
openStripe() {
stripe.createTokenWithCard().then((data) => {
// returns a token.tokenId which should be saved
})
}
}