POST /api/v1/sdk/purchase/stripe/token/validate/

Stripe satın alımını doğrula

Sağlanan Stripe token'ı kullanarak, Adapty Kontrol Paneli'ndeki Uygulama Ayarlarınızdaki Stripe kimlik bilgileriyle bir satın alımı doğrular. Satın alım geçerliyse, işlem geçmişi Stripe'tan belirtilen customer_user_id ile Adapty'deki profile aktarılır. Bu customer_user_id ile daha önce profil yoksa — oluşturulacaktır.

Profil olayları süreç boyunca oluşturulur ve aktarılan işlemler MTR'ye sayılır.

Request body

dataobjectrequired
typestringrequired

Kaynağın türü

One of: "stripe_receipt_validation_result"

attributesobjectrequired
customer_user_idstringrequired

Sisteminizdeki kullanıcı kimliğiniz

stripe_tokenstringrequired

Benzersiz bir satın alımı temsil eden Stripe nesnesinin token'ı. Stripe'ın Abonelik (sub_XXX) veya Ödeme Niyeti (pi_XXX) token'ı olabilir

Responses

Satın alım başarıyla doğrulandı

Schema
dataobjectrequired

Yanıt verisi (başarılı doğrulama için null)

Example
{
  "data": null
}

Hatalı istek

Schema
errorsarray of objectrequired
detailstringrequired

Hata hakkında açıklayıcı bilgi

sourceobjectrequired
pointerstringrequired

İstek belgesinde soruna neden olan tam konuma referans verir

statusstringrequired

HTTP durum kodu

Example
{
  "errors": [
    {
      "detail": "none is not an allowed value",
      "source": {
        "pointer": "/data/attributes/stripe_token"
      },
      "status": "400"
    }
  ]
}

Yetkisiz

Schema
errorsarray of objectrequired
sourcestring

Hatanın kaynağı

errorsarray of string

Hata mesajları dizisi

error_codestringrequired

Kısa hata adı

status_codeintegerrequired

HTTP durum kodu

Sunucu içi hata

Schema
errorsarray of objectrequired
sourcestring

Hatanın kaynağı

errorsarray of string

Hata mesajları dizisi

error_codestringrequired

Kısa hata adı

status_codeintegerrequired

HTTP durum kodu