Weiter zum Inhalt
Konto erstellen
oder
anmelden
Das Logo der Stripe-Dokumentation
/
KI fragen
Konto erstellen
Anmelden
Jetzt starten
Zahlungen
Umsatz
Plattformen und Marktplätze
Geldmanagement
Entwickler-Tools
Übersicht
Informationen zu Stripe Payments
Aktualisieren Sie Ihre Integration
Zahlungsanalysefunktionen
Online-Zahlungen
ÜbersichtIhren Use case findenZahlungen verwalten
Payment Links verwenden
Bezahlseite erstellen
Erweiterte Integration erstellen
In-App-Integration erstellen
Zahlungsmethoden
Zahlungsmethoden hinzufügen
Zahlungsmethoden verwalten
Schnellerer Bezahlvorgang mit Link
Zahlungsschnittstellen
Payment Links
Checkout
Web Elements
In-App-Elements
Zahlungsszenarien
Nutzerdefinierte Zahlungsabläufe
Flexibles Acquiring
Orchestrierung
Präsenzzahlungen
Terminal
    Übersicht
    Persönliche Zahlungen akzeptieren
    Integrationsdesign
    Wählen Sie Ihr Lesegerät aus
    Konzipieren einer Integration
    Quickstart
    Beispielanwendungen
    Tests
    Terminal einrichten
    Integration einrichten
    Mit einem Lesegerät verbinden
    Zahlung annehmen
    Kartenzahlungen einziehen
    Weitere Zahlungsmethoden
    Offline-Zahlungen annehmen
    Versand-/Telefonbezahlung
      Versand- und Telefonzahlungen verarbeiten
      Karten bei Versand- und Telefonzahlungen speichern
    Regionale Aspekte
    Während des Bezahlvorgangs
    Trinkgelder einziehen
    Zahlungsdetails erfassen und für die zukünftige Verwendung speichern
    Flexible Autorisierungen
    Nach dem Bezahlen
    Transaktionen zurückerstatten
    Belege zur Verfügung stellen
    Checkout anpassen
    Anzeige des Warenkorbs
    Eingaben auf dem Bildschirm erfassen
    Ausgelesene Daten erfassen
    Erfassen von Daten durch Tippen für NFC-Geräte
    Apps auf Geräten
    Lesegeräte verwalten
    Lesegeräte anfordern, zurückgeben, ersetzen
    Lesegerät registrieren
    Standorte und Zonen verwalten
    Lesegeräte konfigurieren
    Lesegeräte überwachen
    Verschlüsselung
    Quellen
    API-Referenzen
    Mobile Lesegeräte
    Intelligente Lesegeräte
    SDK-Migrationsleitfaden
    Bereitstellungscheckliste
    Produktdatenblätter für Lesegeräte von Stripe Terminal
Andere Stripe-Produkte
Financial Connections
Krypto
Climate
StartseiteZahlungenTerminalMail order and telephone order payments

Notiz

Bis jetzt ist diese Seite noch nicht in dieser Sprache verfügbar. Wir arbeiten aber verstärkt daran, unsere Dokumentation in weiteren Sprachen bereitzustellen, und werden die Übersetzung sofort anzeigen, sobald diese verfügbar ist.

Save cards using MOTO

Save mail order and telephone order (MOTO) card details for future payment.

Seite kopieren

Notiz

MOTO payments are a gated feature. To request access, contact Stripe support. After we enable the feature, you must activate it by disconnecting from and reconnecting to your readers.

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:

  1. Create or retrieve a Customer.
  2. Create a SetupIntent.
  3. Collect a PaymentMethod.
  4. Confirm and use the PaymentMethod.
MOTO saving card screenshots

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:

Command Line
curl
curl https://api.stripe.com/v1/customers \ -u
sk_test_BQokikJOvBiI2HlWgH4olfQ2
:
\ -X "POST"

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.

PaymentViewController.swift
Swift
let params = try SetupIntentParametersBuilder() .setCustomer("{{CUSTOMER_ID}}") .setOnBehalfOf("{{ON_BEHALF_OF}}") .setDescription("Customer A's Card") .setPaymentMethodTypes([.card]) .build() Terminal.shared.createSetupIntent(params) { (createdSetupIntent, createError) in if let error = createError { print("createSetupIntent failed: \(error)") } else if let setupIntent = createdSetupIntent { print("createSetupIntent succeeded") // ... } }

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.

PaymentViewController.swift
Swift
let config = try SetupIntentConfigurationBuilder() .setMoto(true) .build() let cancelable = Terminal.shared.collectSetupIntentPaymentMethod( setupIntent, customerConsentCollected: customerConsentCollected, config: config ) { result in switch result { case .success(let setupIntent): print("collectSetupIntentPaymentMethod succeeded") // Placeholder for handling successful operation case .failure(let error): print("collectSetupIntentPaymentMethod failed: \(error)") // Placeholder for handling error } }

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.

Compliance

You’re responsible for your compliance with all applicable laws, regulations, and network rules when saving a customer’s payment details. For example, the European Data Protection Board has issued guidance regarding saving payment details. These requirements generally apply if you want to save your customer’s payment method for future use, such as presenting a customer’s payment method to them in the checkout flow for a future purchase or charging them when they’re not actively using your website or app.

Add terms to your website or app that state how you plan to save payment method details and allow customers to opt in. If you plan to charge the customer while they’re offline, then at a minimum, make sure that your terms also cover the following:

  • The customer’s agreement to your initiating a payment or a series of payments on their behalf for specified transactions.
  • The anticipated timing and frequency of payments (for instance, whether charges are for scheduled installment or subscription payments, or for unscheduled top-ups).
  • How the payment amount is determined.
  • Your cancellation policy, if you’re setting up the payment method for a subscription service.

Make sure you keep a record of your customer’s written agreement to these terms.

When you save a payment method, it can only be used for the specific usage that you included in your terms. If you want to charge customers when they’re offline and also save the customer’s payment method to present to them as a saved payment method for future purchases, you must explicitly collect consent from the customer. One way to do so is with a “Save my payment method for future use” checkbox.

War diese Seite hilfreich?
JaNein
Benötigen Sie Hilfe? Kontaktieren Sie den Kundensupport.
Nehmen Sie an unserem Programm für frühzeitigen Zugriff teil.
Schauen Sie sich unser Änderungsprotokoll an.
Fragen? Sales-Team kontaktieren.
LLM? Lesen Sie llms.txt.
Unterstützt von Markdoc