Replies: 2 comments
-
Patreon seems to have integrations to many apps (~750) here But if you want to do a custom integration, you will have to use their API. They seem to have a few SDKs depending on what language you are using. I would double check that the SDK does what you want first before integration, as you might have to go straight to the API - that has caught me out before on another API/SDK situation I have not used Patreon, but from their basic docs, I think the flow would need to be:
User{
"type": "user"
"id": <string>
"attributes": {
"first_name": <string>
"last_name": <string>
"full_name": <string>
"vanity": <string>
"email": <string>
"about": <string>
"facebook_id": <string>
"image_url": <string>
"thumb_url": <string>
"youtube": <string>
"twitter": <string>
"facebook": <string>
"created": <date>
"url": <string>
// optional properties
"like_count": <int>
"comment_count": <int>
}
"relationships": {
"campaign": ...<campaign>...
}
} Campaign{
"type": "campaign"
"id": <string>
"attributes": {
"summary": <string>
"creation_name": <string>
"pay_per_name": <string>
"one_liner": <string>
"main_video_embed": <string>
"main_video_url": <string>
"image_small_url": <string>
"image_url": <string>
"thanks_video_url": <string>
"thanks_embed": <string>
"thanks_msg": <string>
"is_monthly": <bool>
"is_nsfw": <bool>
"created_at": <date>
"published_at": <date>
"pledge_url": <string>
"pledge_sum": <int>
"patron_count": <int>
"creation_count": <int>
"outstanding_payment_amount_cents": <int>
}
"relationships": {
"creator": ...<user>...
"rewards": [ ...<reward>, <reward>, ... ]
"goals": [ ...<goal>, <goal>, ... ]
"pledges": [ ...<pledge>, <pledge>, ... ]
}
} Pledge{
"type": "pledge"
"id": <string>
"attributes": {
"amount_cents": <int> // Amount cents in the currency used by the patron
"created_at": <date>
"currency": <string> // Currency code of the pledge event (USD, GBP, EUR etc.)
"declined_since": <date>
"patron_pays_fees": <bool>
"pledge_cap_cents": <int>
// optional properties
"total_historical_amount_cents": <int>
"is_paused": <bool>
"status": <string> // The status of this pledge (valid, declined, pending, disabled)
"has_shipping_address": <bool>
}
"relationships": {
"patron": ...<user>...
"reward": ...<reward>... // Tier associated with this pledge
"creator": ...<user>...
"address": ...<address>...
}
} Also, you will want to add a webhook to notify your app when the user stops the membership, you can remove any privileges / roles {
"data": {
"attributes": {
"amount_cents": 250,
"created_at": "2015-05-18T23:50:42+00:00",
"declined_since": null,
"patron_pays_fees": false,
"pledge_cap_cents": null
},
"id": "1",
"relationships": {
"address": {
"data": null
},
"card": {
"data": null
},
"creator": {
"data": {
"id": "3024102",
"type": "user"
},
"links": {
"related": "https://www.patreon.com/api/user/3024102"
}
},
"patron": {
"data": {
"id": "32187",
"type": "user"
},
"links": {
"related": "https://www.patreon.com/api/user/32187"
}
},
"reward": {
"data": {
"id": "599336",
"type": "reward"
},
"links": {
"related": "https://www.patreon.com/api/rewards/599336"
}
}
},
"type": "pledge"
},
"included": [{ ** * Creator Object ** *
},
{ ** * Patron Object ** *
},
{ ** * Reward Object ** *
},
]
} |
Beta Was this translation helpful? Give feedback.
-
I don't think I've seen a situation quite like this:
All I know of Patreon's operations is that it's raised over $250 million in funding and had $55 million revenue last year, a figure that doubles each year. Saying they lack the resources to maintain their endpoints just confuses me. I'd think a pseudo-payment processor would architect their service as a service, and develop and use the same APIs and libraries they release publicly internally as well. Just weird the API can be abandoned at all, as if it's a completely separate thing from the rest of their systems? Then of course the ambiguity about what "abandoning" an API means, while they still imply they'll "fix critical issues affecting uptime".
No one can make an informed decision with only these details. Will the API be deprecated and shut down? If so, when exactly. If they get what they hope for when they say "We hope to be able to return to active support and continued updates", when could that realistically happen? I would be much more confident in this service if they created a tentative timeline at least. I'll ask again here what I said elsewhere:
|
Beta Was this translation helpful? Give feedback.
-
Has anyone used Patreon as basically subscription payment handler for a website/app?
Is possible to link users of an app to paying patrons? (in order to give perks)
With their API. I basically want to use it like a payment processor
you sign up on my app, decide to become paying user, click link to become patron, link account, and then given extra features within my app so long as you're a patron
they can become a member on patreon, not through my app
i just wanna link them there, but wanna know the process (if any) of confirming they're a patron
i remember spending some time on it before and something didn't seem right about it. spoke to someone else who said oh yeah tthey basically don't care abou hte API, etc
Beta Was this translation helpful? Give feedback.
All reactions