payment_completed_by parameter is set to merchant.| mdStatus | Error Detail | Description |
|---|---|---|
| 0 | Authentication Failed | 3D verification failed. |
| 1 | Full Authentication | Cardholder successfully verified. |
The parameters and their order to be used for the hash algorithmare as follows.merchant_key invoice_id order_id status app_secret
#!/usr/bin/env bash
set -euo pipefail
# Example values. Load your merchant app_secret on your server.
parts=(
"merchant_example" # merchant_key
"INV-DOCS-001" # invoice_id
"ORD-DOCS-001" # order_id
"complete" # status
)
app_secret="example_app_secret"
message=$(IFS='|'; printf '%s' "${parts[*]}")
printf '%s' "$message" | openssl dgst -sha256 -hmac "$app_secret" -r | awk '{print $1}'
{
"status_code": 100,
"status_description": "Payment Successfully Completed",
"data": {
"sipay_status": 1,
"order_no": "VP17349634893866298",
"order_id": "VP17349634893866298",
"invoice_id": "JB7HHTAGWWINPRT-1734963488",
"status_code": 100,
"status_description": "Payment Successfully Completed",
"sipay_payment_method": 1,
"credit_card_no": "540667****5403",
"transaction_type": "Auth",
"payment_status": 1,
"payment_method": 1,
"error_code": 100,
"error": "Payment Successfully Completed",
"auth_code": "P09424",
"installment": 1,
"amount": 800,
"payment_reason_code": "",
"payment_reason_code_detail": "",
"status": "Completed",
"hash_key": "4e431932f5e8b292:e470:eLjTMboO95+mvF54m4knqa6eD2nc__TnuVeHaxniabeIw9Wgo5qSRVrDdlKw2Y2mpgvT9jRnz30__yJ3d__SsqIP2eJeP3PjHQ+wdRd09Ej838=",
"original_bank_error_code": "",
"original_bank_error_description": ""
}
}