Starts attaching a card, with the merchant present.
POST
/v1/payment-methods/setup
const url = 'https://courierapi.itdlogisoft.co.uk/v1/payment-methods/setup';const options = {method: 'POST', headers: {Authorization: 'Basic <credentials>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://courierapi.itdlogisoft.co.uk/v1/payment-methods/setup \ --header 'Authorization: Basic <credentials>'Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”OK
Media typeapplication/json
Start attaching a card, with the merchant present.
Their bank’s authentication step has to happen once, with somebody watching, before the card can be charged unattended afterwards. The response carries what their browser needs to complete it.
object
client_secret
required
string
customer_id
required
string
Example generated
{ "client_secret": "example", "customer_id": "example"}