run app agains saas env (set env to prod
:
env=prod go run cmd/main.go
Api for Post request
http://localhost:9999/api/v1/credit/start
Sample Body
{
"customerId": "test",
"orderTotal": 90,
"productId": "3",
"creditCard": {
"cardNumber": "1234 5678",
"cvc": "123",
"expiryDate": "09/42"
}
}
Example Post Request:
curl -X POST http://localhost:9999/api/v1/credit/start \
-H "Content-Type: application/json" \
-d '{
"customerId": "test",
"orderTotal": 90,
"productId": "3",
"creditCard": {
"cardNumber": "1234 5678",
"cvc": "123",
"expiryDate": "09/42"
}
}'