In viewing the documentation for incorporating Stripe into my Swift iOS app I read that it tells me:
"you should expose three APIs on your backend for your iOS app to communicate with."
The three APIs it is referring to are the retrieve customer API, the create card API and the customer update API. The documentation then lists code snippets for what you should do in your back end to call these APIs, done using the Spark framework, which I am not familiar with.
My question, which Stripe's documentation appears to not explain, is how do I expose my back end to these three APIs so that I may call these functions? Is it through an import statement? OR is this handled/unnecessary by the fact that I would be using the Spark framework which does not require importing?
Link to relevant Stripe documentation: https://stripe.com/docs/mobile/ios
The Spark framework is the framework that was chosen for the Java example; right above the code areas are some tabs that link to snippets in other languages (Ruby/Sinatra, Python/django, PHP, Node.js/Express), so maybe your language/framework is there - or are you using a different Java framework?
As to your question, you would need to implement those three API endpoints on your server side application - each of which then contact the Stripe API - in order to allow your iOS app to use them.
You might also want to check out Stripe's Java library: https://github.com/stripe/stripe-java/