Skip to content

Yinelenen WebHook

Açıklama: Öncelikle http://app.vepara.com.tr/merchant/apisetting adresindeki vepara üye işyeri panelinde yinelenen web kancası URL'nizi (anahtar, değer) ayarlamanız gerekir. Yinelenen ödeme için üye işyeri, faturayla birlikte recurring_web_hook_key ayarlamalıdır. Vepara, satın alma talebi sırasında bu anahtarın veritabanında mevcut olduğunu doğrular.

Yinelenen her ödeme için Vepara aşağıda verilen parametrelerle üye iş yerinin yinelenen web hook url'sine bir POST isteği gönderir.

Webhook'u uygulamak için önerilen kılavuz

Adım 1 :Doğrulama isteği post ve üye işyeri anahtarı geçerlidir.

Adım 2 :Bundan sonra, yinelenen sorgu API'sini çağırın.

Yinelenen sorgu API URL'si api/recurringPlan/query dir. Nasıl yapılacağını görmek için tıklayınız

Query Parameters

json
{
  "type": "object",
  "properties": {
    "merchant_key": {
        "type": "string",
        "example": "merchant_key=$2y$10$snLdZ5xKfpmP561tpNlfWurcNl8r.r7Jg.w8Fi88PGFiGPQDOlfXO",
        "required":  "Yes" 
    },
    "invoice_id": {
        "type": "string",
        "example": "invoice_id=266011626686877",
        "required":  "Yes" 
    },
    "order_id": {
        "type": "string",
        "example": "order_id=162709021159202",
        "required":  "Yes" 
    },
     "product_price": {
        "type": "string",
        "example": "product_price=0.1",
        "required":  "Yes" 
    },
     "plan_code": {
        "type": "string",
        "example": "plan_code=162668699215UOjS",
        "required":  "Yes" 
    },
     "recurring_number": {
        "type": "string",
        "example": "recurring_number=6",
        "required":  "Yes" 
    },
    "status": {
        "type": "string",
        "example": "status=Completed",
        "required":  "Yes" 
    },
    "attempts": {
        "type": "string",
        "example": "attempts=1",
        "required":  "Yes" 
    },
    "action_date": {
        "type": "string",
        "example": "action_date=2021-07-24 03:00:49",
        "required":  "Yes" 
    },
    
  },

}