Integration with the marketplace for payments


#1

Very exciting the new marketplace launch today. I wasn’t ready for that - my integration (mmm… sorry… GitHub app) does it’s own saas subscription thing. Now it looks like you want to do the billing on behalf of me and that’s fine, even better. Just couldn’t find anywhere in the new docs how to integrate with that. The only thing I found is a new hook https://developer.github.com/v3/activity/events/types/#marketplacepurchaseevent but that’s not quite enough… for example, how do I manage quotas? how do I setup free trials? stuff like that. any lead here?


#2

@shaharsol You can find information on listing your GitHub App on Marketplace here. We do have some Marketplace API docs here, but don’t worry too much about any of that implementation until you submit your app to the Marketplace and we’re in touch with you.


#3

@jmilas ok cool. I have 3 submissions waiting already :wink: For the particular one I’ve mentioned here I didn’t even fill in the “pricing” tab details since I hadn’t yet noticed it. I hope you won’t confuse it for a free app…


#4

Feel free to temporarily withdraw the request for review on the edit page for that listing so you can add plans and then resubmit it. We’ll need the plans before we can begin appropriate review.


#5

Thanks @jmilas just did. Did it cost me my slot in the queue? am I pushed back now? Anyway, another question if I may - what’s the webhook tab in the app submission form? I mean, I have the hook configured already in the integration itself. Is there any different webhook specifically for the marketplace? i.e. to handle billing events? This is totally unclear.


#6

Did it cost me my slot in the queue? am I pushed back now?

Not necessarily.

Anyway, another question if I may - what’s the webhook tab in the app submission form? I mean, I have the hook configured already in the integration itself. Is there any different webhook specifically for the marketplace?

There is a different webhook for your Marketplace listing that is used to handle purchase-related events. We’re improving the UX to make that clearer.


#7

Sweet thanks. Skimmed through the doc of that new event and wonder why installation_id is missing from it. A marketplace purchase is going to apply to all customer installations across all of their orgs/repos?


#8

Hi, @shaharsol. :wave: Please contact GitHub Support with any further questions about GitHub Marketplace – this forum should be used for feedback and questions about the GitHub Apps feature, not Marketplace, as mentioned here:

Not sure if you’re aware, but Marketplace isn’t limited to GitHub Apps – it can be used with GitHub OAuth applications as well.

Thanks!