Overview
The Satsuma API allows API clients to save their own payment methods securely. This enables a flow where merchants can charge API clients directly for orders, rather than the end-consumer. This is ideal for scenarios where API clients want to process payment for their customers, and remain the merchant of record.Payment Method Flow
The API client payment method saving process involves three main steps:1
Create Setup Intent
Generate a Stripe-hosted page where API clients can securely add their payment methods
2
Retrieve Payment Methods
List all saved API client payment methods for a specific merchant
3
Submit Order
Use a saved API client payment method to complete an order
Step 1: Create Setup Intent
Create a setup intent to generate a Stripe-hosted page where your API client organization can securely add payment methods that the merchant can charge for future orders.Response
The API returns a checkout session with a URL where the API client can securely enter their payment information:Response
Have your organization’s authorized personnel visit the
url to add a payment method.Step 2: List Payment Methods
After your organization has saved payment methods, retrieve all available payment methods for the specific merchant.Response
The API returns a list of your API client organization’s saved payment methods for this merchant:Response
Step 3: Submit Order with Saved Payment Method
Use a payment method to complete an order, with the merchant charging your organization directly. Provide the payment method ID in the order submission.Response
The API returns the updated order with payment status, showing that your API client organization has been charged:Response