update payload customer_id

This commit is contained in:
Aditya Siregar 2026-05-07 08:54:09 +07:00
parent f2881bfcc9
commit 56d854fbc0
2 changed files with 5 additions and 1 deletions

View File

@ -29,7 +29,7 @@ s3:
dukcapil:
base_url: "http://172.16.160.176:8080/api/face-recognition"
customer_id: "your-customer-id"
customer_id: "990030524100001"
methode: "CALL_FN"
user_id: "281020241202039900305241000011252"
password: "Fjskdhv35$%"

View File

@ -63,6 +63,10 @@ func (c *DukcapilClient) FaceMatch(ctx context.Context, req *contract.FaceMatchR
c.cfg.Methode,
)
// Log Dukcapil payload and URL (including params if any)
logger.FromContext(ctx).Infof("DukcapilClient::FaceMatch -> URL: %s", url)
logger.FromContext(ctx).Infof("DukcapilClient::FaceMatch -> Payload: %s", string(payload))
httpReq, err := http.NewRequestWithContext(ctx, http.MethodPost, url, bytes.NewReader(payload))
if err != nil {
return nil, fmt.Errorf("dukcapil: build request: %w", err)