Get Payment Method Setup Secret
Quote the policy first: the payment-side customer is created by quoting, so asking earlier returns PAYMENT_CUSTOMER_NOT_FOUND. Needs DIRECT_DEBIT in the product’s allowedPaymentModes, or it refuses with CONFLICTING_CONFIG. Initialise Stripe.js with the publishable key of Korint’s Stripe account for your tenant and environment — ask your Korint contact; a key from another account fails in the browser as No such setupintent, which reads as a bad secret but is not.
Authorizations
Machine-to-machine clients use the OAuth 2.0 client credentials grant. Each tenant has its own authorization server: in the token URL below, replace tenant with your tenant identifier.
Headers
Your tenant identifier. Requests without it are rejected.
Path Parameters
The customer id
^customer(_test)?_[346789ABCDEFGHJKLMNPQRTUVWXYabcdefghijkmnpqrtwxyz]{21}$Query Parameters
Optional: the whenAt datetime
Response
Client secret to setup a payment method

