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

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

Adapty Kontrol Paneli'ndeki Uygulama Ayarlarınızdaki Stripe kimlik bilgileri kullanılarak sağlanan Stripe token'ı ile bir satın alımı doğrular. Satın alım geçerliyse, işlem geçmişi Stripe'tan belirtilen customer_user_id'ye sahip Adapty profiline aktarılır. Bu customer_user_id'ye sahip bir profil daha önce yoksa — oluşturulacaktır.

Profil olayları süreç içinde oluşturulur ve aktarılan işlemler MTR'ye dahil edilir.

Request body

dataobjectrequired
typestringrequired

Kaynağın türü

One of: "stripe_receipt_validation_result"

attributesobjectrequired
customer_user_idstringrequired

Kendi sisteminizde kullanıcınızın kimliği

stripe_tokenstringrequired

Benzersiz bir satın almayı temsil eden Stripe nesnesinin token'ı. Stripe'ın Subscription (sub_XXX) veya Payment Intent (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 konumu referans alır

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