cURL
curl --request POST \ --url https://api.stan-app.fr/v1/payments \ --header 'Authorization: Basic <encoded-value>' \ --header 'Content-Type: application/json' \ --data '{ "order_id": "<string>", "amount": 123, "subtotal_amount": 123, "shipping_amount": 123, "discount_amount": 123, "tax_amount": 123, "return_url": "<string>", "cancel_url": "<string>", "customer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "state": "<string>" }'
{ "payment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "state": "<string>", "redirect_url": "<string>" }
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Basic <encoded-value>
<encoded-value>
username:password
Successful operation
The response is of type object.
object