MOTO を使用してカードを保存する
将来の支払いのために、通信販売および電話注文 (MOTO) カードの詳細を保存します。
注
MOTO 決済はゲート機能です。アクセスをリクエストするには、Stripe サポートにお問い合わせください。この機能を有効にした後、リーダーから切断して再接続してアクティブ化する必要があります。
MOTO SetupIntents allow you to enter the card information on the reader and save the payment details without charging the card.
To do this with the iOS SDK, you must:
- Create or retrieve a Customer.
- Create a SetupIntent.
- Collect a PaymentMethod.
- Confirm and use the PaymentMethod.

Saving a card with MOTO flow
Create or retrieve a Customer
To charge a card saved with Stripe, you must attach it to a Customer.
When you include a customer in your SetupIntent before confirming, Stripe automatically attaches the generated card payment method to the provided Customer
object that you create/retrieve.
Include the following code on your server to create a new Customer
object:
Create a SetupIntent
A SetupIntent is an object that represents your intent to set up a customer’s payment method for future payments. The SetupIntent tracks the steps of this setup process. For Terminal, this includes collecting and recording cardholder consent.
The payment_method_types must include card
.
Collect a PaymentMethod
After you create a SetupIntent, the next step is to collect a PaymentMethod with the SDK and collect customer consent. If the customer provides consent, set the customerConsentCollected
Boolean to true
.
To collect a PaymentMethod, you must connect your app to a reader. In the SetupIntentConfiguration
, set moto
to true
. The connected reader prompts you to enter the customer’s card number, CVC, expiration date, and postal code after your app calls collectSetupIntentPaymentMethod
.
Confirm and use the PaymentMethod
You can follow the usual procedure to confirm the PaymentMethod. You can now charge the saved PaymentMethod associated with the Customer using a PaymentIntent.
法令遵守
顧客の支払いの詳細を保存する際、適用されるすべての法律、規制、ネットワークの規則に準拠する責任はお客様にあります。たとえば、欧州データ保護委員会は、支払いの詳細の保存に関するガイダンスを発行しています。これらの要件は通常、以降の購入時の決済フローでの顧客の支払い方法を提示する、顧客がお客様のウェブサイトやアプリを使用していないときに請求するなど、将来に備えて顧客の支払い方法を保存する場合に適用されます。
支払い方法の詳細を保存する趣旨、顧客がオプトインできるようにする規約を、ウェブサイトおよびアプリに追加します。顧客がオフラインのときに顧客に請求する予定の場合は、少なくとも以下に関する説明を規約に含めてください。
- 指定された取引で顧客の代理として単独の支払いまたは一連の支払いを開始することをお客様に許可するという、顧客からお客様への同意
- 予期される支払い時期と支払い頻度 (たとえば、請求が予定されている分割払いまたはサブスクリプションの決済なのか、あるいは予定されていないトップアップなのか)。
- 決済金額の決定方法。
- サブスクリプションサービスに使用される支払い方法を設定する場合は、キャンセルに関するポリシー。
これらの規約に関する顧客の書面による同意の記録を必ず保管してください。
支払い方法を保存した場合、その使用は、規約に記載された特定の用途にのみ使用できます。顧客がオフラインであるときに請求し、さらに顧客の支払い方法を保存して、以降の購入に備えた保存済みの支払方法として顧客に提示する場合は、顧客から明示的に同意を収集する必要があります。そのための方法の 1 つとして、「今後の使用に備えて支払い方法を保存する」チェックボックスの使用があります。