Hi, I’ve stopped receiving “payload.data.relationships.currently_entitled_tiers” in the payload of “members:pledge:create” webhook event. Is it due to some API changes on Patreon’s side? How do I know what pledge did user bought by the payload of “members:pledge:create” webhook event?
Is this happening for all members, or only free members?
I don’t have free trials in my campaign, so for all users I guess. I also noticed that tiers became rewards in the payload.
Free members. Not free trials. Former followers are free members now. Try to confirm that these are not free members.
Here is the flow I tested:
- Signed up on Patreon
- Verified my email on Patreon
- On my website clicked “Subscribe on Patreon”
- Clicked “Allow” on the OAuth consent screen, it redirects user to the pledge checkout page patreon.com/checkout/xxx?rid=[rewardId]
- Successfullty paid with PayPal
I received 3 events member:pledge:create with the same payload. No info on successfull pledge buy:
{
"data": {
"attributes": {
"campaign_lifetime_support_cents": 0,
"currently_entitled_amount_cents": 0,
"email": "xxx",
"full_name": "xxx",
"is_follower": false,
"is_free_trial": false,
"last_charge_date": "2023-10-29T09:42:25.000+00:00",
"last_charge_status": "Pending",
"lifetime_support_cents": 0,
"next_charge_date": "2023-11-29T00:00:00.000+00:00",
"note": "",
"patron_status": "active_patron",
"pledge_cadence": 1,
"pledge_relationship_start": "2023-10-29T09:42:23.070+00:00",
"will_pay_amount_cents": 3500
},
"id": "xxx",
"relationships": {
"address": {
"data": null
},
"campaign": {
"data": {
"id": "xxx",
"type": "campaign"
},
"links": {
"related": "https://www.patreon.com/api/oauth2/v2/campaigns/xxx"
}
},
"currently_entitled_tiers": {
"data": []
},
"user": {
"data": {
"id": "xxx",
"type": "user"
},
"links": {
"related": "https://www.patreon.com/api/oauth2/v2/user/xxx"
}
}
},
"type": "member"
},
"included": [
{
"attributes": {
"created_at": "2023-10-23T11:26:57.000+00:00",
"creation_name": "xxx",
"discord_server_id": null,
"google_analytics_id": null,
"has_rss": false,
"has_sent_rss_notify": false,
"image_small_url": "xxx",
"image_url": "xxx",
"is_charged_immediately": true,
"is_monthly": true,
"is_nsfw": true,
"main_video_embed": "xxx",
"main_video_url": "xxx",
"one_liner": null,
"patron_count": 4,
"pay_per_name": "month",
"pledge_url": "/checkout/xxx",
"published_at": "2023-10-23T23:00:50.000+00:00",
"rss_artwork_url": null,
"rss_feed_title": null,
"summary": "xxx",
"thanks_embed": null,
"thanks_msg": null,
"thanks_video_url": null,
"url": "https://www.patreon.com/xxx",
"vanity": "xxx"
},
"id": "xxx",
"type": "campaign"
},
{
"attributes": {
"about": null,
"created": "2023-10-29T09:38:14.000+00:00",
"first_name": "xxx",
"full_name": "xxx",
"hide_pledges": true,
"image_url": "xxx",
"is_creator": false,
"last_name": "",
"like_count": 0,
"social_connections": {
"discord": null,
"facebook": null,
"google": null,
"instagram": null,
"reddit": null,
"spotify": null,
"spotify_open_access": null,
"twitch": null,
"twitter": null,
"vimeo": null,
"youtube": null
},
"thumb_url": "xxx",
"url": "https://www.patreon.com/user?u=xxx",
"vanity": null
},
"id": "xxx",
"type": "user"
}
],
"links": {
"self": "https://www.patreon.com/api/oauth2/v2/members/xxx"
}
}
Did you receive any members:update hooks and was the entitled tiers included in that?
You are right, I’m getting a “members:update” event with “last_charge_status” set to “Paid” and “currently_entitled_tiers”, so will be using it. Thanks!
The issue was that I tested with the card first and got “currently_entitled_tiers” in payload for “members:pledge:create” event. But it doesn’t work for PayPal flow.