Passer au contenu principal
POST
/
v1
/
payment-intents
create intent
curl --request POST \
  --url https://pay.sandbox.yabetoopay.com/v1/payment-intents \
  --header 'Content-Type: application/json' \
  --data '{
  "amount": "10000",
  "currency": "xaf"
}'
{
  "id": "<string>",
  "amount": 123,
  "currency": "<string>",
  "label": "<string>",
  "clientSecret": "<string>",
  "createdAt": "<string>",
  "updatedAt": "<string>"
}

Body

application/json
amount
string
required
currency
string
required
metadata
object
description
string

Response

200 - application/json
id
string

ID of the payment intent

amount
number

Amount of the payment intent

currency
string

Currency of the payment intent

label
string

Label of the payment intent

clientSecret
string

Secret of the payment intent, used to confirm the payment intent

createdAt
string

Created at of the payment intent

updatedAt
string

Updated at of the payment intent

I