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 862cdcacf2
commit 9536a896ac
5 files changed
+26 -2

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
})
}
}