Attach a payment method to a customer with Stripe
POST/api/psp/stripe/v1/payment_methods/:paymentMethodId/attach
Attaches an existing Stripe payment method to a customer using the StripeAuthorization header.
After attaching, the payment method can be used for future off-session payments for that customer.
Request
Responses
- 200
- 400
- 401
- 402
- 403
- 500
Payment method attached — response body contains the Stripe payment method response.
Invalid request — missing payment method id, missing customer, missing authorization header, null gateway response, or a Stripe-rejected request.
Authentication failed — token is missing, expired, or invalid.
Payment Required
Caller does not have the required role.
An unexpected server error occurred.