Java – do I need my own server to use the stripe API?

I want to make payment in my application through stripe I'm reading their documentation and keep mentioning that I'll use my own server to charge someone after retrieving the token from stripe ( stripe documentation)

Why do I need a server to charge my users? Why can't I just call the stripe API method to charge - what special things do I do on the server? Is there any way to charge without creating your own server? Can firebase be sufficient?

thank you

Solution

Let me expand what they said through my explanation:

This means that a credit card number is usually received and is expected to be stored for later use (for example, customers enter it into your account page for monthly charges), but it makes you legally obliged to comply with PCI standards, which can be a headache. Stripe can reduce your burden - they store credit cards and if you want to charge later, You can generate them a token representing the credit card

This is in another part https://stripe.com/docs/mobile/android#using -Tokens

(this is what DRHR mentioned.)

Since you need a key to make API calls, you need to complete them from your own server, so you need a server

Note: I didn't use stripe, I remember, I just wanted to share my reading of the document

PS: I think your second question is independent, but some popular and simple options for hosting Java webapps are heroku and App Engine For similar things, you can use the serverless method, such as AWS lambda https://aws.amazon.com/lambda (Google in alpha phase) https://cloud.google.com/functions/ (with equivalent function in)

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>