order_type parameter must be set to 1 and the following parameters must not be empty:order_typerecurring_payment_numberrecurring_payment_number is set to 5, the total processed amount will be 100 USD × 5 = 500 USD.recurring_payment_cyclerecurring_payment_intervalrecurring_payment_cycle = Mrecurring_payment_interval = 1recurring_web_hook_key#!/usr/bin/env bash
set -euo pipefail
# Example values. Load your merchant app_secret on your server.
# Use the exact amount text sent in the request.
parts=(
"100.00" # total
"1" # installments_number
"TRY" # currency_code
"merchant_example" # merchant_key
"INV-DOCS-001" # invoice_id
)
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 process successful",
"data": {
"sipay_status": 1,
"order_no": "VP17743519948303411",
"order_id": "VP17743519948303411",
"invoice_id": "recurringdeneme-2345wd425456",
"sipay_payment_method": 1,
"credit_card_no": "540667****5403",
"transaction_type": "Auth",
"payment_status": 1,
"payment_method": 1,
"error_code": 100,
"error": "",
"auth_code": "P38633",
"merchant_commission": 0.1,
"user_commission": 0,
"merchant_commission_percentage": 2,
"merchant_commission_fixed": 0,
"installment": 1,
"amount": 5,
"payment_reason_code": "",
"payment_reason_code_detail": "",
"total": 5,
"currency_code": "TRY",
"hash_key": "3966f87c283a059f936ef9a01006305fcb534886de74015422d76543ef0a25e1",
"original_bank_error_code": "",
"original_bank_error_description": "",
"host_reference_id": "608300452783"
}
}