Gelir Atfı
Paddle Checkout API ile geliri atfetme
Devam etmeden önce Paddle hesabınızı bağladığınızı doğrulayın.
Paddle webhook'u olayları custom_data.website_id değerini okuyarak yönlendirir.
const response = await fetch('https://api.paddle.com/transactions', {
method: 'POST',
headers: {
Authorization: `Bearer ${PADDLE_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
items: [...],
custom_data: {
website_id: 'flid_******',
},
}),
});Desteklenen Paddle webhook olayları
transaction.completedadjustment.created
Paddle'ın normalize edilmiş webhook verisi şu anda eşleştirme için bir e-posta adresi içermiyor; bu yüzden webhook tarafında yalnızca özel metadata'ya dayanan ziyaretçi/oturum atfına güvenmeyin.