简体   繁体   English

iOS Stripe SDK的未来付款

[英]Future payment with iOS Stripe SDK

Using the iOS SDK for Stripe, can we do the following 使用iOS SDK for Stripe,我们可以执行以下操作

  1. Create a customer profile where the customer id can be sent and stored to the backend 创建一个客户资料,可以在其中发送客户ID并将其存储到后端
  2. Add, edit, delete credit cards to the customer profile 向客户资料添加,编辑,删除信用卡
  3. Card can be charged automatically from the backend 卡可以从后端自动收费

Note that, once the user make a payment via stripe, we ask them to allow auto-payment next time the balance goes below a certain level. 请注意,一旦用户通过条带付款,我们会要求他们在下一次余额低于一定水平时允许自动付款。 So, it is not periodic subscription. 因此,这不是定期订阅。 But it is a permission in advance, to charge later. 但这是事先允许的,以后再收费。

For a single payment, the SDK takes the card info and provides the token. 对于单笔付款,SDK会获取卡信息并提供令牌。 Token passed to server where the payment is finally process. 令牌已传递到最终处理付款的服务器。 This looks very nice and secured. 这看起来非常安全。

I do not want to store the card info in the iOS app, also not in server. 我不想将卡信息存储在iOS应用中,也不想存储在服务器中。 But does stripe take the responsibility to store it and allow the backend to charge it later? 但是Stripe是否负责存储它并允许后端稍后对其进行充电? I need a way so that server can communicate with stripe with a unique id and amount, so that stripe accepts the request and make the payment. 我需要一种方法,使服务器可以与具有唯一ID和金额的Stripe通信,以便Stripe接受请求并付款。

You can ask for webservice to your webservice developer which can make APIs to create customers in stripe account and store its customer_id in database so for next all payment you can make payment using customer id. 您可以向Web服务开发人员请求Web服务,该服务可以使API在条带化帐户中创建客户并将其customer_id存储在数据库中,以便接下来可以使用客户ID进行付款。 Stripe will store card details in its database so no need to store card details at our side. Stripe会将卡详细信息存储在其数据库中,因此无需在我们这边存储卡详细信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM