capabilities.work

Save Card and Charge

A 4-step recipe with Stripe. We can help you get access.

Recipe · 4 steps

Save Card and Charge

with Stripe · Payments & Card Management
Works with AI assistants

Save a payment method to a customer and immediately charge it.

  1. Create a PaymentMethod of the requested type.
  2. Attach the payment method to the customer for reuse.
  3. Open a PaymentIntent bound to the customer and saved method.
  4. Confirm the PaymentIntent off session to charge the saved method.
What you'll need to have ready
  • type: The PaymentMethod type to create (e.g. card).
  • customer: ID of the customer to save the method to and charge.
  • amount: Amount to charge in the smallest currency unit.
  • currency: Three-letter ISO currency code.
For your developer

Arazzo workflow stripe:save-card-and-charge, 4 operations: postPaymentMethods → postPaymentMethodsPaymentMethodAttach → postPaymentIntents → postPaymentIntentsIntentConfirm. Specs on APIs.io.