How to implement stripe with react-native using expo? [closed] - react-native

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I have been searching a lot and seen a lot of similar questions but non of them fits in my requirements.
I need to implement Stripe in react-native built using expo XDE. As mentioned in expo docs here: https://docs.expo.io/versions/latest/sdk/payments.html#importing-payments, I will have to detach my project to implement payment but I don't want to do that. Is there any alternative?
Also other wrappers available on GitHub doesn't facilitates projects built with expo completely. I am unable to find any complete wrapper or at least a guide to build my own.
I am looking for a solution for subscription based model, I need to charge my customers recursively and allow them to upgrade/downgrade their packages during an on going paid/trial period. I don't want to hold credit card information and allow customers to update their billing information whenever needed. Implement refund policies as well.

If you don't want to eject from Expo, you can use StripeCheckout component from expo-stripe-checkout on iOS and Android (though on Android you can still use the Payments module). Here's the link to the repo with further instructions: https://github.com/briansztamfater/expo-stripe-checkout

I recently faced the same issue, this is the conclusion:
Short version: You'll need to detach if you need payments (Stripe) on iOS. (If you don't, juse use the Payments module from Expo - it is not obvious right away, but they do state in the docs that it is based on tipsi-stripe).
Explanation: The Expo SDK used to contain a payments module for both Android & iOS. For the last 3-4 versions of Expo, Payments has been removed from the iOS SDK because "Apple sometimes rejects apps which contain the Stripe SDK but don’t offer anything for sale.".
Reference: https://docs.expo.io/versions/latest/sdk/payments.html
Solution: detach to ExpoKit, and then add the Payments module manually. I can say from experience this is not a nice or straightforward process, as it first introduced the concept of manually building your app using MacOS/Xcode which is a pain to say the least for a Win user.
If you do not want to detach, it means you will have to implement your own, custom way of communicating with Stripe and not than their official SDK, which will imply PCI compliance issues.

You can all Stripe API directly. map Stripe customer Id and your user id in your backend. then you can call this API's from frontend using stripe customer id.

Related

