امنح العملاء وصولًا بصلاحية collaborator إلى مستودع GitHub خاص بمستوى الأذونات الذي تختاره، وألغِه تلقائيًا عند الإلغاء.
تضيف صلاحية GitHub عميلًا يدفع إلى مستودع خاص بصفته collaborator. تختار مستوى الأذونات (pull أو push أو triage أو maintain أو admin). يرسل Dodo Payments دعوة collaborator ويزيل collaborator عند إلغاء الصلاحية.
يربط العميل حسابه على GitHub من Customer Portal. يؤدي ذلك إلى ربط حساب GitHub الخاص به بعملية الشراء.
يدعو Dodo Payments هذا الحساب إلى مستودعك بمستوى الأذونات المُهيأ. يحصل العميل على الوصول بعد قبول الدعوة على GitHub. إذا كان العميل يملك المستودع، فلا حاجة إلى إرسال دعوة.
يؤدي الإلغاء أو استرداد المبلغ أو الإلغاء اليدوي إلى إزالة collaborator وإلغاء أي دعوة معلّقة.
تشمل الاستخدامات الشائعة المنتجات المتاحة المصدر، والقوالب المدفوعة، ومستودعات أكواد الدورات، وSDKs الخاصة بالعملاء والمقيّدة.
في لوحة معلومات Dodo Payments، انتقل إلى Entitlements وانقر على + لبدء صلاحية جديدة.
2
Pick GitHub
اختر GitHub Access باعتباره التكامل. إذا لم يكن GitHub متصلًا بعد، فانقر على Connect GitHub.
Connect GitHub prompt before the install handoff.
يفتح GitHub في علامة تبويب جديدة. سجّل الدخول، ثم ثبّت Dodo Payments GitHub App على المؤسسة أو حساب المستخدم الذي يملك المستودع. يمكنك منح التطبيق الوصول إلى All repositories أو Only select repositories. إذا اخترت مستودعات محددة، فأدرج كل مستودع تنوي تقييد الوصول إليه.
GitHub Install & Authorize page. Choose which repositories the app can manage.
عندما يعيد GitHub التوجيه، تعرض صفحة تأكيد أن الحساب متصل.
Account connected. Return to the Dodo Payments dashboard to continue.
3
Pick a Repository and Permission
بالعودة إلى لوحة المعلومات، حدد Repository الذي تمنح الصلاحية الوصول إليه، ثم حدد مستوى Permission. يعرض منتقي المستودعات المستودعات التي يمكن لـ GitHub App الوصول إليها فقط. أدخل Name للصلاحية وانقر على Create Entitlement.
Creating a GitHub entitlement. Pick the repository and the permission you want customers to receive.
4
Attach It to a Product
اربط الصلاحية بأي منتج. يحصل العملاء الذين يشترون هذا المنتج على دعوة GitHub بعد ربط حساب GitHub الخاص بهم.
ينشئ Dodo Payments منحة بالحالة Pending. يحاول Dodo Payments إنشاء عنوان URL للتفويض في GitHub فورًا، ويخزّنه في oauth_url. إذا فشلت العملية، يبقى oauth_url بالقيمة null حتى يبدأ العميل تدفق القبول.
يعرض البريد الإلكتروني لتأكيد الدفع الاستحقاق بالحالة Action Required ويرتبط بـ Customer Portal. في البوابة، ينقر العميل على Connect ويفوّض باستخدام GitHub. تنتهي صلاحية رابط التفويض بعد 30 دقيقة، وينشئ Customer Portal رابطًا جديدًا عند عودة العميل.
يرسل Dodo Payments دعوة إلى حساب GitHub الخاص بالعميل للانضمام إلى المستودع بالأذونات المُهيأة. تنتقل المنحة إلى Delivered بمجرد إنشاء الدعوة. إذا رفض GitHub الدعوة، فلا يتم تسليم المنحة.
إذا أُلغيت الاشتراكية، أو تم رد المبلغ، أو أُلغيت المنحة، يزيل Dodo Payments العميل بصفته متعاونًا ويلغي أي دعوة معلّقة.
// client is a *dodopayments.Client, for example from// dodopayments.NewClient(option.WithEnvironmentTestMode()); ctx is a context.Context.client.Entitlements.New(ctx, dodopayments.EntitlementNewParams{ Name: dodopayments.F("Code Share Repository"), IntegrationType: dodopayments.F(dodopayments.EntitlementIntegrationTypeGitHub), IntegrationConfig: dodopayments.F[dodopayments.IntegrationConfigUnionParam]( dodopayments.IntegrationConfigGitHubConfigParam{ TargetID: dodopayments.F("acme/private-sdk"), Permission: dodopayments.F(dodopayments.GitHubPermissionPull), }, ),})
يتم تشغيل entitlement_grant.created مع status: "Pending". قد يحتوي oauth_url مسبقًا على عنوان URL لتفويض GitHub. إذا كانت قيمته null، فستتم تعبئته بمجرد أن يبدأ العميل تدفق القبول من Customer Portal.
يتم تشغيل entitlement_grant.delivered بمجرد إنشاء دعوة المتعاون.
يتم تشغيل entitlement_grant.revoked عند سحب الوصول. إذا أزلت تثبيت GitHub App، فإن Dodo Payments يلغي المنح المعلّقة والمسلّمة الخاصة بذلك التثبيت باستخدام revocation_reason: platform_external.
يتم تشغيل entitlement_grant.failed مع error_code: "GRANT_ACCESS_FAILED" إذا تعذّر على Dodo Payments إضافة العميل إلى المستودع، مثلًا لأن GitHub App فقد الوصول إليه.
يجب تثبيت Dodo Payments GitHub App على المؤسسة أو المستخدم الذي يملك المستودع. في نموذج الاستحقاق، انقر على Disconnect في بطاقة GitHub، ثم انقر على Connect GitHub لإعادة تثبيت التطبيق، وامنحه الوصول إلى المستودعات التي تريد تقييد الوصول إليها.
Grant fails with a permission error
لم يعد تثبيت GitHub App يملك صلاحية الوصول إلى المستودع، أو أُعيدت تسمية المستودع أو نُقل. امنح التطبيق الوصول إلى المستودع مرة أخرى، وستنجح إعادة المنح التالية.
Customer hasn't accepted the invite
يقبل العملاء دعوة GitHub من إشعارات GitHub الخاصة بهم أو من الرابط الموجود في رسالة الدعوة الإلكترونية من GitHub. إلى أن يقبلوها، يكونون مدعوين لكن لا يمكنهم استنساخ المستودع. تظل المنحة في الحالة Delivered في Dodo Payments، لأن الدعوة هي ما يصدره Dodo Payments.
آخر تعديل في ٢٨ سبتمبر ٢٠٢٦
هل كانت هذه الصفحة مفيدة؟
⌘I
{"docsConfig":{"theme":"maple","$schema":"https://mintlify.com/docs.json","name":"Dodo Payments Documentation","description":"Documentation for Dodo Payments — the all-in-one payments, billing, and merchant of record platform for SaaS, AI, and digital products.","colors":{"primary":"#779812","light":"#C6FE1E","dark":"#166534"},"logo":{"light":"https://mintcdn.com/dodopayments/nM_mJfYkri-OpC5M/logo/light.svg?fit=max\u0026auto=format\u0026n=nM_mJfYkri-OpC5M\u0026q=85\u0026s=23f7a052f7ecb9d6570b7c95ee359a97","dark":"https://mintcdn.com/dodopayments/nM_mJfYkri-OpC5M/logo/dark.svg?fit=max\u0026auto=format\u0026n=nM_mJfYkri-OpC5M\u0026q=85\u0026s=cd6c20238a54526436f21c43fee51b26"},"favicon":"https://mintcdn.com/dodopayments/doYQc9oUE-WNz0cs/favicon.svg?fit=max\u0026auto=format\u0026n=doYQc9oUE-WNz0cs\u0026q=85\u0026s=271c6cc8ce7d6bf4d7f2b9cca029e004","background":{"color":{"light":"#FFFFFF","dark":"#0D0D0D"}},"navbar":{"links":[{"icon":"link","href":"https://docs.dodopayments.com/llms-full.txt","label":"llms-full.txt"},{"icon":"discord","href":"https://discord.gg/bYqAp4ayYh","label":"Community"},{"icon":"house","href":"https://app.dodopayments.com/","label":"Dashboard"}]},"footer":{"socials":{"x":"https://x.com/dodopayments","linkedin":"https://linkedin.com/company/dodopayments","website":"https://dodopayments.com","discord":"https://discord.gg/bYqAp4ayYh","github":"https://github.com/dodopayments","instagram":"https://www.instagram.com/dodo.payments","facebook":"https://www.facebook.com/profile.php?id=61565515607280"}},"seo":{"metatags":{"og:site_name":"Dodo Payments Documentation","twitter:card":"summary_large_image"},"indexing":"navigable"},"fonts":{"heading":{"family":"ApfelGrotezk","weight":400,"source":"fonts/ApfelGrotezk-Regular.woff2","format":"woff2"},"body":{"family":"Inter","weight":400,"source":"fonts/Inter-Variable.woff2","format":"woff2"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","cursor"],"display":"header"},"metadata":{"timestamp":true},"styling":{"latex":true},"navigation":{"languages":[{"language":"en","href":"introduction"},{"language":"es","href":"es/introduction"},{"language":"ar","href":"ar/introduction"},{"language":"fr","href":"fr/introduction"},{"language":"de","href":"de/introduction"},{"language":"id","href":"id/introduction"},{"language":"ja","href":"ja/introduction"},{"language":"ko","href":"ko/introduction"},{"language":"pt-BR","href":"pt-BR/introduction"},{"language":"vi","href":"vi/introduction"},{"language":"cn","href":"cn/introduction"},{"language":"hi","href":"hi/introduction"},{"language":"it","href":"it/introduction"},{"language":"sv","href":"sv/introduction"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"dodopayments","hasAudioNarration":false,"actualSubdomain":"dodopayments","customDomains":["docs.dodopayments.com"],"gitSource":{"type":"github","owner":"dodopayments","repo":"dodo-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ae4a48d737a5e6c8f11570f","collectionId":"7d1fdd95-d2f3-45f6-b7c1-915a4bc82be8","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae4a48d737a5e6c8f11570f"},"feedback":{"thumbs":true,"edits":false,"issues":false},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6ae4a48d737a5e6c8f11570f","clientVersion":"0.0.4043","searchFilterCounts":[{"language":"en","tag":"Docs","count":171},{"language":"en","tag":"API Reference","count":163},{"language":"ar","tag":"Docs","count":153},{"language":"cn","tag":"Docs","count":153},{"language":"de","tag":"Docs","count":153},{"language":"es","tag":"Docs","count":153},{"language":"fr","tag":"Docs","count":153},{"language":"hi","tag":"Docs","count":153},{"language":"id","tag":"Docs","count":153},{"language":"it","tag":"Docs","count":153},{"language":"ja","tag":"Docs","count":153},{"language":"ko","tag":"Docs","count":153},{"language":"pt-BR","tag":"Docs","count":153},{"language":"sv","tag":"Docs","count":153},{"language":"vi","tag":"Docs","count":153},{"language":"ar","tag":"API Reference","count":151},{"language":"cn","tag":"API Reference","count":151},{"language":"de","tag":"API Reference","count":151},{"language":"es","tag":"API Reference","count":151},{"language":"fr","tag":"API Reference","count":151},{"language":"hi","tag":"API Reference","count":151},{"language":"id","tag":"API Reference","count":151},{"language":"it","tag":"API Reference","count":151},{"language":"ja","tag":"API Reference","count":151},{"language":"ko","tag":"API Reference","count":151},{"language":"pt-BR","tag":"API Reference","count":151},{"language":"sv","tag":"API Reference","count":151},{"language":"vi","tag":"API Reference","count":151},{"language":"en","tag":"Features","count":82},{"language":"ar","tag":"Features","count":81},{"language":"cn","tag":"Features","count":81},{"language":"de","tag":"Features","count":81},{"language":"es","tag":"Features","count":81},{"language":"fr","tag":"Features","count":81},{"language":"hi","tag":"Features","count":81},{"language":"id","tag":"Features","count":81},{"language":"it","tag":"Features","count":81},{"language":"ja","tag":"Features","count":81},{"language":"ko","tag":"Features","count":81},{"language":"pt-BR","tag":"Features","count":81},{"language":"sv","tag":"Features","count":81},{"language":"vi","tag":"Features","count":81},{"language":"en","tag":"Integrate","count":73},{"language":"en","tag":"Changelog","count":65},{"language":"ar","tag":"Changelog","count":65},{"language":"cn","tag":"Changelog","count":65},{"language":"de","tag":"Changelog","count":65},{"language":"es","tag":"Changelog","count":65},{"language":"fr","tag":"Changelog","count":65},{"language":"hi","tag":"Changelog","count":65},{"language":"id","tag":"Changelog","count":65},{"language":"it","tag":"Changelog","count":65},{"language":"ja","tag":"Changelog","count":65},{"language":"ko","tag":"Changelog","count":65},{"language":"pt-BR","tag":"Changelog","count":65},{"language":"sv","tag":"Changelog","count":65},{"language":"vi","tag":"Changelog","count":65},{"language":"ar","tag":"Integrate","count":59},{"language":"cn","tag":"Integrate","count":59},{"language":"de","tag":"Integrate","count":59},{"language":"es","tag":"Integrate","count":59},{"language":"fr","tag":"Integrate","count":59},{"language":"hi","tag":"Integrate","count":59},{"language":"id","tag":"Integrate","count":59},{"language":"it","tag":"Integrate","count":59},{"language":"ja","tag":"Integrate","count":59},{"language":"ko","tag":"Integrate","count":59},{"language":"pt-BR","tag":"Integrate","count":59},{"language":"sv","tag":"Integrate","count":59},{"language":"vi","tag":"Integrate","count":59},{"language":"en","tag":"External Integrations","count":33},{"language":"ar","tag":"External Integrations","count":30},{"language":"cn","tag":"External Integrations","count":30},{"language":"de","tag":"External Integrations","count":30},{"language":"es","tag":"External Integrations","count":30},{"language":"fr","tag":"External Integrations","count":30},{"language":"hi","tag":"External Integrations","count":30},{"language":"id","tag":"External Integrations","count":30},{"language":"it","tag":"External Integrations","count":30},{"language":"ja","tag":"External Integrations","count":30},{"language":"ko","tag":"External Integrations","count":30},{"language":"pt-BR","tag":"External Integrations","count":30},{"language":"sv","tag":"External Integrations","count":30},{"language":"vi","tag":"External Integrations","count":30},{"language":"en","tag":"Webhooks","count":23},{"language":"ar","tag":"Webhooks","count":23},{"language":"cn","tag":"Webhooks","count":23},{"language":"de","tag":"Webhooks","count":23},{"language":"es","tag":"Webhooks","count":23},{"language":"fr","tag":"Webhooks","count":23},{"language":"hi","tag":"Webhooks","count":23},{"language":"id","tag":"Webhooks","count":23},{"language":"it","tag":"Webhooks","count":23},{"language":"ja","tag":"Webhooks","count":23},{"language":"ko","tag":"Webhooks","count":23},{"language":"pt-BR","tag":"Webhooks","count":23},{"language":"sv","tag":"Webhooks","count":23},{"language":"vi","tag":"Webhooks","count":23},{"language":"en","tag":"Guides","count":22},{"language":"ar","tag":"Guides","count":22},{"language":"cn","tag":"Guides","count":22},{"language":"de","tag":"Guides","count":22},{"language":"es","tag":"Guides","count":22},{"language":"fr","tag":"Guides","count":22},{"language":"hi","tag":"Guides","count":22},{"language":"id","tag":"Guides","count":22},{"language":"it","tag":"Guides","count":22},{"language":"ja","tag":"Guides","count":22},{"language":"ko","tag":"Guides","count":22},{"language":"pt-BR","tag":"Guides","count":22},{"language":"sv","tag":"Guides","count":22},{"language":"vi","tag":"Guides","count":22},{"language":"en","tag":"Entitlements","count":20},{"language":"ar","tag":"Entitlements","count":20},{"language":"cn","tag":"Entitlements","count":20},{"language":"de","tag":"Entitlements","count":20},{"language":"es","tag":"Entitlements","count":20},{"language":"fr","tag":"Entitlements","count":20},{"language":"hi","tag":"Entitlements","count":20},{"language":"id","tag":"Entitlements","count":20},{"language":"it","tag":"Entitlements","count":20},{"language":"ja","tag":"Entitlements","count":20},{"language":"ko","tag":"Entitlements","count":20},{"language":"pt-BR","tag":"Entitlements","count":20},{"language":"sv","tag":"Entitlements","count":20},{"language":"vi","tag":"Entitlements","count":20},{"language":"en","tag":"Customers","count":16},{"language":"ar","tag":"Customers","count":16},{"language":"cn","tag":"Customers","count":16},{"language":"de","tag":"Customers","count":16},{"language":"es","tag":"Customers","count":16},{"language":"fr","tag":"Customers","count":16},{"language":"hi","tag":"Customers","count":16},{"language":"id","tag":"Customers","count":16},{"language":"it","tag":"Customers","count":16},{"language":"ja","tag":"Customers","count":16},{"language":"ko","tag":"Customers","count":16},{"language":"pt-BR","tag":"Customers","count":16},{"language":"sv","tag":"Customers","count":16},{"language":"vi","tag":"Customers","count":16}]},"assistantConfig":{"deflection":{"enabled":false,"email":"support@dodopayments.com","showHelpButton":true}},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"styles.css","content":"#content-area{max-width:60rem}h1,h2,h3,h4,h5,h6{letter-spacing:.05em!important}.welcome-page .card-group{margin:3rem auto 8rem;max-width:70rem;padding-left:1.25rem;padding-right:1.25rem}.welcome-page .card-group .card{padding:1rem}.welcome-hero{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:20vh;text-align:center;margin-top:3rem;margin-bottom:2.5rem}.welcome-hero h1{font-size:2.5rem;font-weight:700;margin-bottom:1rem;line-height:1.2;color:#fff;color:rgb(41 42 37/1)}.welcome-hero p{font-size:1.25rem;max-width:600px;margin:0 auto;color:rgb(83 85 79/1)}.dark .welcome-hero h1{color:rgb(255 255 255/1)}.dark .welcome-hero p{color:rgb(162 164 158/1)}"}],"page":{"pagePath":"ar/features/entitlements/github","slug":"/ar/features/entitlements/github","pageMetadata":{"title":"استحقاق GitHub","sidebarTitle":"GitHub","description":"امنح العملاء وصولًا بصلاحية collaborator إلى مستودع GitHub خاص بمستوى الأذونات الذي تختاره، وألغِه تلقائيًا عند الإلغاء.","icon":"github","keywords":["Dodo Payments","GitHub","استحقاق","الوصول إلى المستودع","مستودع خاص"],"href":"/ar/features/entitlements/github"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"امنح العملاء وصولًا بصلاحية collaborator إلى مستودع GitHub خاص بمستوى الأذونات الذي تختاره، وألغِه تلقائيًا عند الإلغاء.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Accordion,AccordionGroup,CodeBlock,CodeGroup,Frame,Heading,Info,OptimizedImage,Step,Steps,Table,Warning}=_components;if(!Accordion)_missingMdxReference(`Accordion`,true);if(!AccordionGroup)_missingMdxReference(`AccordionGroup`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Info,{children:_jsxs(_components.p,{children:[`تضيف صلاحية GitHub عميلًا يدفع إلى مستودع خاص بصفته collaborator. تختار مستوى الأذونات (`,_jsx(_components.code,{children:`pull`}),` أو `,_jsx(_components.code,{children:`push`}),` أو `,_jsx(_components.code,{children:`triage`}),` أو `,_jsx(_components.code,{children:`maintain`}),` أو `,_jsx(_components.code,{children:`admin`}),`). يرسل Dodo Payments دعوة collaborator ويزيل collaborator عند إلغاء الصلاحية.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`ما-يتم-تسليمه`,children:`ما يتم تسليمه`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`يربط العميل حسابه على GitHub من Customer Portal. يؤدي ذلك إلى ربط حساب GitHub الخاص به بعملية الشراء.`}),`\n`,_jsx(_components.li,{children:`يدعو Dodo Payments هذا الحساب إلى مستودعك بمستوى الأذونات المُهيأ. يحصل العميل على الوصول بعد قبول الدعوة على GitHub. إذا كان العميل يملك المستودع، فلا حاجة إلى إرسال دعوة.`}),`\n`,_jsx(_components.li,{children:`يؤدي الإلغاء أو استرداد المبلغ أو الإلغاء اليدوي إلى إزالة collaborator وإلغاء أي دعوة معلّقة.`}),`\n`]}),`\n`,_jsx(_components.p,{children:`تشمل الاستخدامات الشائعة المنتجات المتاحة المصدر، والقوالب المدفوعة، ومستودعات أكواد الدورات، وSDKs الخاصة بالعملاء والمقيّدة.`}),`\n`,_jsx(Heading,{level:`2`,id:`الاتصال-بـ-github`,children:`الاتصال بـ GitHub`}),`\n`,_jsxs(Steps,{children:[_jsx(Step,{title:`Open Entitlements`,children:_jsxs(_components.p,{children:[`في لوحة معلومات Dodo Payments، انتقل إلى `,_jsx(_components.strong,{children:`Entitlements`}),` وانقر على `,_jsx(_components.strong,{children:`+`}),` لبدء صلاحية جديدة.`]})}),_jsxs(Step,{title:`Pick GitHub`,children:[_jsxs(_components.p,{children:[`اختر `,_jsx(_components.strong,{children:`GitHub Access`}),` باعتباره التكامل. إذا لم يكن GitHub متصلًا بعد، فانقر على `,_jsx(_components.strong,{children:`Connect GitHub`}),`.`]}),_jsx(Frame,{caption:`Connect GitHub prompt before the install handoff.`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/dodopayments/do-W-dMDGVB_xzr_/images/entitlements/github/connect-prompt.png?fit=max\u0026auto=format\u0026n=do-W-dMDGVB_xzr_\u0026q=85\u0026s=8a836c94099accdb2b3dc31c22d0e11b`,alt:`New entitlement panel prompting the merchant to connect GitHub`,style:{maxHeight:`500px`,width:`auto`},\"data-og-width\":`2000`,width:`2000`,\"data-og-height\":`1129`,height:`1129`,\"data-path\":`images/entitlements/github/connect-prompt.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/dodopayments/do-W-dMDGVB_xzr_/images/entitlements/github/connect-prompt.png?w=280\u0026fit=max\u0026auto=format\u0026n=do-W-dMDGVB_xzr_\u0026q=85\u0026s=942ab896730cb92e2ab62f3f6fa10511 280w, https://mintcdn.com/dodopayments/do-W-dMDGVB_xzr_/images/entitlements/github/connect-prompt.png?w=560\u0026fit=max\u0026auto=format\u0026n=do-W-dMDGVB_xzr_\u0026q=85\u0026s=e11b794bc274805b3f3b79d98de7af91 560w, https://mintcdn.com/dodopayments/do-W-dMDGVB_xzr_/images/entitlements/github/connect-prompt.png?w=840\u0026fit=max\u0026auto=format\u0026n=do-W-dMDGVB_xzr_\u0026q=85\u0026s=1f5fa783e67bdf8f860dc8e8660b8f1c 840w, https://mintcdn.com/dodopayments/do-W-dMDGVB_xzr_/images/entitlements/github/connect-prompt.png?w=1100\u0026fit=max\u0026auto=format\u0026n=do-W-dMDGVB_xzr_\u0026q=85\u0026s=896b7c57e985a74a0ee9746c728021b5 1100w, https://mintcdn.com/dodopayments/do-W-dMDGVB_xzr_/images/entitlements/github/connect-prompt.png?w=1650\u0026fit=max\u0026auto=format\u0026n=do-W-dMDGVB_xzr_\u0026q=85\u0026s=aca2e68ecd21d500636ac74f8f290376 1650w, https://mintcdn.com/dodopayments/do-W-dMDGVB_xzr_/images/entitlements/github/connect-prompt.png?w=2500\u0026fit=max\u0026auto=format\u0026n=do-W-dMDGVB_xzr_\u0026q=85\u0026s=0e0611dcf521f4434a7d0342e743b74f 2500w`})}),_jsxs(_components.p,{children:[`يفتح GitHub في علامة تبويب جديدة. سجّل الدخول، ثم ثبّت Dodo Payments GitHub App على المؤسسة أو حساب المستخدم الذي يملك المستودع. يمكنك منح التطبيق الوصول إلى `,_jsx(_components.strong,{children:`All repositories`}),` أو `,_jsx(_components.strong,{children:`Only select repositories`}),`. إذا اخترت مستودعات محددة، فأدرج كل مستودع تنوي تقييد الوصول إليه.`]}),_jsx(Frame,{caption:`GitHub Install \u0026 Authorize page. Choose which repositories the app can manage.`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/dodopayments/do-W-dMDGVB_xzr_/images/entitlements/github/oauth-install.png?fit=max\u0026auto=format\u0026n=do-W-dMDGVB_xzr_\u0026q=85\u0026s=0788d3f6e9df8a087de824967f09c215`,alt:`صفحة تثبيت GitHub وتفويضه مع خياري All repositories وOnly select repositories`,style:{maxHeight:`500px`,width:`auto`},\"data-og-width\":`2000`,width:`2000`,\"data-og-height\":`1120`,height:`1120`,\"data-path\":`images/entitlements/github/oauth-install.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/dodopayments/do-W-dMDGVB_xzr_/images/entitlements/github/oauth-install.png?w=280\u0026fit=max\u0026auto=format\u0026n=do-W-dMDGVB_xzr_\u0026q=85\u0026s=8017ac0873d2d43845769b71dee24220 280w, https://mintcdn.com/dodopayments/do-W-dMDGVB_xzr_/images/entitlements/github/oauth-install.png?w=560\u0026fit=max\u0026auto=format\u0026n=do-W-dMDGVB_xzr_\u0026q=85\u0026s=5d41cdab3f183e220730c7e524865990 560w, https://mintcdn.com/dodopayments/do-W-dMDGVB_xzr_/images/entitlements/github/oauth-install.png?w=840\u0026fit=max\u0026auto=format\u0026n=do-W-dMDGVB_xzr_\u0026q=85\u0026s=ed3b029a7d50fbef3bb02050eb415167 840w, https://mintcdn.com/dodopayments/do-W-dMDGVB_xzr_/images/entitlements/github/oauth-install.png?w=1100\u0026fit=max\u0026auto=format\u0026n=do-W-dMDGVB_xzr_\u0026q=85\u0026s=a8964c1d4d0074df1ed4dd9e905ab77c 1100w, https://mintcdn.com/dodopayments/do-W-dMDGVB_xzr_/images/entitlements/github/oauth-install.png?w=1650\u0026fit=max\u0026auto=format\u0026n=do-W-dMDGVB_xzr_\u0026q=85\u0026s=bbe2a1fabe2d00f0a57d9fdcce6ad3f5 1650w, https://mintcdn.com/dodopayments/do-W-dMDGVB_xzr_/images/entitlements/github/oauth-install.png?w=2500\u0026fit=max\u0026auto=format\u0026n=do-W-dMDGVB_xzr_\u0026q=85\u0026s=4eeed012b2d814837965389c08c3f2e5 2500w`})}),_jsx(_components.p,{children:`عندما يعيد GitHub التوجيه، تعرض صفحة تأكيد أن الحساب متصل.`}),_jsx(Frame,{caption:`Account connected. Return to the Dodo Payments dashboard to continue.`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/dodopayments/do-W-dMDGVB_xzr_/images/entitlements/github/connected.png?fit=max\u0026auto=format\u0026n=do-W-dMDGVB_xzr_\u0026q=85\u0026s=ee3c87c3b3917f473ff3d376dfdc6494`,alt:`صفحة تأكيد نجاح اتصال GitHub Access`,style:{maxHeight:`500px`,width:`auto`},\"data-og-width\":`2000`,width:`2000`,\"data-og-height\":`1137`,height:`1137`,\"data-path\":`images/entitlements/github/connected.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/dodopayments/do-W-dMDGVB_xzr_/images/entitlements/github/connected.png?w=280\u0026fit=max\u0026auto=format\u0026n=do-W-dMDGVB_xzr_\u0026q=85\u0026s=6c869f139ca751f668e6870384197fa0 280w, https://mintcdn.com/dodopayments/do-W-dMDGVB_xzr_/images/entitlements/github/connected.png?w=560\u0026fit=max\u0026auto=format\u0026n=do-W-dMDGVB_xzr_\u0026q=85\u0026s=23c88456632dddeaf8fd27a44578d33d 560w, https://mintcdn.com/dodopayments/do-W-dMDGVB_xzr_/images/entitlements/github/connected.png?w=840\u0026fit=max\u0026auto=format\u0026n=do-W-dMDGVB_xzr_\u0026q=85\u0026s=aaef4e4c181a97eea5961086161e71e1 840w, https://mintcdn.com/dodopayments/do-W-dMDGVB_xzr_/images/entitlements/github/connected.png?w=1100\u0026fit=max\u0026auto=format\u0026n=do-W-dMDGVB_xzr_\u0026q=85\u0026s=68ff88fac797c91e590b80e593d34074 1100w, https://mintcdn.com/dodopayments/do-W-dMDGVB_xzr_/images/entitlements/github/connected.png?w=1650\u0026fit=max\u0026auto=format\u0026n=do-W-dMDGVB_xzr_\u0026q=85\u0026s=24836a546d4d3eb3a5628ea9ff0cf64e 1650w, https://mintcdn.com/dodopayments/do-W-dMDGVB_xzr_/images/entitlements/github/connected.png?w=2500\u0026fit=max\u0026auto=format\u0026n=do-W-dMDGVB_xzr_\u0026q=85\u0026s=dfcdc00fc59dd5338f0eef1a7b86cbbe 2500w`})})]}),_jsxs(Step,{title:`Pick a Repository and Permission`,children:[_jsxs(_components.p,{children:[`بالعودة إلى لوحة المعلومات، حدد `,_jsx(_components.strong,{children:`Repository`}),` الذي تمنح الصلاحية الوصول إليه، ثم حدد مستوى `,_jsx(_components.strong,{children:`Permission`}),`. يعرض منتقي المستودعات المستودعات التي يمكن لـ GitHub App الوصول إليها فقط. أدخل `,_jsx(_components.strong,{children:`Name`}),` للصلاحية وانقر على `,_jsx(_components.strong,{children:`Create Entitlement`}),`.`]}),_jsx(Frame,{caption:`Creating a GitHub entitlement. Pick the repository and the permission you want customers to receive.`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/dodopayments/do-W-dMDGVB_xzr_/images/entitlements/github/create.png?fit=max\u0026auto=format\u0026n=do-W-dMDGVB_xzr_\u0026q=85\u0026s=722e925ec5158a5d16c58213132ccb9d`,alt:`GitHub entitlement form with connected GitHub Access, repository selector, permission dropdown, and name field`,style:{maxHeight:`500px`,width:`auto`},\"data-og-width\":`2000`,width:`2000`,\"data-og-height\":`1130`,height:`1130`,\"data-path\":`images/entitlements/github/create.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/dodopayments/do-W-dMDGVB_xzr_/images/entitlements/github/create.png?w=280\u0026fit=max\u0026auto=format\u0026n=do-W-dMDGVB_xzr_\u0026q=85\u0026s=27f80ec98d393359ca3136524a0ad9d8 280w, https://mintcdn.com/dodopayments/do-W-dMDGVB_xzr_/images/entitlements/github/create.png?w=560\u0026fit=max\u0026auto=format\u0026n=do-W-dMDGVB_xzr_\u0026q=85\u0026s=6cf0a907fa86298b9ad896b1a604fa0b 560w, https://mintcdn.com/dodopayments/do-W-dMDGVB_xzr_/images/entitlements/github/create.png?w=840\u0026fit=max\u0026auto=format\u0026n=do-W-dMDGVB_xzr_\u0026q=85\u0026s=a34a563dad17160d3c13067e3a349f3c 840w, https://mintcdn.com/dodopayments/do-W-dMDGVB_xzr_/images/entitlements/github/create.png?w=1100\u0026fit=max\u0026auto=format\u0026n=do-W-dMDGVB_xzr_\u0026q=85\u0026s=fc893072e5f07d021b962b0bdd87933c 1100w, https://mintcdn.com/dodopayments/do-W-dMDGVB_xzr_/images/entitlements/github/create.png?w=1650\u0026fit=max\u0026auto=format\u0026n=do-W-dMDGVB_xzr_\u0026q=85\u0026s=222cfaf3c0ac63f69d8494d7387d3e22 1650w, https://mintcdn.com/dodopayments/do-W-dMDGVB_xzr_/images/entitlements/github/create.png?w=2500\u0026fit=max\u0026auto=format\u0026n=do-W-dMDGVB_xzr_\u0026q=85\u0026s=f6b547a74f61c76b6735d3e92c4960d8 2500w`})})]}),_jsx(Step,{title:`Attach It to a Product`,children:_jsx(_components.p,{children:`اربط الصلاحية بأي منتج. يحصل العملاء الذين يشترون هذا المنتج على دعوة GitHub بعد ربط حساب GitHub الخاص بهم.`})})]}),`\n`,_jsx(Heading,{level:`2`,id:`مستويات-الأذونات`,children:`مستويات الأذونات`}),`\n`,_jsx(_components.p,{children:`تستخدم الصلاحية أذونات المستودعات القياسية في GitHub:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`الأذن`}),_jsx(_components.th,{children:`الأنسب لـ`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`pull`})}),_jsx(_components.td,{children:`وصول للقراءة فقط. يمكن للعملاء استنساخ المستودع وجلبه وعرضه.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`triage`})}),_jsx(_components.td,{children:`وصول للقراءة مع إمكانية إدارة المشكلات وطلبات السحب.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`push`})}),_jsx(_components.td,{children:`وصول للقراءة والكتابة. يمكن للعملاء دفع الفروع وفتح طلبات السحب.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`maintain`})}),_jsx(_components.td,{children:`وصول الدفع مع إمكانية إدارة إعدادات المستودع، باستثناء الإعدادات الحساسة.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`admin`})}),_jsx(_components.td,{children:`تحكم كامل في المستودع. استخدمه بحذر.`})]})]})]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`امنح `,_jsx(_components.strong,{children:`أقل قدر من الصلاحيات`}),` الذي يناسب حالة استخدامك. تحتاج معظم منتجات المحتوى المدفوعة إلى `,_jsx(_components.code,{children:`pull`}),` فقط.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`مسار-العميل`,children:`مسار العميل`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`يُكمل العميل عملية الدفع.`}),`\n`,_jsxs(_components.li,{children:[`ينشئ Dodo Payments منحة بالحالة `,_jsx(_components.code,{children:`Pending`}),`. يحاول Dodo Payments إنشاء عنوان URL للتفويض في GitHub فورًا، ويخزّنه في `,_jsx(_components.code,{children:`oauth_url`}),`. إذا فشلت العملية، يبقى `,_jsx(_components.code,{children:`oauth_url`}),` بالقيمة `,_jsx(_components.code,{children:`null`}),` حتى يبدأ العميل تدفق القبول.`]}),`\n`,_jsxs(_components.li,{children:[`يعرض البريد الإلكتروني لتأكيد الدفع الاستحقاق بالحالة `,_jsx(_components.strong,{children:`Action Required`}),` ويرتبط بـ Customer Portal. في البوابة، ينقر العميل على `,_jsx(_components.strong,{children:`Connect`}),` ويفوّض باستخدام GitHub. تنتهي صلاحية رابط التفويض بعد 30 دقيقة، وينشئ Customer Portal رابطًا جديدًا عند عودة العميل.`]}),`\n`,_jsxs(_components.li,{children:[`يرسل Dodo Payments دعوة إلى حساب GitHub الخاص بالعميل للانضمام إلى المستودع بالأذونات المُهيأة. تنتقل المنحة إلى `,_jsx(_components.code,{children:`Delivered`}),` بمجرد إنشاء الدعوة. إذا رفض GitHub الدعوة، فلا يتم تسليم المنحة.`]}),`\n`,_jsx(_components.li,{children:`إذا أُلغيت الاشتراكية، أو تم رد المبلغ، أو أُلغيت المنحة، يزيل Dodo Payments العميل بصفته متعاونًا ويلغي أي دعوة معلّقة.`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`الإعداد-المطلوب`,children:`الإعداد المطلوب`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`الحقل`}),_jsx(_components.th,{children:`مطلوب`}),_jsx(_components.th,{children:`الوصف`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`target_id`})}),_jsx(_components.td,{children:`نعم`}),_jsxs(_components.td,{children:[`المستودع الذي ستتم دعوة العميل إليه، بتنسيق `,_jsx(_components.code,{children:`owner/repo`}),`. يملأ منتقي المستودعات في لوحة المعلومات هذه القيمة نيابةً عنك.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`permission`})}),_jsx(_components.td,{children:`نعم`}),_jsxs(_components.td,{children:[`أحد القيم `,_jsx(_components.code,{children:`pull`}),` أو `,_jsx(_components.code,{children:`push`}),` أو `,_jsx(_components.code,{children:`triage`}),` أو `,_jsx(_components.code,{children:`maintain`}),` أو `,_jsx(_components.code,{children:`admin`}),`.`]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`الإنشاء-عبر-api`,children:`الإنشاء عبر API`}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`TypeScript`,expandable:`true`,numberOfLines:`15`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`15`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` DodoPayments`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'dodopayments'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` client`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` DodoPayments`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` bearerToken:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` process`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`env`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'DODO_PAYMENTS_API_KEY'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` environment:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'test_mode'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` entitlement`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`entitlements`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`create`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` name:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Code Share Repository'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` integration_type:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'github'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` integration_config:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` target_id:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'acme/private-sdk'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` permission:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'pull'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python`,expandable:`true`,numberOfLines:`16`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`16`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` os`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` dodopayments `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` DodoPayments`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`client `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` DodoPayments(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` bearer_token`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`os.environ.get(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"DODO_PAYMENTS_API_KEY\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`),`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` environment`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"test_mode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`entitlement `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` client.entitlements.create(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` name`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Code Share Repository\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` integration_type`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"github\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` integration_config`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"target_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"acme/private-sdk\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"permission\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"pull\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Go`,expandable:`true`,numberOfLines:`12`,language:`go`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`go`,children:_jsxs(_components.code,{language:`go`,numberOfLines:`12`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// client is a *dodopayments.Client, for example from`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// dodopayments.NewClient(option.WithEnvironmentTestMode()); ctx is a context.Context.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Entitlements`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`New`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ctx`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`dodopayments`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`EntitlementNewParams`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`dodopayments`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`F`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Code Share Repository\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`),`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` IntegrationType`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`dodopayments`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`F`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`dodopayments`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`EntitlementIntegrationTypeGitHub`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`),`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` IntegrationConfig`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`dodopayments`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`F`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`dodopayments`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`IntegrationConfigUnionParam`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`](`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` dodopayments`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`IntegrationConfigGitHubConfigParam`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` TargetID`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`dodopayments`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`F`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"acme/private-sdk\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`),`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Permission`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`dodopayments`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`F`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`dodopayments`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`GitHubPermissionPull`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`),`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ),`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`})`})}),`\n`]})})})]}),`\n`,_jsx(Heading,{level:`2`,id:`webhooks`,children:`Webhooks`}),`\n`,_jsxs(_components.p,{children:[`تشمل `,_jsx(_components.a,{href:`/developer-resources/webhooks/intents/entitlement-grant`,children:`أحداث Webhook القياسية`}),` غطاء تدفق GitHub:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`يتم تشغيل `,_jsx(_components.code,{children:`entitlement_grant.created`}),` مع `,_jsx(_components.code,{children:`status: \"Pending\"`}),`. قد يحتوي `,_jsx(_components.code,{children:`oauth_url`}),` مسبقًا على عنوان URL لتفويض GitHub. إذا كانت قيمته `,_jsx(_components.code,{children:`null`}),`، فستتم تعبئته بمجرد أن يبدأ العميل تدفق القبول من Customer Portal.`]}),`\n`,_jsxs(_components.li,{children:[`يتم تشغيل `,_jsx(_components.code,{children:`entitlement_grant.delivered`}),` بمجرد إنشاء دعوة المتعاون.`]}),`\n`,_jsxs(_components.li,{children:[`يتم تشغيل `,_jsx(_components.code,{children:`entitlement_grant.revoked`}),` عند سحب الوصول. إذا أزلت تثبيت GitHub App، فإن Dodo Payments يلغي المنح المعلّقة والمسلّمة الخاصة بذلك التثبيت باستخدام `,_jsx(_components.code,{children:`revocation_reason: platform_external`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`يتم تشغيل `,_jsx(_components.code,{children:`entitlement_grant.failed`}),` مع `,_jsx(_components.code,{children:`error_code: \"GRANT_ACCESS_FAILED\"`}),` إذا تعذّر على Dodo Payments إضافة العميل إلى المستودع، مثلًا لأن GitHub App فقد الوصول إليه.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`استكشاف-الأخطاء-وإصلاحها`,children:`استكشاف الأخطاء وإصلاحها`}),`\n`,_jsxs(AccordionGroup,{children:[_jsx(Accordion,{title:`Repository picker is empty`,id:`repository-picker-is-empty`,children:_jsxs(_components.p,{children:[`يجب تثبيت Dodo Payments GitHub App على المؤسسة أو المستخدم الذي يملك المستودع. في نموذج الاستحقاق، انقر على `,_jsx(_components.strong,{children:`Disconnect`}),` في بطاقة GitHub، ثم انقر على `,_jsx(_components.strong,{children:`Connect GitHub`}),` لإعادة تثبيت التطبيق، وامنحه الوصول إلى المستودعات التي تريد تقييد الوصول إليها.`]})}),_jsx(Accordion,{title:`Grant fails with a permission error`,id:`grant-fails-with-a-permission-error`,children:_jsx(_components.p,{children:`لم يعد تثبيت GitHub App يملك صلاحية الوصول إلى المستودع، أو أُعيدت تسمية المستودع أو نُقل. امنح التطبيق الوصول إلى المستودع مرة أخرى، وستنجح إعادة المنح التالية.`})}),_jsx(Accordion,{title:`Customer hasn't accepted the invite`,id:`customer-hasnt-accepted-the-invite`,children:_jsxs(_components.p,{children:[`يقبل العملاء دعوة GitHub من إشعارات GitHub الخاصة بهم أو من الرابط الموجود في رسالة الدعوة الإلكترونية من GitHub. إلى أن يقبلوها، يكونون مدعوين لكن لا يمكنهم استنساخ المستودع. تظل المنحة في الحالة `,_jsx(_components.code,{children:`Delivered`}),` في Dodo Payments، لأن الدعوة هي ما يصدره Dodo Payments.`]})})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"استحقاق GitHub","sidebarTitle":"GitHub","description":"امنح العملاء وصولًا بصلاحية collaborator إلى مستودع GitHub خاص بمستوى الأذونات الذي تختاره، وألغِه تلقائيًا عند الإلغاء.","icon":"github","keywords":["Dodo Payments","GitHub","استحقاق","الوصول إلى المستودع","مستودع خاص"],"href":"/ar/features/entitlements/github"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"ما يتم تسليمه","slug":"ما-يتم-تسليمه","depth":2,"children":[]},{"title":"الاتصال بـ GitHub","slug":"الاتصال-بـ-github","depth":2,"children":[]},{"title":"مستويات الأذونات","slug":"مستويات-الأذونات","depth":2,"children":[]},{"title":"مسار العميل","slug":"مسار-العميل","depth":2,"children":[]},{"title":"الإعداد المطلوب","slug":"الإعداد-المطلوب","depth":2,"children":[]},{"title":"الإنشاء عبر API","slug":"الإنشاء-عبر-api","depth":2,"children":[]},{"title":"Webhooks","slug":"webhooks","depth":2,"children":[]},{"title":"استكشاف الأخطاء وإصلاحها","slug":"استكشاف-الأخطاء-وإصلاحها","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/dodopayments/0ee82a08f7b65bcb/seo.js","/_mintlify/custom/dodopayments/6f88c9bbee313616/assistant-loader.js"],"subdomain":"dodopayments","siteName":"Dodo Payments Documentation","title":"استحقاق GitHub - Dodo Payments Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/features/entitlements/github","matchLevel":1},"es":{"href":"/es/features/entitlements/github","matchLevel":1},"ar":{"href":"/ar/features/entitlements/github","matchLevel":0},"fr":{"href":"/fr/features/entitlements/github","matchLevel":1},"de":{"href":"/de/features/entitlements/github","matchLevel":1},"id":{"href":"/id/features/entitlements/github","matchLevel":1},"ja":{"href":"/ja/features/entitlements/github","matchLevel":1},"ko":{"href":"/ko/features/entitlements/github","matchLevel":1},"pt-BR":{"href":"/pt-BR/features/entitlements/github","matchLevel":1},"vi":{"href":"/vi/features/entitlements/github","matchLevel":1},"cn":{"href":"/cn/features/entitlements/github","matchLevel":1},"hi":{"href":"/hi/features/entitlements/github","matchLevel":1},"it":{"href":"/it/features/entitlements/github","matchLevel":1},"sv":{"href":"/sv/features/entitlements/github","matchLevel":1}}},"lastModified":"2026-09-28T05:12:08.419Z","gitLastModified":"2026-09-28T05:10:45.000Z","originalFileLocation":"ar/features/entitlements/github.mdx","locale":"ar"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"امنح العملاء وصولًا بصلاحية collaborator إلى مستودع GitHub خاص بمستوى الأذونات الذي تختاره، وألغِه تلقائيًا عند الإلغاء.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Dodo Payments Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/dodopayments/KuV_TozyHuGHOyyc/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/dodopayments/KuV_TozyHuGHOyyc/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/dodopayments/KuV_TozyHuGHOyyc/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/dodopayments/KuV_TozyHuGHOyyc/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/dodopayments/KuV_TozyHuGHOyyc/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/dodopayments/KuV_TozyHuGHOyyc/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/dodopayments/KuV_TozyHuGHOyyc/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/dodopayments/KuV_TozyHuGHOyyc/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/dodopayments/KuV_TozyHuGHOyyc/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"استحقاق GitHub - Dodo Payments Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"امنح العملاء وصولًا بصلاحية collaborator إلى مستودع GitHub خاص بمستوى الأذونات الذي تختاره، وألغِه تلقائيًا عند الإلغاء.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Dodo Payments Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.dodopayments.com/ar/features/entitlements/github\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://dodopayments.mintlify.app/_mintlify/api/og/v2?division=Entitlements\u0026amp;title=%D8%A7%D8%B3%D8%AA%D8%AD%D9%82%D8%A7%D9%82+GitHub\u0026amp;description=%D8%A7%D9%85%D9%86%D8%AD+%D8%A7%D9%84%D8%B9%D9%85%D9%84%D8%A7%D8%A1+%D9%88%D8%B5%D9%88%D9%84%D9%8B%D8%A7+%D8%A8%D8%B5%D9%84%D8%A7%D8%AD%D9%8A%D8%A9+collaborator+%D8%A5%D9%84%D9%89+%D9%85%D8%B3%D8%AA%D9%88%D8%AF%D8%B9+GitHub+%D8%AE%D8%A7%D8%B5+%D8%A8%D9%85%D8%B3%D8%AA%D9%88%D9%89+%D8%A7%D9%84%D8%A3%D8%B0%D9%88%D9%86%D8%A7%D8%AA+%D8%A7%D9%84%D8%B0%D9%8A+%D8%AA%D8%AE%D8%AA%D8%A7%D8%B1%D9%87%D8%8C+%D9%88%D8%A3%D9%84%D8%BA%D9%90%D9%87+%D8%AA%D9%84%D9%82%D8%A7%D8%A6%D9%8A%D9%8B%D8%A7+%D8%B9%D9%86%D8%AF+%D8%A7%D9%84%D8%A5%D9%84%D8%BA%D8%A7%D8%A1.\u0026amp;theme=7deaaa10b0ab3bbb6a23be51\u0026amp;signature=685e6a4116d9e85069162312607cc80a86a40472e68f37cb9e50622415927a88\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"استحقاق GitHub - Dodo Payments Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"امنح العملاء وصولًا بصلاحية collaborator إلى مستودع GitHub خاص بمستوى الأذونات الذي تختاره، وألغِه تلقائيًا عند الإلغاء.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://dodopayments.mintlify.app/_mintlify/api/og/v2?division=Entitlements\u0026amp;title=%D8%A7%D8%B3%D8%AA%D8%AD%D9%82%D8%A7%D9%82+GitHub\u0026amp;description=%D8%A7%D9%85%D9%86%D8%AD+%D8%A7%D9%84%D8%B9%D9%85%D9%84%D8%A7%D8%A1+%D9%88%D8%B5%D9%88%D9%84%D9%8B%D8%A7+%D8%A8%D8%B5%D9%84%D8%A7%D8%AD%D9%8A%D8%A9+collaborator+%D8%A5%D9%84%D9%89+%D9%85%D8%B3%D8%AA%D9%88%D8%AF%D8%B9+GitHub+%D8%AE%D8%A7%D8%B5+%D8%A8%D9%85%D8%B3%D8%AA%D9%88%D9%89+%D8%A7%D9%84%D8%A3%D8%B0%D9%88%D9%86%D8%A7%D8%AA+%D8%A7%D9%84%D8%B0%D9%8A+%D8%AA%D8%AE%D8%AA%D8%A7%D8%B1%D9%87%D8%8C+%D9%88%D8%A3%D9%84%D8%BA%D9%90%D9%87+%D8%AA%D9%84%D9%82%D8%A7%D8%A6%D9%8A%D9%8B%D8%A7+%D8%B9%D9%86%D8%AF+%D8%A7%D9%84%D8%A5%D9%84%D8%BA%D8%A7%D8%A1.\u0026amp;theme=7deaaa10b0ab3bbb6a23be51\u0026amp;signature=685e6a4116d9e85069162312607cc80a86a40472e68f37cb9e50622415927a88\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/dodopayments/KuV_TozyHuGHOyyc/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Dodo Payments Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#779812\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.dodopayments.com/ar/features/entitlements/github\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/ar/features/entitlements/github.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ar\" href=\"https://docs.dodopayments.com/ar/features/entitlements/github\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.dodopayments.com/features/entitlements/github\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"es\" href=\"https://docs.dodopayments.com/es/features/entitlements/github\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"fr\" href=\"https://docs.dodopayments.com/fr/features/entitlements/github\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"de\" href=\"https://docs.dodopayments.com/de/features/entitlements/github\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"id\" href=\"https://docs.dodopayments.com/id/features/entitlements/github\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ja\" href=\"https://docs.dodopayments.com/ja/features/entitlements/github\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ko\" href=\"https://docs.dodopayments.com/ko/features/entitlements/github\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"pt-BR\" href=\"https://docs.dodopayments.com/pt-BR/features/entitlements/github\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"vi\" href=\"https://docs.dodopayments.com/vi/features/entitlements/github\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://docs.dodopayments.com/cn/features/entitlements/github\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"hi\" href=\"https://docs.dodopayments.com/hi/features/entitlements/github\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"it\" href=\"https://docs.dodopayments.com/it/features/entitlements/github\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"sv\" href=\"https://docs.dodopayments.com/sv/features/entitlements/github\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.dodopayments.com/features/entitlements/github\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.dodopayments.com/#organization\",\"name\":\"Dodo Payments Documentation\",\"url\":\"https://docs.dodopayments.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/dodopayments/nM_mJfYkri-OpC5M/logo/light.svg?fit=max\u0026auto=format\u0026n=nM_mJfYkri-OpC5M\u0026q=85\u0026s=23f7a052f7ecb9d6570b7c95ee359a97\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.dodopayments.com#website\",\"name\":\"Dodo Payments Documentation\",\"url\":\"https://docs.dodopayments.com\",\"publisher\":{\"@id\":\"https://docs.dodopayments.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.dodopayments.com/ar/features/entitlements/github#webpage\",\"url\":\"https://docs.dodopayments.com/ar/features/entitlements/github\",\"name\":\"استحقاق GitHub\",\"description\":\"امنح العملاء وصولًا بصلاحية collaborator إلى مستودع GitHub خاص بمستوى الأذونات الذي تختاره، وألغِه تلقائيًا عند الإلغاء.\",\"dateModified\":\"2026-09-28T05:10:45.000Z\",\"isPartOf\":{\"@id\":\"https://docs.dodopayments.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.dodopayments.com/ar/features/entitlements/github#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.dodopayments.com/ar/features/entitlements/github#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Features\",\"item\":\"https://docs.dodopayments.com/ar/features/products\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Entitlements\",\"item\":\"https://docs.dodopayments.com/ar/features/entitlements/introduction\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"استحقاق GitHub\",\"item\":\"https://docs.dodopayments.com/ar/features/entitlements/github\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.dodopayments.com/ar/features/entitlements/github#article\",\"headline\":\"استحقاق GitHub\",\"name\":\"استحقاق GitHub\",\"description\":\"امنح العملاء وصولًا بصلاحية collaborator إلى مستودع GitHub خاص بمستوى الأذونات الذي تختاره، وألغِه تلقائيًا عند الإلغاء.\",\"url\":\"https://docs.dodopayments.com/ar/features/entitlements/github\",\"mainEntityOfPage\":{\"@id\":\"https://docs.dodopayments.com/ar/features/entitlements/github#webpage\"},\"dateModified\":\"2026-09-28T05:10:45.000Z\",\"keywords\":\"Dodo Payments, GitHub, استحقاق, الوصول إلى المستودع, مستودع خاص\",\"publisher\":{\"@id\":\"https://docs.dodopayments.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.dodopayments.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Dodo Payments Documentation\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Dodo Payments Documentation","nav":{"global":null,"languages":[{"language":"en","pages":[{"title":"en","href":"/features/entitlements/github"}]},{"language":"es","pages":[{"title":"es","href":"/es/features/entitlements/github"}]},{"language":"ar","tabs":[{"tab":"Docs","icon":"book","groups":[{"group":"Getting Started","pages":[{"title":"مرحبًا بك في Dodo Payments","sidebarTitle":"مقدمة","icon":"rocket","href":"/ar/introduction"},{"title":"البناء باستخدام وكلاء الترميز بالذكاء الاصطناعي","sidebarTitle":"وكلاء الترميز بالذكاء الاصطناعي","icon":"robot","href":"/ar/developer-resources/build-with-ai-coding-agents"},{"title":"الانتقال إلى مدفوعات دودي","icon":"arrow-right-arrow-left","href":"/ar/migrate-to-dodo"},{"title":"التحقق من الحساب","icon":"id-card","href":"/ar/miscellaneous/verification-process"}]},{"group":"Features","pages":[{"sidebarTitle":"المنتجات","title":"المنتجات","icon":"box","href":"/ar/features/products"},{"sidebarTitle":"مجموعات المنتجات","title":"مجموعات المنتجات","icon":"layer-group","href":"/ar/features/product-collections"},{"sidebarTitle":"المدفوعات لمرة واحدة","title":"المدفوعات لمرة واحدة","icon":"credit-card","href":"/ar/features/one-time-payment-products"},{"group":"Subscriptions","icon":"infinity","pages":[{"sidebarTitle":"Subscriptions","title":"Subscriptions","icon":"repeat","href":"/ar/features/subscription"},{"sidebarTitle":"الإضافات","title":"الإضافات للاشتراكات","icon":"puzzle","href":"/ar/features/addons"},{"title":"الاشتراكات عند الطلب","icon":"bolt","href":"/ar/developer-resources/ondemand-subscriptions"}]},{"group":"Usage Based Billing","icon":"arrow-trend-up","pages":[{"sidebarTitle":"مقدمة","title":"الفوترة حسب الاستخدام","icon":"box","href":"/ar/features/usage-based-billing/introduction"},{"sidebarTitle":"المقاييس","title":"المقاييس","icon":"sliders","href":"/ar/features/usage-based-billing/meters"},{"sidebarTitle":"إدخال الأحداث","title":"إدخال الأحداث","icon":"bolt","href":"/ar/features/usage-based-billing/event-ingestion"},{"group":"Ingestion Blueprints","icon":"copy","pages":[{"sidebarTitle":"مقدمة","title":"خطط الإدخال","icon":"box","href":"/ar/features/usage-based-billing/ingestion-blueprints"},{"title":"مخطط LLM","icon":"brain-circuit","href":"/ar/developer-resources/ingestion-blueprints/llm"},{"title":"API Gateway Blueprint","icon":"cloud","href":"/ar/developer-resources/ingestion-blueprints/api-gateway"},{"title":"خطة تخزين الكائنات","icon":"box-archive","href":"/ar/developer-resources/ingestion-blueprints/object-storage"},{"title":"مخطط البث","icon":"tower-broadcast","href":"/ar/developer-resources/ingestion-blueprints/stream"},{"title":"نموذج نطاق الوقت","icon":"clock","href":"/ar/developer-resources/ingestion-blueprints/time-range"}]}]},{"sidebarTitle":"Credit-Based Billing","title":"Credit-Based Billing","icon":"coins","tag":"NEW","href":"/ar/features/credit-based-billing"},{"sidebarTitle":"الفوترة المعتمدة على المقاعد","title":"الفوترة المعتمدة على المقاعد","icon":"users","href":"/ar/features/seat-based-billing"},{"sidebarTitle":"الفوترة الهجينة","title":"نماذج الفوترة الهجينة","icon":"layer-group","href":"/ar/features/hybrid-billing"},{"title":"Upsells \u0026 Downsells","icon":"arrow-up-right-dots","href":"/ar/features/upsells-and-downsells"},{"group":"Customers","icon":"user-group","pages":[{"title":"إدارة العملاء","icon":"user-group","href":"/ar/features/customers"},{"sidebarTitle":"بوابة العملاء","title":"بوابة العملاء","icon":"id-card","href":"/ar/features/customer-portal"},{"title":"محافظ العملاء","icon":"wallet","tag":"NEW","href":"/ar/features/customer-wallet"},{"sidebarTitle":"رسائل البريد الإلكتروني المرسلة","title":"سجلات رسائل البريد الإلكتروني للعملاء","icon":"envelope","tag":"NEW","href":"/ar/features/email-logs"},{"sidebarTitle":"قائمة حظر العملاء","title":"قائمة حظر العملاء","icon":"user-slash","tag":"NEW","href":"/ar/features/customer-blocklist"}]},{"sidebarTitle":"Discounts","title":"Discounts","icon":"percent","href":"/ar/features/discount-codes"},{"group":"Recovery","icon":"rotate","tag":"NEW","pages":[{"sidebarTitle":"نظرة عامة","title":"استرداد الإيرادات","icon":"rotate","href":"/ar/features/recovery/overview"},{"sidebarTitle":"استعادة عربات التسوق المتروكة","title":"استعادة عربات التسوق المتروكة","icon":"cart-shopping","href":"/ar/features/recovery/abandoned-cart-recovery"},{"sidebarTitle":"إدارة الاشتراكات","title":"إدارة الاشتراكات","icon":"repeat","href":"/ar/features/recovery/subscription-dunning"},{"sidebarTitle":"إعادة محاولات دفع الاشتراكات","title":"إعادة محاولات دفع الاشتراكات","icon":"arrow-rotate-right","href":"/ar/features/recovery/payment-retries"},{"sidebarTitle":"إعادة المحاولة اليدوية","title":"إعادة محاولة الدفع اليدوية","icon":"hand-pointer","tag":"NEW","href":"/ar/features/recovery/manual-retry"}]},{"group":"Transactions","icon":"credit-card","pages":[{"title":"المدفوعات","icon":"money-bill-transfer","href":"/ar/features/transactions/payments"},{"title":"الاستردادات","icon":"rotate-left","href":"/ar/features/transactions/refunds"},{"title":"النزاعات","icon":"circle-exclamation","href":"/ar/features/transactions/disputes"}]},{"group":"Entitlements","icon":"gift","tag":"NEW","pages":[{"title":"مقدمة","sidebarTitle":"مقدمة","icon":"box-archive","href":"/ar/features/entitlements/introduction"},{"title":"مفاتيح التراخيص","icon":"key","href":"/ar/features/license-keys"},{"title":"توصيل المنتجات الرقمية","sidebarTitle":"المنتجات الرقمية","icon":"download","href":"/ar/features/digital-product-delivery"},{"title":"Feature Flag Entitlement","sidebarTitle":"Feature Flags","icon":"flag","tag":"NEW","href":"/ar/features/entitlements/feature-flags"},{"title":"استحقاق Discord","sidebarTitle":"Discord","description":"أضف العملاء الذين يدفعون إلى خادم Discord الخاص بك مع دور اختياري، وأزلهم تلقائيًا عند انتهاء وصولهم.","icon":"discord","href":"/ar/features/entitlements/discord"},{"title":"استحقاق GitHub","sidebarTitle":"GitHub","icon":"github","href":"/ar/features/entitlements/github"},{"title":"استحقاق تيليجرام","sidebarTitle":"تيليجرام","description":"أضف العملاء الذين يدفعون إلى مجموعة أو قناة خاصة على Telegram عند اشتراكهم أو إجرائهم عملية شراء، وأزلهم تلقائيًا عند انتهاء صلاحية الوصول.","icon":"telegram","href":"/ar/features/entitlements/telegram"},{"title":"Framer Entitlement","sidebarTitle":"Framer","icon":"puzzle-piece","href":"/ar/features/entitlements/framer"},{"title":"استحقاق Notion","sidebarTitle":"Notion","icon":"book","href":"/ar/features/entitlements/notion"}]},{"group":"Payouts and Balances","icon":"wallet","pages":[{"title":"عملية المدفوعات","icon":"money-bill","href":"/ar/features/payouts/payout-structure"},{"title":"الأرصدة","icon":"file-invoice-dollar","href":"/ar/features/account-summary-payout-wallet"}]},{"group":"Account Management","icon":"user","pages":[{"sidebarTitle":"أرشفة نشاط تجاري","title":"أرشفة نشاط تجاري","icon":"box-archive","tag":"NEW","href":"/ar/features/archive-business"},{"title":"إعداد متعدد العلامات التجارية","icon":"building-columns","href":"/ar/features/multi-brands"},{"title":"إدارة الفواتير","icon":"file-invoice-dollar","href":"/ar/features/invoice-generation"},{"title":"أعضاء الفريق","icon":"user-gear","href":"/ar/features/team"},{"title":"تفضيلات التواصل","sidebarTitle":"تفضيلات التواصل","icon":"bell","tag":"NEW","href":"/ar/features/communication-preferences"},{"title":"حسابي","icon":"user-gear","href":"/ar/miscellaneous/accounts"}]},{"group":"Pricing","icon":"dollar-sign","pages":[{"sidebarTitle":"أسعار شاملة للضرائب","title":"أسعار شاملة للضرائب","icon":"file-invoice","href":"/ar/features/tax-inclusive-pricing"},{"sidebarTitle":"ادفع ما تريد","title":"أسعار ادفع ما تريد","icon":"dollar-sign","href":"/ar/features/pay-what-you-want"},{"title":"مدفوعات B2B","icon":"money-bills","href":"/ar/features/b2b-payments"},{"title":"التسعير المحلي","sidebarTitle":"التسعير المحلي","icon":"earth-americas","href":"/ar/features/localized-pricing"},{"sidebarTitle":"تعادل القوة الشرائية","title":"تعادل القوة الشرائية","tag":"NEW","icon":"money-bill-trend-up","href":"/ar/features/purchasing-power-parity"},{"sidebarTitle":"التسعير الجذّاب","title":"التسعير الجذّاب","tag":"NEW","icon":"tag","href":"/ar/features/charm-pricing"}]},{"sidebarTitle":"الدفع","title":"ميزات الدفع","icon":"cart-shopping","href":"/ar/features/checkout"},{"sidebarTitle":"التصميم","title":"تخصيص التصميم والثيم","icon":"palette","tag":"NEW","href":"/ar/features/design"},{"group":"Payment Methods","icon":"money-bill-wave","pages":[{"title":"Payment Methods","sidebarTitle":"Overview","icon":"layer-group","href":"/ar/features/payment-methods"},{"title":"بطاقات الائتمان والخصم","sidebarTitle":"البطاقات","icon":"credit-card","href":"/ar/features/payment-methods/cards"},{"title":"المحافظ الرقمية","sidebarTitle":"المحافظ الرقمية","icon":"wallet","href":"/ar/features/payment-methods/digital-wallets"},{"title":"اشتر الآن وادفع لاحقًا (BNPL)","sidebarTitle":"BNPL","icon":"calendar-days","href":"/ar/features/payment-methods/bnpl"},{"title":"ACH Direct Debit","sidebarTitle":"ACH Direct Debit","icon":"building-columns","href":"/ar/features/payment-methods/ach"},{"title":"طرق الدفع في الهند","sidebarTitle":"الهند","icon":"indian-rupee-sign","href":"/ar/features/payment-methods/india"},{"title":"طرق الدفع الأوروبية","sidebarTitle":"أوروبا","icon":"euro-sign","href":"/ar/features/payment-methods/europe"},{"title":"طرق الدفع في كوريا الجنوبية","sidebarTitle":"كوريا الجنوبية","icon":"won-sign","href":"/ar/features/payment-methods/south-korea"},{"title":"طرق الدفع في منطقة آسيا والمحيط الهادئ","sidebarTitle":"آسيا والمحيط الهادئ","icon":"earth-asia","href":"/ar/features/payment-methods/asia-pacific"},{"title":"Pix","sidebarTitle":"Pix","icon":"brazilian-real-sign","href":"/ar/features/payment-methods/pix"},{"title":"العملات المستقرة","sidebarTitle":"العملات المستقرة","icon":"dollar-sign","href":"/ar/features/payment-methods/stablecoins"},{"title":"WeChat Pay","sidebarTitle":"WeChat Pay","icon":"comment-dollar","href":"/ar/features/payment-methods/wechat"}]},{"title":"تحليلات الجهات الخارجية","sidebarTitle":"تحليلات الجهات الخارجية","icon":"chart-line","tag":"NEW","href":"/ar/features/analytics"},{"sidebarTitle":"العملة التكيفية","title":"العملة التكيفية","icon":"money-bill-transfer","href":"/ar/features/adaptive-currency"},{"group":"BYOP","icon":"shuffle","tag":"BETA","pages":[{"title":"استخدام المعالج الخاص بك (BYOP)","sidebarTitle":"نظرة عامة","tag":"BETA","icon":"boxes-stacked","href":"/ar/features/byop"},{"title":"Stripe - الاتصال و الوصول إلى واجهة برمجة التطبيقات لبيانات البطاقات الخام","sidebarTitle":"Stripe","icon":"stripe","href":"/ar/features/byop/stripe"},{"title":"Adyen - Connect \u0026 Raw Card API Access","sidebarTitle":"Adyen","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dodopayments/images/logos/adyen.svg","href":"/ar/features/byop/adyen"}]},{"title":"واجهة المتجر","icon":"store","href":"/ar/features/storefront"},{"title":"الشركاء","icon":"users-line","href":"/ar/features/affiliates"},{"title":"Moderation API","icon":"shield-check","tag":"NEW","href":"/ar/features/moderation"},{"title":"بيع السلع الرقمية على iOS","icon":"mobile","href":"/ar/features/appstore-digital-goods"},{"title":"تحليلات لوحة التحكم","sidebarTitle":"تحليلات لوحة التحكم","icon":"chart-line","href":"/ar/features/analytics-and-reporting"},{"title":"التقارير","sidebarTitle":"التقارير","icon":"file-invoice","href":"/ar/features/reports"}]},{"group":"Integrate","pages":[{"group":"SDKs","icon":"box-open","pages":[{"sidebarTitle":"نظرة عامة","title":"SDKs الرسمية","icon":"box","href":"/ar/developer-resources/dodo-payments-sdks"},{"title":"TypeScript","icon":"js","href":"/ar/developer-resources/sdks/typescript"},{"title":"بايثون","icon":"python","href":"/ar/developer-resources/sdks/python"},{"title":"اذهب","icon":"golang","href":"/ar/developer-resources/sdks/go"},{"title":"روبي","icon":"gem","href":"/ar/developer-resources/sdks/ruby"},{"title":"جافا","icon":"java","href":"/ar/developer-resources/sdks/java"},{"title":"Kotlin","icon":"k","href":"/ar/developer-resources/sdks/kotlin"},{"title":"PHP","icon":"php","href":"/ar/developer-resources/sdks/php"},{"title":"C#","icon":"c","href":"/ar/developer-resources/sdks/csharp"},{"title":"Rust","icon":"rust","href":"/ar/developer-resources/sdks/rust"}]},{"group":"Mobile Checkout SDKs","icon":"mobile","pages":[{"title":"Mobile Integration Guide","sidebarTitle":"Integration Guide","icon":"mobile","href":"/ar/developer-resources/mobile-integration"},{"title":"Android","sidebarTitle":"Android","tag":"NEW","icon":"android","href":"/ar/developer-resources/sdks/android"},{"title":"iOS","sidebarTitle":"iOS","tag":"NEW","icon":"apple","href":"/ar/developer-resources/sdks/ios"},{"title":"React Native","sidebarTitle":"React Native","tag":"NEW","icon":"react","href":"/ar/developer-resources/sdks/react-native"},{"title":"Flutter","sidebarTitle":"Flutter","tag":"NEW","icon":"layer-group","href":"/ar/developer-resources/sdks/flutter"}]},{"group":"Framework Adaptors","icon":"frame","pages":[{"sidebarTitle":"نظرة عامة","title":"نظرة عامة على موصلات الإطار","icon":"box","href":"/ar/developer-resources/framework-adaptors"},{"title":"موصل Next.js","icon":"code-merge","href":"/ar/developer-resources/nextjs-adaptor"},{"title":"محوّل Better Auth","icon":"code-merge","href":"/ar/developer-resources/better-auth-adaptor"},{"title":"مكون Convex","icon":"code-merge","href":"/ar/developer-resources/convex-component"},{"title":"TanStack Adaptor","icon":"code-merge","href":"/ar/developer-resources/tanstack-adaptor"},{"title":"محوّل Nuxt","icon":"code-merge","href":"/ar/developer-resources/nuxt-adaptor"},{"title":"موصل إكسبريس","icon":"code-merge","href":"/ar/developer-resources/express-adaptor"},{"title":"محول أسترو","icon":"code-merge","href":"/ar/developer-resources/astro-adaptor"},{"title":"موائم SvelteKit","icon":"code-merge","href":"/ar/developer-resources/sveltekit-adaptor"},{"title":"Hono Adaptor","icon":"code-merge","href":"/ar/developer-resources/hono-adaptor"},{"title":"محول ريمكس","icon":"code-merge","href":"/ar/developer-resources/remix-adaptor"},{"title":"محول Fastify","icon":"code-merge","href":"/ar/developer-resources/fastify-adaptor"},{"title":"Bun Adaptor","icon":"code-merge","href":"/ar/developer-resources/bun-adaptor"}]},{"group":"Webhooks","icon":"webhook","pages":[{"sidebarTitle":"نظرة عامة","title":"Webhooks","icon":"webhook","href":"/ar/developer-resources/webhooks"},{"title":"دليل Webhook Events","icon":"bell","href":"/ar/developer-resources/webhooks/intents/webhook-events-guide"},{"group":"Webhook Payloads","icon":"code","pages":[{"title":"الدفع","icon":"credit-card","href":"/ar/developer-resources/webhooks/intents/payment"},{"sidebarTitle":"الاشتراك","title":"أحداث ويب الاشتراك","icon":"repeat","href":"/ar/developer-resources/webhooks/intents/subscription"},{"title":"استرداد","icon":"rotate-left","href":"/ar/developer-resources/webhooks/intents/refund"},{"sidebarTitle":"النزاع","title":"Webhooks النزاعات","icon":"circle-exclamation","href":"/ar/developer-resources/webhooks/intents/dispute"},{"title":"مفتاح الترخيص","icon":"key","href":"/ar/developer-resources/webhooks/intents/license-key"},{"title":"منح الاستحقاق","icon":"gift","href":"/ar/developer-resources/webhooks/intents/entitlement-grant"},{"sidebarTitle":"الفوترة القائمة على الائتمان","title":"خطافات ويب الفوترة القائمة على الائتمان","icon":"coins","href":"/ar/developer-resources/webhooks/intents/credit"},{"title":"استرداد","icon":"rotate","href":"/ar/developer-resources/webhooks/intents/recovery"},{"sidebarTitle":"دفعة","title":"Webhooks الخاصة بالدفعات","icon":"money-bill-transfer","href":"/ar/developer-resources/webhooks/intents/payout"}]},{"group":"Deploy to Cloud","icon":"rocket","pages":[{"title":"وظائف Vercel","icon":"triangle","href":"/ar/developer-resources/webhooks/examples/vercel-example"},{"title":"Cloudflare Workers","icon":"cloud","href":"/ar/developer-resources/webhooks/examples/cloudflare-example"},{"title":"وظائف Supabase Edge","icon":"bolt","href":"/ar/developer-resources/webhooks/examples/supabase-example"},{"title":"وظائف Netlify","icon":"diamond","href":"/ar/developer-resources/webhooks/examples/netlify-example"}]}]},{"group":"Testing \u0026 Demo Tools","icon":"flask","pages":[{"title":"وضع الاختبار مقابل وضع التشغيل","icon":"toggle-on","href":"/ar/miscellaneous/test-mode-vs-live-mode"},{"title":"عملية الاختبار","icon":"flask","href":"/ar/miscellaneous/testing-process"},{"title":"منتج عرض أطلس","icon":"palette","href":"/ar/features/atlas-demo-website"}]},{"group":"Boilerplates","icon":"box-open","pages":[{"sidebarTitle":"Expo","title":"Expo Boilerplate","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dodopayments/images/logos/expo.svg","tag":"NEW","href":"/ar/developer-resources/expo-boilerplate"},{"sidebarTitle":"Supabase","title":"قالب Supabase الجاهز","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dodopayments/images/logos/supabase.svg","href":"/ar/developer-resources/supabase-boilerplate"},{"sidebarTitle":"إضافة Figma","title":"إضافة Figma","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dodopayments/images/logos/figma.svg","href":"/ar/integrations/figma-plugin"},{"sidebarTitle":"Next.js","title":"Next.js Minimal Boilerplate","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dodopayments/images/logos/nextjs.svg","href":"/ar/developer-resources/nextjs-boilerplate"},{"sidebarTitle":"أسترو","title":"نموذج أسترو الأساسي","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dodopayments/images/logos/astro.svg","href":"/ar/developer-resources/astro-boilerplate"},{"sidebarTitle":"FastAPI","title":"نموذج FastAPI","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dodopayments/images/logos/fastapi.svg","tag":"NEW","href":"/ar/developer-resources/fastapi-boilerplate"},{"sidebarTitle":"Go","title":"قالب Go الجاهز","icon":"golang","tag":"NEW","href":"/ar/developer-resources/go-boilerplate"}]},{"title":"Dodo CLI","icon":"terminal","tag":"NEW","href":"/ar/developer-resources/sdks/cli"},{"title":"Overlay Checkout","icon":"cart-shopping","href":"/ar/developer-resources/overlay-checkout"},{"title":"Inline Checkout","icon":"credit-card","href":"/ar/developer-resources/inline-checkout"},{"title":"SDK الفوترة","icon":"boxes-stacked","href":"/ar/developer-resources/billingsdk"},{"title":"Dodo Payments MCP Server","icon":"server","href":"/ar/developer-resources/mcp-server"},{"title":"مهارات الوكلاء","icon":"wand-magic-sparkles","href":"/ar/developer-resources/agent-skills"},{"sidebarTitle":"مزامنة قاعدة البيانات","title":"المزامنة مع قاعدة بياناتك","icon":"database","href":"/ar/developer-resources/dodo-sync"},{"sidebarTitle":"ترحيل الاشتراكات","title":"ترحيل الاشتراكات إلى مدفوعات دودي","icon":"file-import","href":"/ar/miscellaneous/subscription-migration"}]},{"group":"Merchant of Record","pages":[{"sidebarTitle":"ما هو MoR؟","title":"مقدمة","icon":"building-columns","href":"/ar/features/mor-introduction"},{"title":"MoR مقابل PG","icon":"scale-balanced","href":"/ar/features/mor-vs-pg"},{"title":"الدول المؤهلة لقبول التجار","icon":"globe","href":"/ar/miscellaneous/accepted-countries-and-territories"},{"title":"سياسة المراجعة والمراقبة","icon":"magnifying-glass","href":"/ar/miscellaneous/review-monitoring-policy"},{"sidebarTitle":"تجاوز رسوم App Store","title":"تجاوز رسوم App Store وPlay Store باستخدام Dodo Payments","icon":"shield-check","href":"/ar/features/bypassing-app-store-fees"}]},{"group":"Miscellaneous","pages":[{"group":"Support Channels","icon":"headset","pages":[{"title":"المساعدة والدعم","icon":"headset","href":"/ar/miscellaneous/help-support"},{"title":"طلب ميزة وخارطة الطريق","icon":"lightbulb","href":"/ar/features/feature-request"}]},{"title":"تطبيقات الجوال وسطح المكتب","icon":"mobile","href":"/ar/features/mobile-app"},{"title":"سياسة الإبلاغ عن الأمان","icon":"shield","href":"/ar/miscellaneous/security-policy"}]}]},{"tab":"Guides","icon":"compass","pages":[{"title":"Guides","href":"/ar/developer-resources/integration-guide"}]},{"tab":"API Reference","icon":"rectangle-code","pages":[{"title":"API Reference","href":"/ar/api-reference/introduction"}]},{"tab":"External Integrations","icon":"plug","pages":[{"title":"External Integrations","href":"/ar/integrations/introduction"}]},{"tab":"Changelog","icon":"calendar-days","pages":[{"title":"Changelog","href":"/ar/changelog/introduction"}]},{"tab":"Community Projects","icon":"users","pages":[{"title":"Community Projects","href":"/ar/community/overview"}]}]},{"language":"fr","pages":[{"title":"fr","href":"/fr/features/entitlements/github"}]},{"language":"de","pages":[{"title":"de","href":"/de/features/entitlements/github"}]},{"language":"id","pages":[{"title":"id","href":"/id/features/entitlements/github"}]},{"language":"ja","pages":[{"title":"ja","href":"/ja/features/entitlements/github"}]},{"language":"ko","pages":[{"title":"ko","href":"/ko/features/entitlements/github"}]},{"language":"pt-BR","pages":[{"title":"pt-BR","href":"/pt-BR/features/entitlements/github"}]},{"language":"vi","pages":[{"title":"vi","href":"/vi/features/entitlements/github"}]},{"language":"cn","pages":[{"title":"cn","href":"/cn/features/entitlements/github"}]},{"language":"hi","pages":[{"title":"hi","href":"/hi/features/entitlements/github"}]},{"language":"it","pages":[{"title":"it","href":"/it/features/entitlements/github"}]},{"language":"sv","pages":[{"title":"sv","href":"/sv/features/entitlements/github"}]}]},"basePath":"","title":"استحقاق GitHub - Dodo Payments Documentation","buildId":"dpl_G9nrg4qeJSZtah1Ziwbc2n6WkLch","deploymentId":"dpl_G9nrg4qeJSZtah1Ziwbc2n6WkLch","dynamics":["07c022d89b","a74be98ba7","a9bb46feb3"],"chunks":["Frame-Bpq2Z6jK.js","DynamicMarkdown-D5M2At0B.js","zoom-image-lightbox-DL4wrF0w.js","lightbox-handle-r17bVUz3.js","Markdown-D7QRHV3m.js","clsx-D1Z-ELXV.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-lvhuD9Du.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-CKfC4ywL.js"]}