make docker-runOR
cd docker && docker-compose up --buildmake installOR
docker exec -u www-data -it tt-php-fpm build-app.shList of test cards: https://dev.shift4.com/docs/testing/#test-card-numbers
curl --request POST \
--url http://localhost:8086/api/charge \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"amount": 18.88,
"currency": "USD",
"card": {
"number": "4909069612259316",
"expMonth": 12,
"expYear": 2028,
"cvv": "123"
}
}'curl --request POST \
--url http://localhost:8086/api/refund \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"chargeId": "char_6hLcejaOGWVqMZXPV7rGX11Z",
"amount": 1
}'docker exec -it tt-php-fpm bash
make tests