API for Contributing to Google Translate [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I want to be able to contribute to Google Translate on my native language (Sinhala).
Although there is an online portal (http://translate.google.com/community/) where we can contribute to the translator by translating new phrases or validating existing translations, I would like to create my own, lightweight portal (maybe an Android app) for the contribution service. However, I was unable to find any public API for the translate contribution platform, despite a thorough Google search and a full search through the Google Translator Toolkit API forum (https://productforums.google.com/forum/m/#!categories/translator-toolkit-api) (which seems to have been closed down since the end of 2012).
Currently my best hope is to mimic the request-response sequence followed by the online portal itself. For example, the following request is used by the online portal to fetch a question list for manual translation:
GET http://translate.google.com/community/question_list?sl=en&tl=si&client=t
However, it requires that all the related cookies are properly initialized and passed with the request, which would probably not be easy to mimic in a non-browser environment (such as an Android app). Hence I believe there's a better approach (maybe a yet undocumented API?) somewhere out there.
Does anyone know of any API for accessing this translation contribution feature?
Thanks in advance.
Please note: I am NOT looking for a way to improve Google Translate itself, but for contributing to the actual translation content as described under "How can I help?" in the Google Translate Community FAQ (https://docs.google.com/document/d/1dwS4CZzgZwmvoB9pAx4A6Yytmv7itk_XE968RMiqpMY/pub#h.e1ahmpftpdum).
P.S. I was initially planning to post this question on the Web Apps Stack Exchange, but after reading this post I decided to first try it here.
I'm one of the engineers behind Translate Community and I'm really excited that you want to see it on more platforms. We're currently under active development of the site and making it more accessible on mobile platforms without having to create dedicated native apps.
For the time being, we don't anticipate releasing a public API as the platform is under active development. Until we do release a public API, please don't use any http commands you find to create a separate app. Instead, just let us know how we can make the app a better experience for you and we'll work on making it better.
Thanks!

Pubcenter Alternatives [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I have an app published in the Windows store with pubcenter ads but after the recent drop in fill rates (see here) these adverts a providing effectively no revenue (maybe £0.01 in a day occasionally). I wonder if any one knows of any alternatives for advertising.
I have looked at inmobi but their sdk seems to only have out of date documentation that does not work. AdDuplex is also not an option as it is not available for HTML/JS apps.
There are many different PubCenter Alternatives like:
AdDuplex (included with the release as a NuGet package)
Inmobi
Smaato
Google AdMob
MobFox
Inneractive
After you can use an AdRotatorV2 for Windows Phone (https://github.com/Adrotator/AdrotatorV2) which allows you so show different ads and also home made ads.
Personally I use PubCenter and AdDuplex.
You can submit your app into differents advertising such as Smatoo or ad Exchanges like adDuplex.
An ad exchange is a marketplace which allows buying and selling advertisements online in real time. The ad exchanges allow applicants spaces (eg advertisers or agencies) and suppliers, comparing real-time supply and demand advertising and automate the buying and selling spaces publicitaires.Ils also allow, once the defined criteria, almost completely automate the implementation of campaigns.
You can also use Adrotator which allows you to change advertising rule if it does not send you any advertisements. Hope this help you.
I think other ad providers will make sdk for Windows 8 apps once the platform gets more succes. Pubcenter will have to fix things or developers will flock away. Microsoft knows this I suppose...
There is an promotion platform http://adshufflr.com. It shows advertisement, when Pubcenter fails to provide ad.
The best part: only 2 line changes are required to add this network as fallback.
For every 10 ads displayed in your app, you get credit for 9 ads. Which is used in promoting your app.
This all i can say as i am using AdShufflr. Started seeing increase in app downloads

Handling free & paid versions of Windows Phone 8 apps? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I'm currently finishing up my very first Windows Phone 8 app. Right now, I'm including ads, and I am planning on selling it for free in the Store. I'm wondering though, what is the best way to go about also including an ad-free, paid version of the app?
Is it better to have two versions in the Store, or have one paid version that has a "trial" version which includes the ads?
For either option, does anyone know of a tutorial or good approach to using the same code base for each version? For example, using the same code for both versions but have the code programmatically determine (based on that version) whether or not to include ads?
SOLUTION:
I went with the answer by #DVD below to use an in app purchase system. I found an excelling tutorial for how to do this (which includes testing in the emulator) here:
http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj681689(v=vs.105).aspx#IAP_MockLibrary
For windows phone 8 I think the best solution is using in-app purchases to remove the ads.
If you use two different versions of the app you are splitting your users, reviews and downloads with 2 apps, remember that reviews and downloads are used to calculate the app rank .
I only recommend this system if you are publishing for the WP7 market as well, because this one doesn't support in app purchases.
Still if you want to use this system, a possible solution is using pre compilation statements.
#if PAID_VERSION
(paid version code)
#else
(free version code)
#endif
Creating a new Solution Configuration, you can copy Release options and atribute a new name to it, after that you just need to add the symbols on the projects properties in build tab.
After this you select witch solution config you want to deploy and you are done.

Titanium accounts, costs and releasing an app [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
This is my very first post in Stackoverflow, but I've found this site very useful.
Here is my first question.
I've been searching the web for an answer for a while now. I've contacted Titanium and no luck.
Why should users have an account with Titanium?
Do you have to buy another account than "FREE" to be able to use full Titanium functionality?
Do you have to buy an account to be able to release your app?
Thanks in advance.
The Titanium framework is free and open source. You do not need to be a premium user to build apps with the Titanium framework and/or distribute the apps.
The only reason you may want to be a Titanium premium user is for dedicated support and the Ti+ Modules. There is a forum where you can get support and of course stackoverflow (all for free)! The Ti+ modules extend the core functionality of Titanium with for example in-app payments. You can of course write your own module if you know a little Objective-C to get around this.
Bottom line is, i've found it more than superb for building a large majority of apps I've had to build and i'm not a premium user. The documentation is sound. And for in-app payments I've rolled my own module, which I am going to open source in the next few weeks.
Leon from what I've been told a Titanium account is for fast support. A recent tweet from the team suggest they are not getting the number of sales they'd like due to current high pricing. I haven't personally distributed an app but I can't imagine an account would be required especially since you can build for the device straight from xCode or command line if needed using the build/ folder. I'm sure some other people here will have some better advice then me in this category but I hope this helps.

Decent Video Chat API? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
Just wondering. I'm looking to build a small web application with a single page. It will essentially be a video chat page so I'm looking for an API I can use or any other solutions?
This would be run on a LAMP stack.
A SO search reveals lots of similar questions which are worth checking/contributing to.
It depends if you want something free or are prepared to pay but some things that come up are (mind I havent used any of these myself):
http://www.tokbox.com/
http://code.google.com/apis/talk/open_communications.html#developer
http://www.process-one.net/en/blogs/article/oneteam_media_server_by_processone
https://sites.google.com/site/webrtc/ (Now at: https://webrtc.org/ )
https://www.skype.com/en/developer/
http://farsight.freedesktop.org/wiki/
https://www.twilio.com/docs/api/video
Some MS libraries are mentioned here: Developing a Video Chat Application with high quality video streaming
Apple had promised to open up FaceTime but so far nothing has happened
To get up and running quickly it seems tokbox would be most suitable.
Look into WebRTC, it's a new technology by Google and doesn't require any plugins! It's still under development but the code is available and working at the moment!
I know it's a bit of advert, but you could try to look into http://www.addlive.com. We offer comprehensive set of APIs allowing you to build RTC apps on the web (JS bindings on top of a plug-in and native WebRTC if available) and native mobile and dekstop SDKs.
Vidyo.io can help with this. (Full disclosure: I work for Vidyo.) It provides a simple JavaScript API that supports WebRTC capable browsers and a plug-in for Safari and IE. We also have sample apps on our github page https://github.com/vidyo to help you create a page simile to what you're looking for.