Retour à l'API
/api/payment POST
À propos Support Tableau de bord

Envoie un PaymentRequest XML brut via le socket persistant

Paramètres

Aucun paramètre requis.

Corps de la requête

{
    "type": "object",
    "properties": {
        "amount": {
            "type": "number"
        },
        "currency": {
            "type": "string"
        }
    }
}

Réponses

200 OK
req est une HTTPRequête
req.Méthode = httpPost
req.URL = "http://127.0.0.1:8082/api/payment"
req.Entête["Authorization"] = "Bearer sk_test_..."
req.Entête["Content-Type"] = "application/json"
req.Contenu = '{"amount":0,"currency":"string"}'
res est une HTTPRéponse = HTTPEnvoie(req)
SI ErreurDétectée ALORS
   Erreur(ErreurInfo())
SINON
   Trace(res.Contenu)
FIN