stripe java实现_java – 我是否需要自己的服务器来使用Stripe API?

让我通过我的解释扩展他们所说的内容:

With our mobile library,we shoulder the burden of PCI compliance by eliminating the need to send card data directly to your server. Instead,our libraries send the card data directly to our servers,where we can convert them to tokens.

这意味着通常会收到一个信用卡号码,并且预计会将其存储起来供以后使用(例如,客户将其输入您的帐户页面以便每月收费),但这使您有法律义务遵守PCI标准,这可能是一个令人头痛的问题Stripe可以减轻您的负担 – 他们会存储信用卡,如果您想稍后再收费,您可以给他们生成代表该信用卡的令牌.

Your app will receive the token back,and can then send the token to an endpoint on your server,where it can be used to process a payment,establish recurring billing,or merely saved for later use.

Using the payment token,however it was obtained,requires an API call from your server using your secret API key. (For security purposes,you should never embed your secret API key in your app.)

(这是drhr提到的.)

由于您需要密钥才能进行API调用,因此需要从您自己的服务器完成,因此您需要一台服务器.

注意:我没有使用Stripe,我记得,我只是想分享我对文档的阅读.

附:我认为你的第二个问题是独立的,但托管Java webapp的一些流行和简单的选择是Heroku和AppEngine.对于类似的东西,你可以使用无服务器方法,例如使用AWS Lambda https://aws.amazon.com/lambda(google在Alpha阶段https://cloud.google.com/functions/中具有等效功能)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值