pull, push, triage, maintain, या admin)। Dodo Payments collaborator invitation भेजता है और grant revoke होने पर collaborator को हटा देता है।क्या उपलब्ध कराया जाता है
- ग्राहक Customer Portal से अपना GitHub account connect करता है। इससे उसका GitHub account purchase से link हो जाता है।
- Dodo Payments उस account को आपके repository में configured permission level के साथ invite करता है। GitHub पर invitation स्वीकार करने के बाद ग्राहक को access मिल जाता है। यदि repository ग्राहक की own है, तो invitation की आवश्यकता नहीं होती।
- Cancellation, refund या manual revoke collaborator को हटा देता है और किसी भी pending invitation को cancel कर देता है।
GitHub कनेक्ट करें
Open Entitlements
Pick GitHub

Connect GitHub prompt before the install handoff.

GitHub Install & Authorize page. Choose which repositories the app can manage.

Account connected. Return to the Dodo Payments dashboard to continue.
Pick a Repository and Permission

Creating a GitHub entitlement. Pick the repository and the permission you want customers to receive.
Attach It to a Product
Permission levels
Entitlement GitHub की standard repository permissions का उपयोग करता है:Customer flow
- ग्राहक checkout पूरा करता है।
- Dodo Payments,
Pendingस्थिति में एक grant बनाता है। Dodo Payments तुरंत GitHub authorization URL बनाने का प्रयास करता है और उसेoauth_urlमें संग्रहीत करता है। यदि यह विफल रहता है, तो ग्राहक द्वारा accept flow शुरू किए जाने तकoauth_url,nullपर ही रहता है। - भुगतान पुष्टिकरण ईमेल entitlement को Action Required के रूप में सूचीबद्ध करता है और Customer Portal से लिंक करता है। पोर्टल में, ग्राहक Connect पर क्लिक करता है और GitHub के साथ authorization करता है। Authorization link 30 मिनट बाद समाप्त हो जाता है, और ग्राहक के वापस आने पर Customer Portal एक नया link बनाता है।
- Dodo Payments, ग्राहक के GitHub account को configured permission के साथ repository में आमंत्रित करता है। Invitation बनाए जाने के बाद grant,
Deliveredपर चला जाता है। यदि GitHub invitation अस्वीकार करता है, तो grant deliver नहीं किया जाता। - यदि subscription cancel हो जाती है, payment refund कर दिया जाता है, या grant revoke कर दिया जाता है, तो Dodo Payments ग्राहक को collaborator के रूप में हटा देता है और किसी भी pending invitation को cancel कर देता है।
आवश्यक configuration
API के माध्यम से बनाएँ
Webhooks
मानकentitlement_grant.* वेबहुक ईवेंट GitHub प्रवाह को कवर करते हैं:
entitlement_grant.created,status: "Pending"के साथ fire होता है।oauth_urlमें GitHub authorization URL पहले से मौजूद हो सकता है। यदि यहnullहै, तो ग्राहक द्वारा Customer Portal से accept flow शुरू करने पर इसमें value भर दी जाती है।entitlement_grant.delivered, collaborator invitation बनाए जाने के बाद fire होता है।entitlement_grant.revoked, access वापस लिए जाने पर fire होता है। यदि आप GitHub App uninstall करते हैं, तो Dodo Payments उस installation के pending और delivered grants कोrevocation_reason: platform_externalके साथ revoke कर देता है।- यदि Dodo Payments ग्राहक को repository में add नहीं कर पाता, तो
entitlement_grant.failed,error_code: "GRANT_ACCESS_FAILED"के साथ fire होता है; उदाहरण के लिए, GitHub App का उस repository तक access समाप्त हो जाने पर।
समस्या निवारण
Repository picker is empty
Repository picker is empty
Grant fails with a permission error
Grant fails with a permission error
Customer hasn't accepted the invite
Customer hasn't accepted the invite
Delivered रहता है, क्योंकि invitation Dodo Payments द्वारा issue किया जाता है।