{"id":2334,"date":"2021-10-19T12:13:31","date_gmt":"2021-10-19T08:43:31","guid":{"rendered":"https:\/\/help.payping.io\/fa\/nhoh-driaft-tokn-oauth2\/"},"modified":"2026-04-05T16:21:07","modified_gmt":"2026-04-05T12:51:07","slug":"nhoh-driaft-tokn-oauth2","status":"publish","type":"post","link":"https:\/\/payping.io\/help\/fa\/nhoh-driaft-tokn-oauth2\/","title":{"rendered":"\u0646\u062d\u0648\u0647 \u067e\u06cc\u0627\u062f\u0647 \u0633\u0627\u0632\u06cc \u0633\u0631\u0648\u06cc\u0633 \u067e\u0644\u062a\u0641\u0631\u0645\u06cc \u067e\u06cc\u200c\u067e\u06cc\u0646\u06af \u0628\u0631 \u0627\u0633\u0627\u0633 \u0627\u0633\u062a\u0627\u0646\u062f\u0627\u0631\u062f OAuth2"},"content":{"rendered":"\n<p class=\"has-luminous-vivid-orange-color has-text-color has-link-color wp-elements-99c6202b472b85c2d6a1c5629293d899\">\u0646\u06a9\u062a\u0647: \u0627\u06cc\u0646 \u0641\u0631\u0627\u06cc\u0646\u062f \u0645\u06cc\u200c\u0628\u0627\u06cc\u0633\u062a \u0633\u0645\u062a \u0633\u0631\u0648\u0631 \u0627\u0646\u062c\u0627\u0645 \u0628\u06af\u06cc\u0631\u062f. \u0628\u0646\u0627\u0628\u0631\u0627\u06cc\u0646 \u0646\u0628\u0627\u06cc\u062f \u062f\u0627\u062e\u0644 \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646\u200c\u0647\u0627\u06cc \u0645\u0648\u0628\u0627\u06cc\u0644 \u06cc\u0627 \u062f\u0633\u06a9\u062a\u0627\u067e \u0634\u0645\u0627 \u0641\u0631\u0627\u06cc\u0646\u062f \u062f\u0631\u06cc\u0627\u0641\u062a \u062a\u0648\u06a9\u0646 \u0635\u0648\u0631\u062a \u0628\u06af\u06cc\u0631\u062f.<\/p>\n\n\n\n<p>\u062f\u0631 \u0635\u0648\u0631\u062a\u06cc \u06a9\u0647 \u0633\u0631\u0648\u06cc\u0633 \u0634\u0645\u0627 \u0646\u06cc\u0627\u0632 \u062f\u0627\u0631\u062f \u0627\u0632 \u06a9\u0627\u0631\u0628\u0631\u0627\u0646 \u067e\u06cc\u200c\u067e\u06cc\u0646\u06af \u062f\u0633\u062a\u0631\u0633\u06cc \u0628\u06af\u06cc\u0631\u062f \u062a\u0627 \u0627\u0632 API \u0647\u0627\u06cc \u067e\u0631\u062f\u0627\u062e\u062a\u060c \u0641\u0627\u06a9\u062a\u0648\u0631 \u0648 &#8230; \u0627\u0632 \u062c\u0627\u0646\u0628 \u0622\u0646\u0647\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0646\u0645\u0627\u06cc\u062f\u060c \u0646\u06cc\u0627\u0632 \u062f\u0627\u0631\u06cc\u062f \u062a\u0627 \u067e\u0633 \u0627\u0632 \u0645\u0639\u0631\u0641\u06cc \u0648 \u0633\u0627\u062e\u062a \u06cc\u06a9 \u062a\u0648\u06a9\u0646 OAuth2.0\u060c \u0645\u0631\u0627\u062d\u0644 \u0632\u06cc\u0631 \u0631\u0627 \u0628\u0631\u0627\u06cc \u062f\u0631\u06cc\u0627\u0641\u062a \u062f\u0633\u062a\u0631\u0633\u06cc \u0627\u0632 \u06a9\u0627\u0631\u0628\u0631 \u0628\u0631\u0627\u06cc \u062f\u0631\u06cc\u0627\u0641\u062a \u062a\u0648\u06a9\u0646 \u0637\u06cc \u06a9\u0646\u06cc\u062f.<\/p>\n\n\n\n<p>\u062f\u0631 \u0635\u0648\u0631\u062a\u06cc \u06a9\u0647 \u0646\u06cc\u0627\u0632 \u0628\u0647 \u062b\u0628\u062a \u0646\u0627\u0645 \u06a9\u0627\u0631\u0628\u0631\u0627\u0646 \u062e\u0648\u062f \u062f\u0631 \u0633\u0627\u06cc\u062a \u067e\u06cc\u200c\u067e\u06cc\u0646\u06af \u062f\u0627\u0631\u06cc\u062f \u0627\u0628\u062a\u062f\u0627 <a href=\"https:\/\/payping.io\/help\/fa\/thbtnam-karbr-dr-piping-az-trik-obsrois\/\" data-type=\"link\" data-id=\"https:\/\/payping.io\/help\/fa\/thbtnam-karbr-dr-piping-az-trik-obsrois\/\">\u0627\u06cc\u0646 \u0631\u0627\u0647\u0646\u0645\u0627<\/a> \u0631\u0627 \u062f\u0646\u0628\u0627\u0644 \u06a9\u0646\u06cc\u062f \u0648 \u067e\u0633 \u0627\u0632 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0627\u0631\u0628\u0631 \u062f\u0631 \u067e\u06cc\u200c\u067e\u06cc\u0646\u06af \u0627\u06cc\u0646 \u0645\u0633\u06cc\u0631 \u0631\u0627 \u0637\u06cc \u06a9\u0646\u06cc\u062f.<\/p>\n\n\n\n<div style=\"height:43px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><strong>&nbsp;\u0630\u062e\u06cc\u0631\u0647 \u0634\u0646\u0627\u0633\u0647 \u0644\u0627\u06af \u067e\u06cc\u200c\u067e\u06cc\u0646\u06af \u0628\u0631\u0627\u06cc \u067e\u0634\u062a\u06cc\u0628\u0627\u0646\u06cc \u0628\u0647\u062a\u0631<\/strong><\/p>\n\n\n\n<p>\u062f\u0631 \u0647\u0631 \u062f\u0631\u062e\u0648\u0627\u0633\u062a REST \u06a9\u0647 \u0628\u0647 \u067e\u06cc\u200c\u067e\u06cc\u0646\u06af \u0627\u0631\u0633\u0627\u0644 \u0645\u06cc\u200c\u06a9\u0646\u06cc\u062f \u062f\u0631 \u067e\u0627\u0633\u062e \u0647\u0631 \u06a9\u062f\u0627\u0645 \u0647\u062f\u0631\u06cc \u0628\u0627 \u0646\u0627\u0645 X-PayPingRequest-ID \u0648\u062c\u0648\u062f \u062f\u0627\u0631\u062f \u06a9\u0647 \u062f\u0631 \u0635\u0648\u0631\u062a \u0630\u062e\u06cc\u0631\u0647 \u06a9\u0631\u062f\u0646 \u0627\u06cc\u0646 \u0634\u0646\u0627\u0633\u0647 \u062f\u0631 \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u062e\u0648\u062f \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u062f\u0631 \u0635\u0648\u0631\u062a \u0648\u062c\u0648\u062f \u0645\u0634\u06a9\u0644 \u0628\u0627 \u062f\u0627\u062f\u0646 \u0627\u06cc\u0646 \u0634\u0646\u0627\u0633\u0647 \u0628\u0647 \u067e\u0634\u062a\u06cc\u0628\u0627\u0646\u06cc \u0641\u0646\u06cc \u0628\u0647\u062a\u0631 \u06a9\u0645\u06a9 \u06a9\u0646\u06cc\u062f. \u0646\u0645\u0648\u0646\u0647 \u0622\u0646 \u062f\u0631 \u0639\u06a9\u0633 \u0632\u06cc\u0631 \u062f\u0631 POSTMAN \u0646\u0634\u0627\u0646 \u062f\u0627\u062f\u0647 \u0634\u062f\u0647 \u0627\u0633\u062a.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/payping.io\/help\/wp-content\/uploads\/2021\/09\/screen-shot-1398-11-27-at-1218_obvsic.png\" alt=\"\"\/><\/figure>\n\n\n\n<p><strong>&nbsp;\u062f\u0631\u06cc\u0627\u0641\u062a client-id \u0648 client-secret<\/strong><\/p>\n\n\n\n<p>\u0627\u0628\u062a\u062f\u0627 \u0628\u0647 [<a href=\"https:\/\/app.payping.ir\/connections\/oauth\" target=\"_blank\" rel=\"noreferrer noopener\">\u0628\u062e\u0634 \u062f\u0631\u06af\u0627\u0647 \u067e\u0631\u062f\u0627\u062e\u062a<\/a>] \u062f\u0631 \u067e\u0646\u0644 \u0634\u062e\u0635\u06cc \u062e\u0648\u062f \u0628\u0631\u0648\u06cc\u062f \u0648 \u0627\u0632 \u0645\u0646\u0648\u06cc \u0631\u0627\u0633\u062a \u00ab\u0633\u0631\u0648\u06cc\u0633\u200c\u0647\u0627\u06cc \u067e\u0644\u062a\u0641\u0631\u0645\u06cc\u00bb \u0631\u0627 \u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0646\u06cc\u062f. \u0628\u0631 \u0631\u0648\u06cc \u06af\u0632\u06cc\u0646\u0647 &#8220;\u0627\u0641\u0632\u0648\u062f\u0646&#8221; \u06a9\u0644\u06cc\u06a9 \u0646\u0645\u0627\u06cc\u06cc\u062f.<br>\u0628\u0631\u0627\u06cc \u062f\u0631\u06cc\u0627\u0641\u062a \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u06a9\u0644\u0627\u06cc\u0646\u062a \u0641\u0631\u0645 \u0631\u0627 \u062a\u06a9\u0645\u06cc\u0644 \u06a9\u0646\u06cc\u062f \u0628\u0647 \u0631\u0627\u0647\u0646\u0645\u0627\u06cc \u0647\u0631 \u0641\u06cc\u0644\u062f \u062a\u0648\u062c\u0647 \u06a9\u0646\u06cc\u062f \u0648 client-id \u0648 client-secret \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646\u200c\u062a\u0627\u0646 \u0631\u0627 \u062f\u0631\u06cc\u0627\u0641\u062a \u06a9\u0646\u06cc\u062f.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1870\" height=\"483\" src=\"https:\/\/payping.io\/help\/wp-content\/uploads\/2026\/04\/2026-04-05_16-19.png\" alt=\"\" class=\"wp-image-6119\" srcset=\"https:\/\/payping.io\/help\/wp-content\/uploads\/2026\/04\/2026-04-05_16-19.png 1870w, https:\/\/payping.io\/help\/wp-content\/uploads\/2026\/04\/2026-04-05_16-19-300x77.png 300w, https:\/\/payping.io\/help\/wp-content\/uploads\/2026\/04\/2026-04-05_16-19-1024x264.png 1024w, https:\/\/payping.io\/help\/wp-content\/uploads\/2026\/04\/2026-04-05_16-19-768x198.png 768w, https:\/\/payping.io\/help\/wp-content\/uploads\/2026\/04\/2026-04-05_16-19-1536x397.png 1536w\" sizes=\"(max-width: 1870px) 100vw, 1870px\" \/><\/figure>\n\n\n\n<p><strong>&nbsp;\u062f\u0631\u06cc\u0627\u0641\u062a \u062f\u0633\u062a\u0631\u0633\u06cc OAuth2<\/strong><\/p>\n\n\n\n<p>\u062f\u0631 \u067e\u06cc\u200c\u067e\u06cc\u0646\u06af \u0627\u0632 AuthorizationCode with PKCE \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 oAuth flow \u0627\u0635\u0644\u06cc \u0627\u062d\u0631\u0627\u0632 \u0647\u0648\u06cc\u062a \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u200c\u0634\u0648\u062f. \u0628\u0631\u0627\u06cc \u062f\u0631\u06cc\u0627\u0641\u062a \u062a\u0648\u06a9\u0646 \u0628\u0647 \u0627\u06cc\u0646 \u0631\u0648\u0634 \u0645\u0631\u0627\u062d\u0644 \u0632\u06cc\u0631 \u0628\u0647 \u062a\u0631\u062a\u06cc\u0628 \u0627\u0646\u062c\u0627\u0645 \u0645\u06cc\u200c\u0634\u0648\u062f:<\/p>\n\n\n\n<div style=\"height:33px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><strong>1. \u0633\u0627\u062e\u062a Code Verifier:<\/strong><\/p>\n\n\n\n<p>\u0627\u0628\u062a\u062f\u0627 \u0634\u0645\u0627 \u0646\u06cc\u0627\u0632 \u0628\u0647 \u062a\u0648\u0644\u06cc\u062f \u0648 \u0630\u062e\u06cc\u0631\u0647 \u06cc\u06a9 Code Verifier \u062f\u0627\u0631\u06cc\u062f. \u0628\u0631\u0627\u06cc \u0627\u06cc\u0646 \u0645\u0646\u0638\u0648\u0631 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0632 \u0642\u0637\u0639\u0647 \u06a9\u062f \u0632\u06cc\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f \u062d\u062f\u0627\u0642\u0644 \u06f3\u06f2 \u06a9\u0627\u0631\u0627\u06a9\u062a\u0631 \u0648 \u062d\u062f\u0627\u06a9\u062b\u0631 \u06f6\u06f4:<\/p>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code lang=\"javascript\" class=\"language-javascript line-numbers\">function base64URLEncode(str) {\n    return str.toString('base64')\n        .replace(\/\\+\/g, '-')\n        .replace(\/\\\/\/g, '_')\n        .replace(\/=\/g, '');\n}\n\nvar verifier = base64URLEncode(crypto.randomBytes(32));<\/code><\/pre>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"has-luminous-vivid-orange-color has-text-color\"><strong>CodeVerifier \u0631\u0627 \u0628\u0631\u0627\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u062f\u0631 \u0645\u0631\u0627\u062d\u0644 \u0628\u0639\u062f\u06cc \u0628\u0627\u06cc\u062f \u0628\u0631\u0627\u06cc \u0647\u0631 \u06a9\u0627\u0631\u0628\u0631 \u0630\u062e\u06cc\u0631\u0647 \u06a9\u0646\u06cc\u062f.<\/strong><\/p>\n\n\n\n<div style=\"height:39px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><strong>2. \u0633\u0627\u062e\u062a Code Challenge:<\/strong><\/p>\n\n\n\n<p>\u062f\u0631 \u0627\u06cc\u0646 \u0645\u0631\u062d\u0644\u0647 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 Code Verifier \u06a9\u0647 \u062f\u0631 \u0645\u0631\u062d\u0644\u0647 \u0642\u0628\u0644 \u0633\u0627\u062e\u062a\u0647 \u0634\u062f\u0647\u060c \u06cc\u06a9 Code Challenge \u0633\u0627\u062e\u062a\u0647 \u06a9\u0647 \u0627\u0632 \u0622\u0646 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u067e\u0627\u0631\u0627\u0645\u062a\u0631 \u0627\u0631\u0633\u0627\u0644\u06cc \u062f\u0631 \u062f\u0631\u062e\u0648\u0627\u0633\u062a \u0627\u062d\u0631\u0627\u0632 \u0647\u0648\u06cc\u062a \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u200c\u0634\u0648\u062f.<\/p>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code lang=\"javascript\" class=\"language-javascript line-numbers\">function sha256(buffer) {\n    return crypto.createHash('sha256').update(buffer).digest();\n}\nvar challenge = base64URLEncode(sha256(verifier));<\/code><\/pre>\n\n\n\n<p>\u0628\u0631\u0627\u06cc \u0645\u0634\u0627\u0647\u062f\u0647 \u0627\u06cc\u0646 \u0631\u0648\u0646\u062f \u062f\u0631 \u0632\u0628\u0627\u0646\u200c\u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641 \u0645\u06cc \u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0628\u0647 \u0645\u062e\u0632\u0646 \u0627\u06cc\u0646 \u0628\u062e\u0634 \u062f\u0631 <a href=\"https:\/\/github.com\/payping\/sample-oauth-code\" target=\"_blank\" rel=\"noopener\">\u06af\u06cc\u062a \u0647\u0627\u0628<\/a>&nbsp;\u0645\u0631\u0627\u062c\u0639\u0647 \u06a9\u0646\u06cc\u062f.<\/p>\n\n\n\n<div style=\"height:42px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><strong>3. \u062f\u0631\u06cc\u0627\u0641\u062a Authorization Code:<\/strong><\/p>\n\n\n\n<p>\u062f\u0631 \u0642\u062f\u0645 \u0627\u0648\u0644 \u0628\u0631\u0627\u06cc \u0634\u0631\u0648\u0639 \u0631\u0648\u0646\u062f \u062f\u0631\u06cc\u0627\u0641\u062a Authorization code\u060c \u0628\u0627\u06cc\u062f \u06a9\u0627\u0631\u0628\u0631 \u0631\u0627 \u0631\u0648\u06cc \u0645\u0631\u0648\u0631\u06af\u0631 \u0628\u0647 \u0627\u06cc\u0646 \u0622\u062f\u0631\u0633 \u0647\u062f\u0627\u06cc\u062a \u06a9\u0646\u06cc\u062f.<\/p>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code lang=\"bash\" class=\"language-bash line-numbers\">https:\/\/oauth.payping.ir\/connect\/authorize?\nscope=SCOPES&amp;\nresponse_type=code&amp;\nclient_id=YOUR_CLIENT_ID&amp;\ncode_challenge=CODE_CHALLENGE&amp;\ncode_challenge_method=S256&amp;\nredirect_uri=https: \/\/YOUR_CALLBACK_URL&amp;\nstate=YOUR_CUTOM_VALUE<\/code><\/pre>\n\n\n\n<div style=\"height:44px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><strong>\u062a\u0648\u0636\u06cc\u062d \u0645\u0642\u0627\u062f\u06cc\u0631 \u0627\u0631\u0633\u0627\u0644\u06cc:<\/strong><\/p>\n\n\n\n<p>* `<strong>scope<\/strong>` : \u062d\u0648\u0632\u0647\u200c\u0647\u0627\u06cc \u062f\u0633\u062a\u0631\u0633\u06cc \u06a9\u0647 \u0634\u0645\u0627 \u0628\u0631\u0627\u06cc \u0627\u062d\u0631\u0627\u0632 \u0647\u0648\u06cc\u062a \u0628\u0647 \u0622\u0646 \u0646\u06cc\u0627\u0632 \u062f\u0627\u0631\u06cc\u062f. \u0634\u0645\u0627 \u062f\u0631 \u062f\u0631\u062e\u0648\u0627\u0633\u062a \u062e\u0648\u062f \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0632 \u062d\u0648\u0632\u0647\u200c\u0647\u0627\u06cc \u062a\u0648\u0636\u06cc\u062d \u062f\u0627\u062f\u0647 \u0634\u062f\u0647 \u062f\u0631 \u0628\u062e\u0634 \u0628\u0639\u062f\u06cc \u0628\u0646\u0627 \u0628\u0647 \u0646\u06cc\u0627\u0632 \u062e\u0648\u062f \u0627\u0631\u0633\u0627\u0644 \u06a9\u0646\u06cc\u062f. \u0628\u0631\u0627\u06cc \u0627\u0631\u0633\u0627\u0644 \u0686\u0646\u062f scope \u0627\u0632 \u0641\u0627\u0635\u0644\u0647 \u0628\u0639\u0646\u0648\u0627\u0646 \u062c\u062f\u0627 \u06a9\u0646\u0646\u062f\u0647 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u0634\u0648\u062f.<br>* `<strong>response_type<\/strong>` : \u0627\u06cc\u0646 \u0645\u0642\u062f\u0627\u0631 \u0646\u0645\u0627\u06cc\u0634\u200c\u062f\u0647\u0646\u062f\u0647 \u0646\u0648\u0639 \u067e\u0627\u0633\u062e\u06af\u0648\u06cc\u06cc \u0628\u0647 \u062f\u0631\u062e\u0648\u0627\u0633\u062a \u0634\u0645\u0627 \u0645\u06cc\u200c\u0628\u0627\u0634\u062f. \u062f\u0631 \u0627\u06cc\u0646\u062c\u0627 \u0628\u0646\u0627 \u0628\u0647 \u062f\u0631\u062e\u0648\u0627\u0633\u062a \u0634\u0645\u0627 \u0647\u0645\u06cc\u0634\u0647 \u0628\u0627\u06cc\u062f \u0645\u0642\u062f\u0627\u0631 code \u0628\u06af\u06cc\u0631\u062f.<br>* `<strong>client_id<\/strong>` : \u0645\u0642\u062f\u0627\u0631 \u06a9\u0644\u0627\u06cc\u0646\u062a\u200c\u0622\u06cc\u062f\u06cc \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646 \u0634\u0645\u0627 \u0645\u06cc\u200c\u0628\u0627\u0634\u062f. \u0628\u0631\u0627\u06cc \u067e\u06cc\u062f\u0627 \u06a9\u0631\u062f\u0646 \u0627\u06cc\u0646 \u0645\u0642\u062f\u0627\u0631 \u0628\u0647 \u06a9\u0646\u0633\u0648\u0644 \u062a\u0648\u0633\u0639\u0647\u200c\u062f\u0647\u0646\u062f\u06af\u0627\u0646 \u0645\u0631\u0627\u062c\u0639\u0647 \u06a9\u0646\u06cc\u062f.<br>* `<strong>redirect_uri<\/strong>` : \u0622\u062f\u0631\u0633\u06cc \u06a9\u0647 \u067e\u0633 \u0627\u0632 \u0627\u062d\u0631\u0627\u0632 \u0647\u0648\u06cc\u062a\u060c \u0645\u0631\u0648\u0631\u06af\u0631 \u06a9\u0627\u0631\u0628\u0631 \u0628\u0647 \u0622\u0646 \u0647\u062f\u0627\u06cc\u062a \u0645\u06cc\u200c\u0634\u0648\u062f. \u0645\u0642\u062f\u0627\u0631 Authorization code \u062f\u0631 Url \u062f\u0627\u062e\u0644 \u067e\u0627\u0631\u0627\u0645\u062a\u0631 code \u0645\u0648\u062c\u0648\u062f \u0645\u06cc\u200c\u0628\u0627\u0634\u062f. \u0647\u0645\u06cc\u0646\u0637\u0648\u0631 \u0628\u0627\u06cc\u062f \u062f\u0631 \u0646\u0638\u0631 \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f \u06a9\u0647 \u0627\u06cc\u0646 \u0622\u062f\u0631\u0633 \u0628\u0627\u06cc\u062f \u062f\u0631 \u06a9\u0646\u0633\u0648\u0644 \u062a\u0648\u0633\u0639\u0647\u200c\u062f\u0647\u0646\u062f\u06af\u0627\u0646 \u0647\u0646\u06af\u0627\u0645 \u062b\u0628\u062a \u0627\u06cc\u0646 \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646 \u0645\u0634\u062e\u0635 \u0634\u062f\u0647 \u0628\u0627\u0634\u062f.<br>* `<strong>code_challenge<\/strong>` : \u0645\u0642\u062f\u0627\u0631\u06cc \u06a9\u0647 \u062f\u0631 \u06af\u0627\u0645 \u0642\u0628\u0644\u06cc \u0627\u0632 Code Verifier \u0628\u062f\u0633\u062a \u0622\u0645\u062f\u0647.<br>* `<strong>code_challenge_method<\/strong>` : \u0645\u062a\u062f\u06cc \u06a9\u0647 \u0628\u0627 \u0622\u0646 challenge \u0633\u0627\u062e\u062a\u0647 \u0645\u06cc\u200c\u0634\u0648\u062f \u06a9\u0647 \u062f\u0631 \u0627\u06cc\u0646\u062c\u0627 \u0628\u0627\u06cc\u062f \u0627\u0632 S256 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f.<br>* `<strong>state<\/strong>` : \u067e\u0627\u0631\u0627\u0645\u062a\u0631 \u062f\u0644\u062e\u0648\u0627\u0647 \u06a9\u0647 \u062f\u0631 \u0635\u0648\u0631\u062a \u067e\u0631 \u0634\u062f\u0646 \u0647\u0645\u06cc\u0646 \u0645\u0642\u062f\u0627\u0631 \u062f\u0631 \u0635\u0641\u062d\u0647 callback \u0628\u0627 querystring \u0628\u0647 \u0646\u0627\u0645 state \u0628\u0647 \u0634\u0645\u0627 \u0628\u0627\u0632\u06af\u0634\u062a \u062f\u0627\u062f\u0645\u06cc\u200c\u0634\u0648\u062f. \u0628\u0637\u0648\u0631 \u0645\u062b\u0627\u0644 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u06cc\u0646 \u0645\u0642\u062f\u0627\u0631 \u0631\u0627 \u0628\u0627 \u0646\u0627\u0645 \u06a9\u0627\u0631\u0628\u0631\u06cc \u06a9\u0627\u0631\u0628\u0631 \u062f\u0631 \u0633\u0631\u0648\u06cc\u0633 \u062e\u0648\u062f \u067e\u0631 \u06a9\u0646\u06cc\u062f \u062a\u0627 \u0647\u0646\u06af\u0627\u0645 \u0628\u0627\u0632\u06af\u0634\u062a \u0628\u0647 \u0633\u0627\u06cc\u062a \u0634\u0645\u0627 \u0628\u062a\u0648\u0627\u0646\u06cc\u062f \u062a\u0634\u062e\u06cc\u0635 \u062f\u0647\u06cc\u062f \u062a\u0648\u06a9\u0646 \u062f\u0631\u06cc\u0627\u0641\u062a\u06cc \u0628\u0631\u0627\u06cc \u06a9\u062f\u0627\u0645 \u06a9\u0627\u0631\u0628\u0631 \u0634\u0645\u0627\u0633\u062a.<\/p>\n\n\n\n<div style=\"height:32px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"has-luminous-vivid-orange-color has-text-color\"><strong>\u0645\u0642\u062f\u0627\u0631 `redirect_uri` \u0628\u0627\u06cc\u062f \u0647\u0645\u06cc\u0634\u0647 \u0628\u0647 \u0634\u06a9\u0644 Decode \u0634\u062f\u0647 \u0628\u0627\u0634\u062f.<\/strong><\/p>\n\n\n\n<div style=\"height:31px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><strong>scope \u0647\u0627:<\/strong><\/p>\n\n\n\n<p>* `<strong>openid<\/strong>` &#8211; \u0627\u062c\u0628\u0627\u0631\u06cc \u0628\u0631\u0627\u06cc \u062a\u0645\u0627\u0645 \u062f\u0631\u062e\u0648\u0627\u0633\u062a\u200c\u0647\u0627<br>* `<strong>profile<\/strong>` &#8211; \u062f\u0633\u062a\u0631\u0633\u06cc \u0645\u0631\u062a\u0628\u0637 \u0628\u0627 \u062a\u0645\u0627\u0645 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u06cc\u06a9 \u06a9\u0627\u0631\u0628\u0631<br>* `<strong>email<\/strong>` &#8211; \u062f\u0633\u062a\u0631\u0633\u06cc \u0628\u0647 \u0645\u0634\u0627\u0647\u062f\u0647 \u0627\u06cc\u0645\u06cc\u0644<br>* `<strong>nationalcode<\/strong>` &#8211; \u062f\u0633\u062a\u0631\u0633\u06cc \u0628\u0647 \u0645\u0634\u0627\u0647\u062f\u0647 \u06a9\u062f\u0645\u0644\u06cc \u06a9\u0627\u0631\u0628\u0631<br>* `<strong>birthday<\/strong>` &#8211; \u062f\u0633\u062a\u0631\u0633\u06cc \u0628\u0647 \u0645\u0634\u0627\u0647\u062f\u0647 \u062a\u0627\u0631\u06cc\u062e \u062a\u0648\u0644\u062f \u06a9\u0627\u0631\u0628\u0631<br>* `<strong>shaba<\/strong>` &#8211; \u062f\u0633\u062a\u0631\u0633\u06cc \u0628\u0647 \u0645\u0634\u0627\u0647\u062f\u0647 \u0634\u0628\u0627\u06cc \u0628\u0627\u0646\u06a9\u06cc \u06a9\u0627\u0631\u0628\u0631<br>* `<strong>phone<\/strong>` &#8211; \u062f\u0633\u062a\u0631\u0633\u06cc \u0628\u0647 \u0645\u0634\u0627\u0647\u062f\u0647 \u0634\u0645\u0627\u0631\u0647 \u062a\u0645\u0627\u0633 \u06a9\u0627\u0631\u0628\u0631<br>* `<strong>pay:read<\/strong>` &#8211; \u062f\u0633\u062a\u0631\u0633\u06cc \u0641\u0642\u0637 \u062e\u0648\u0627\u0646\u062f\u0646\u06cc \u062f\u0631 \u0633\u0631\u0648\u06cc\u0633 \u067e\u0631\u062f\u0627\u062e\u062a<br>* `<strong>pay:write<\/strong>` &#8211; \u062f\u0633\u062a\u0631\u0633\u06cc \u0646\u0648\u0634\u062a\u0646 \u0648 \u062a\u063a\u06cc\u06cc\u0631\u0627\u062a \u062f\u0631 \u0633\u0631\u0648\u06cc\u0633 \u067e\u0631\u062f\u0627\u062e\u062a<br>* `<strong>product:read<\/strong>` &#8211; \u062f\u0633\u062a\u0631\u0633\u06cc \u0641\u0642\u0637 \u062e\u0648\u0627\u0646\u062f\u0646\u06cc \u062f\u0631 \u0633\u0631\u0648\u06cc\u0633 \u0622\u06cc\u062a\u0645\u200c\u0647\u0627\u06cc \u0645\u0627\u0644\u06cc<br>* `<strong>product:write<\/strong>` &#8211; \u062f\u0633\u062a\u0631\u0633\u06cc \u0646\u0648\u0634\u062a\u0646 \u0648 \u062a\u063a\u06cc\u06cc\u0631\u0627\u062a \u062f\u0631 \u0633\u0631\u0648\u06cc\u0633 \u0622\u06cc\u062a\u0645\u200c\u0647\u0627\u06cc \u0645\u0627\u0644\u06cc<br>* `<strong>invoice:read<\/strong>` &#8211; \u062f\u0633\u062a\u0631\u0633\u06cc \u0641\u0642\u0637 \u062e\u0648\u0627\u0646\u062f\u0646\u06cc \u0628\u0647 \u0633\u0631\u0648\u06cc\u0633 \u0641\u0627\u06a9\u062a\u0648\u0631 \u0647\u0627<br>* `<strong>invoice:write<\/strong>` &#8211; \u062f\u0633\u062a\u0631\u0633\u06cc \u0646\u0648\u0634\u062a\u0646 \u0648 \u062a\u063a\u06cc\u06cc\u0631\u0627\u062a \u062f\u0631 \u0633\u0631\u0648\u06cc\u0633 \u0641\u0627\u06a9\u062a\u0648\u0631 \u0647\u0627<br>* `<strong>upload:write<\/strong>` &#8211; \u062f\u0633\u062a\u0631\u0633\u06cc \u0645\u0631\u062a\u0628\u0637 \u0628\u0627 \u0633\u0631\u0648\u06cc\u0633 \u0628\u0627\u0631\u06af\u0630\u0627\u0631\u06cc \u0641\u0627\u06cc\u0644\u200c\u0647\u0627<\/p>\n\n\n\n<div style=\"height:44px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><strong>4. \u062f\u0631\u06cc\u0627\u0641\u062a \u0627\u062c\u0627\u0632\u0647 \u062f\u0633\u062a\u0631\u0633\u06cc \u0627\u0632 \u06a9\u0627\u0631\u0628\u0631:<\/strong><\/p>\n\n\n\n<p>\u067e\u0633 \u0627\u0632 \u0627\u06cc\u0646\u06a9\u0647 \u06a9\u0627\u0631\u0628\u0631 \u0644\u0627\u06af\u06cc\u0646 \u0645\u06cc\u200c\u06a9\u0646\u062f \u0628\u0647 \u06a9\u0627\u0631\u0628\u0631 \u0633\u0637\u062d \u062f\u0633\u062a\u0631\u0633\u06cc\u200c\u0647\u0627\u06cc\u06cc \u06a9\u0647 \u0644\u0627\u0632\u0645 \u062f\u0627\u0631\u062f \u0646\u0645\u0627\u06cc\u0634 \u062f\u0627\u062f\u0647 \u0645\u06cc\u200c\u0634\u0648\u062f \u0648 \u067e\u0633 \u0627\u0632 \u062a\u0627\u06cc\u06cc\u062f \u0628\u0647 \u0622\u062f\u0631\u0633\u06cc \u06a9\u0647 \u0634\u0645\u0627 \u0628\u0639\u0646\u0648\u0627\u0646 returnUrl \u062f\u0627\u062f\u0647\u200c\u0627\u06cc\u062f \u0628\u0647 \u0647\u0645\u0631\u0627\u0647 code \u0648 \u0627\u0644\u0628\u062a\u0647 \u0645\u0642\u062f\u0627\u0631 state \u0627\u06af\u0631 \u062f\u0631 \u0645\u0631\u062d\u0644\u0647 \u0642\u0628\u0644\u06cc \u067e\u0631 \u06a9\u0631\u062f\u0647 \u0628\u0627\u0634\u06cc\u062f \u0647\u062f\u0627\u06cc\u062a \u0645\u06cc\u200c\u0634\u0648\u062f.<\/p>\n\n\n\n<div style=\"height:29px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"has-vivid-green-cyan-color has-text-color\"><strong>\u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 state \u0634\u0645\u0627 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u062a\u0634\u062e\u06cc\u0635 \u062f\u0647\u06cc\u062f \u0627\u06cc\u0646 code \u0645\u062a\u0639\u0644\u0642 \u0628\u0647 \u06a9\u062f\u0627\u0645 \u06a9\u0627\u0631\u0628\u0631 \u062f\u0631 \u0633\u0631\u0648\u06cc\u0633 \u062e\u0648\u062f\u062a\u0627\u0646 \u0645\u06cc\u200c\u0628\u0627\u0634\u062f. \u0645\u0642\u062f\u0627\u0631 \u0622\u0646 \u0631\u0627 \u0628\u0627 \u06a9\u0644\u06cc\u062f\u06cc \u06cc\u06a9\u062a\u0627 \u06a9\u0647 \u062f\u0631 \u0633\u0645\u062a \u062e\u0648\u062f\u062a\u0627\u0646 \u062a\u0639\u0631\u06cc\u0641 \u0634\u062f\u0647 \u062f\u0631 \u0645\u0631\u062d\u0644\u0647 \u0642\u0628\u0644 \u067e\u0631 \u0646\u0645\u0627\u06cc\u06cc\u062f.<\/strong><\/p>\n\n\n\n<div style=\"height:32px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/payping.io\/help\/wp-content\/uploads\/2021\/09\/photo2021-09-1209-25-53_1ryxepi.jpg\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/payping.io\/help\/wp-content\/uploads\/2021\/09\/web-1920-1-1_1qfklog.png\" alt=\"\"\/><\/figure>\n\n\n\n<p><strong>5. \u062f\u0631\u06cc\u0627\u0641\u062a Access Token<\/strong><\/p>\n\n\n\n<p>\u062f\u0631 \u0627\u06cc\u0646 \u0645\u0631\u062d\u0644\u0647 \u0645\u06cc\u200c\u0628\u0627\u06cc\u0633\u062a \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 code \u06a9\u0647 \u062f\u0631 \u0645\u0631\u062d\u0644\u0647 \u0642\u0628\u0644 \u062f\u0631\u06cc\u0627\u0641\u062a \u06a9\u0631\u062f\u06cc\u062f\u060c \u062f\u0631\u062e\u0648\u0627\u0633\u062a \u062c\u062f\u06cc\u062f\u06cc \u0628\u0631\u0627\u06cc \u062f\u0631\u06cc\u0627\u0641\u062a Access token \u0627\u0631\u0633\u0627\u0644 \u06a9\u0646\u06cc\u062f. \u0634\u0645\u0627 \u0628\u0627 \u0627\u06cc\u0646 Access token \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0632 \u0648\u0628\u200c\u0633\u0631\u0648\u06cc\u0633\u200c\u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641 \u067e\u06cc\u200c\u067e\u06cc\u0646\u06af \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f.<\/p>\n\n\n\n<div style=\"height:26px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>\u0628\u0647 \u0622\u062f\u0631\u0633 \u0632\u06cc\u0631 \u06cc\u06a9 \u062f\u0631\u062e\u0648\u0627\u0633\u062a POST \u0627\u0632 \u0646\u0648\u0639 form-data \u0628\u0627 \u067e\u0627\u0631\u0627\u0645\u062a\u0631\u0647\u0627\u06cc \u0646\u0645\u0627\u06cc\u0634 \u062f\u0627\u062f\u0647\u200c \u0634\u062f\u0647 \u0632\u062f\u0647 \u0645\u06cc\u200c\u0634\u0648\u062f:<\/p>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>\u0628\u0627\u06cc\u062f \u062d\u062a\u0645\u0627 \u062f\u0627\u062e\u0644 header \u062f\u0631\u062e\u0648\u0627\u0633\u062a \u0645\u0642\u062f\u0627\u0631 `Content-Type` \u0628\u0631\u0627\u0628\u0631 \u0628\u0627 `application\/x-www-form-urlencoded` \u0628\u0627\u0634\u062f.<\/p>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code lang=\"bash\" class=\"language-bash line-numbers\">curl --location --request POST 'https:\/\/oauth.payping.ir\/connect\/token\n--form 'grant_type=authorization_code'\n--form 'client_id=YOUR_CLIENT_ID'\n--form 'client_secret=YOUR_CLIENT_SECRET'\n--form 'code_verifier=YOUR_GENERATED_CODE_VERIFIER'\n--form 'code=YOUR_AUTHORIZATION_CODE'\n--form 'redirect_uri=YOUR_REDIRECT_URL'<\/code><\/pre>\n\n\n\n<div style=\"height:31px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><strong>\u067e\u0627\u0631\u0627\u0645\u062a\u0631\u0647\u0627\u06cc \u0627\u0631\u0633\u0627\u0644\u06cc:<\/strong><\/p>\n\n\n\n<p>* `<strong>grant_type<\/strong>` : \u0627\u06cc\u0646 \u0645\u0642\u062f\u0627\u0631 \u0628\u0627\u06cc\u062f \u0628\u0631\u0627\u0628\u0631 \u0628\u0627 \u0648\u0627\u0698\u0647 authorization_code \u0628\u0627\u0634\u062f. (<strong>grant_type<\/strong>=authorization_code)<br>* `<strong>client_id<\/strong>` : \u0645\u0642\u062f\u0627\u0631 Client Id \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646 \u0634\u0645\u0627 \u06a9\u0647 \u062f\u0631 \u06a9\u0646\u0633\u0648\u0644 \u062a\u0648\u0633\u0639\u0647\u200c\u062f\u0647\u0646\u062f\u06af\u0627\u0646 \u062f\u0631\u06cc\u0627\u0641\u062a \u06a9\u0631\u062f\u06cc\u062f.<br>* `<strong>client_secret<\/strong>` : \u0645\u0642\u062f\u0627\u0631 Client secret \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646 \u0645\u0627 \u06a9\u0647 \u0627\u0632 \u06a9\u0646\u0633\u0648\u0644 \u062a\u0648\u0633\u0639\u0647\u200c\u062f\u0647\u0646\u062f\u06af\u0627\u0646 \u062f\u0631\u06cc\u0627\u0641\u062a \u06a9\u0631\u062f\u0647\u200c\u0627\u06cc\u062f.<br>* `<strong>code<\/strong>` : \u0645\u0642\u062f\u0627\u0631 Authorization code \u06a9\u0647 \u062f\u0631 \u06af\u0627\u0645 \u0642\u0628\u0644\u06cc \u062f\u0631\u06cc\u0627\u0641\u062a \u06a9\u0631\u062f\u06cc\u062f.<br>* `<strong>code_verifier<\/strong> ` : \u0645\u0642\u062f\u0627\u0631 Code Verifier \u06a9\u0647 \u062f\u0631 \u06af\u0627\u0645 \u0627\u0648\u0644 \u0633\u0627\u062e\u062a\u0647 \u0648 \u0630\u062e\u06cc\u0631\u0647 \u06a9\u0631\u062f\u0647\u200c\u0627\u06cc\u062f.<br>* `<strong>redirect_uri<\/strong>` : \u0645\u0642\u062f\u0627\u0631 \u0622\u062f\u0631\u0633 \u0628\u0627\u0632\u06af\u0634\u062a\u06cc \u06a9\u0647 \u062f\u0631 \u06af\u0627\u0645 \u0627\u0648\u0644 \u0628\u0631\u0627\u06cc \u062f\u0631\u06cc\u0627\u0641\u062a Authorization code \u0627\u0631\u0633\u0627\u0644 \u06a9\u0631\u062f\u0647\u200c\u0627\u06cc\u062f.<\/p>\n\n\n\n<div style=\"height:29px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>\u062f\u0631 \u067e\u0627\u0633\u062e \u06cc\u06a9 json \u0628\u0627 \u0641\u0631\u0645\u062a \u0632\u06cc\u0631 \u062f\u0631\u06cc\u0627\u0641\u062a \u0645\u06cc\u200c\u06a9\u0646\u06cc\u062f:<\/p>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code lang=\"json\" class=\"language-json line-numbers\">{\n    \"access_token\": \"USER_ACCESS_TOKEN\",\n    \"expires_in\": 3600,\n    \"token_type\": \"Bearer\",\n    \"scope\": \"openid profile email\"\n}<\/code><\/pre>\n\n\n\n<div style=\"height:33px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>\u062f\u0631 \u0646\u0647\u0627\u06cc\u062a \u0628\u0631\u0627\u06cc \u0627\u0631\u0633\u0627\u0644 \u062a\u0645\u0627\u0645\u06cc \u062f\u0631\u062e\u0648\u0627\u0633\u062a\u200c\u0647\u0627\u06cc \u062e\u0648\u062f \u0628\u0647 \u0633\u0645\u062a \u0648\u0628\u200c\u0633\u0631\u0648\u06cc\u0633\u200c\u0647\u0627\u06cc \u067e\u06cc\u200c\u067e\u06cc\u0646\u06af \u0648 \u0627\u062d\u0631\u0627\u0632 \u0647\u0648\u06cc\u062a \u0622\u0646\u0647\u0627 \u0628\u0627 \u062f\u0633\u062a\u0631\u0633\u06cc\u200c\u0647\u0627\u06cc \u062e\u0648\u0627\u0633\u062a\u0647 \u0634\u062f\u0647 \u0645\u06cc\u200c\u0628\u0627\u06cc\u0633\u062a \u062f\u0631 Header \u062e\u0648\u062f \u0645\u0642\u062f\u0627\u0631 Authorization \u0631\u0627 \u0628\u0647 \u0635\u0648\u0631\u062a \u0632\u06cc\u0631 \u0627\u0631\u0633\u0627\u0644 \u0646\u0645\u0627\u06cc\u06cc\u062f:<\/p>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code lang=\"bash\" class=\"language-bash line-numbers\">--header 'authorization : bearer {ACCESS_TOKEN}'<\/code><\/pre>\n\n\n\n<div style=\"height:29px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><strong>&nbsp;\u0646\u0645\u0648\u0646\u0647 \u06a9\u062f \u0628\u0631\u0627\u06cc \u0632\u0628\u0627\u0646\u200c\u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641:<\/strong><\/p>\n\n\n\n<p>\u0628\u0631\u0627\u06cc \u0645\u0634\u0627\u0647\u062f\u0647 \u0646\u0645\u0648\u0646\u0647 \u06a9\u062f \u0627\u06cc\u0646 \u0641\u0631\u0622\u06cc\u0646\u062f \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0628\u0647 [<a href=\"https:\/\/github.com\/payping\/sample-oauth-code\" target=\"_blank\" rel=\"noopener\">\u0627\u06cc\u0646 \u0645\u062e\u0632\u0646 \u0628\u0631 \u0631\u0648\u06cc \u06af\u06cc\u062a\u200c\u0647\u0627\u0628<\/a>] \u0645\u0631\u0627\u062c\u0639\u0647 \u06a9\u0646\u06cc\u062f.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">&nbsp;<\/h3>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u062f\u0631\u06cc\u0627\u0641\u062a \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u06a9\u0627\u0631\u0628\u0631:<\/strong><\/h3>\n\n\n\n<p>\u0628\u0631\u0627\u06cc \u062f\u0633\u062a\u0631\u0633\u06cc \u0628\u0647 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u06a9\u0627\u0631\u0628\u0631 \u0646\u06cc\u0627\u0632 \u0627\u0633\u062a \u0634\u0645\u0627 \u062f\u0631 \u0628\u062e\u0634 \u0633\u0637\u062d \u062f\u0633\u062a\u0631\u0633\u06cc scope \u0647\u0627 \u060c \u0645\u0648\u0627\u0631\u062f \u0645\u0648\u0631\u062f \u0646\u06cc\u0627\u0632\u062a\u0627\u0646 \u0631\u0627 \u0627\u0632 \u06a9\u0627\u0631\u0628\u0631 \u062f\u0633\u062a\u0631\u0633\u06cc \u0628\u06af\u06cc\u0631\u06cc\u062f. scope \u0647\u0627\u06cc `profile` `email` `nationalcode` `birthday` `shaba` `phone` \u062f\u0633\u062a\u0631\u0633\u06cc \u0647\u0627\u06cc\u06cc \u0627\u0633\u062a \u06a9\u0647 \u0634\u0645\u0627 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0632 \u06a9\u0627\u0631\u0628\u0631 \u062f\u0631\u06cc\u0627\u0641\u062a \u06a9\u0646\u06cc\u062f. \u0628\u0631\u0627\u06cc \u062f\u0631\u06cc\u0627\u0641\u062a \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u06a9\u0627\u0631\u0628\u0631 \u0628\u0627\u06cc\u062f \u0627\u0632 \u0645\u062a\u062f \u0632\u06cc\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f:<\/p>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code lang=\"bash\" class=\"language-bash line-numbers\">curl -X GET https:\/\/oauth.payping.ir\/connect\/userinfo\n-H 'Authorization: Bearer ACCESS_TOKEN'<\/code><\/pre>\n\n\n\n<p>\u06a9\u0647 \u067e\u0627\u0633\u062e \u0622\u0646 \u0628\u0633\u062a\u0647 \u0628\u0647 \u0627\u06cc\u0646\u06a9\u0647 \u0686\u0647 scope \u0647\u0627\u06cc\u06cc \u062f\u0633\u062a\u0631\u0633\u06cc \u062f\u0627\u0631\u0646\u062f \u0628\u0635\u0648\u0631\u062a \u0632\u06cc\u0631 \u0628\u0635\u0648\u0631\u062a \u0632\u06cc\u0631 \u0645\u06cc\u200c\u0628\u0627\u0634\u062f:<\/p>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code lang=\"bash\" class=\"language-bash line-numbers\">{\n    \"username\": \"USERNAME\",\n    \"\u0646\u0627\u0645\" :\"firstname\",\n    \"\u0646\u0627\u0645 \u062e\u0627\u0646\u0648\u0627\u062f\u06af\u06cc\" :\"lastname\",\n    \"profilepicture\": \"profile pic url\",\n    \"email\": \"email@example.com\",\n    \"email_verified\": \"True\",\n    \"phone\": \"0912...\",\n    \"phone_verified\": \"True\",\n    \"shaba\": \"IR000...\",\n    \"shaba_verified\": \"True\",\n    \"nationalcode\": \"0920...\",\n    \"nationalcode_verified\": \"True\",\n    \"birthday\": \"1367\/01\/01\",\n    \"birthday_verified\": \"True\",\n    \"have_terminal\": \"True\",\n}<\/code><\/pre>\n\n\n\n<div style=\"height:26px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"has-vivid-green-cyan-color has-text-color\"><strong>\u062f\u0631 \u0646\u0638\u0631 \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f \u062c\u0647\u062a \u0634\u0631\u0648\u0639 \u0641\u0639\u0627\u0644\u06cc\u062a\u060c \u062d\u062a\u0645\u0627 \u0645\u06cc\u200c\u0628\u0627\u06cc\u0633\u062a \u062a\u0631\u0645\u06cc\u0646\u0627\u0644 \u06a9\u0627\u0631\u0628\u0631 \u0627\u0632 \u0633\u0645\u062a \u0633\u0627\u0645\u0627\u0646\u0647 \u0634\u0627\u067e\u0631\u06a9 \u062a\u0627\u06cc\u06cc\u062f \u0634\u062f\u0647 \u0628\u0627\u0634\u062f. \u0627\u06af\u0631 \u06a9\u0627\u0631\u0628\u0631 \u062d\u062f\u0627\u0642\u0644 \u06cc\u06a9 \u062a\u0631\u0645\u06cc\u0646\u0627\u0644 \u062a\u0627\u06cc\u06cc\u062f \u0634\u062f\u0647 \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u062f\u060c \u0645\u0642\u062f\u0627\u0631 \u06af\u0632\u06cc\u0646\u0647 have Terminal \u060c \u0628\u0631\u0627\u0628\u0631 \u0628\u0627 True \u0648 \u062f\u0631 \u063a\u06cc\u0631 \u0627\u0632 \u0627\u06cc\u0646\u0635\u0648\u0631\u062a \u0628\u0631\u0627\u0628\u0631 \u0628\u0627 False \u0645\u06cc\u200c\u0634\u0648\u062f.<\/strong><\/p>\n\n\n\n<div style=\"height:38px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><strong>\u062f\u06a9\u0645\u0647 \u0648\u0631\u0648\u062f \u0628\u0627 \u067e\u06cc\u200c\u067e\u06cc\u0646\u06af:<\/strong><\/p>\n\n\n\n<p>\u0628\u0631\u0627\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0627\u0644\u06af\u0648\u06cc \u062f\u06a9\u0645\u0647 \u0648\u0631\u0648\u062f \u0628\u0627 \u067e\u06cc\u200c\u067e\u06cc\u0646\u06af \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0641\u0627\u06cc\u0644 css \u0632\u06cc\u0631 \u0631\u0627 \u062f\u0631 \u0635\u0641\u062d\u0647 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f \u0648 \u0627\u0632 \u0646\u0645\u0648\u0646\u0647 HTML \u0622\u0646 \u0628\u0631\u0627\u06cc \u0646\u0645\u0627\u06cc\u0634 \u062f\u06a9\u0645\u0647 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f.<\/p>\n\n\n\n<div style=\"height:36px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"has-vivid-green-cyan-color has-text-color\"><strong>\u0628\u0627 \u062f\u0627\u062f\u0646 \u06a9\u0644\u0627\u0633 \u0647\u0627\u06cc `PayPingLoginDark` \u0648 \u06cc\u0627 `PayPingLoginLight` \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u062a\u0645\u200c\u0647\u0627\u06cc \u062a\u06cc\u0631\u0647 \u0648 \u0631\u0648\u0634\u0646 \u0631\u0627 \u0628\u0631\u0627\u06cc \u0633\u0627\u06cc\u062a \u062e\u0648\u062f\u062a\u0627\u0646 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f.<\/strong><\/p>\n\n\n\n<div style=\"height:45px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><strong>&nbsp;\u06a9\u0644\u0627\u0633 \u062a\u0645 \u0644\u0627\u06cc\u062a<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"markup\" class=\"language-markup\">&lt;link rel=\"stylesheet\" href=\"https:\/\/cdn.payping.ir\/statics\/paypingLogin.css\"&gt;\n&lt;div class=\"pp-login-light\"&gt;\n  &lt;span class=\"pp-text\"&gt;\u0648\u0631\u0648\u062f \u0628\u0627 \u067e\u06cc\u200c\u067e\u06cc\u0646\u06af&lt;\/span&gt;\n  &lt;span class=\"pp-icon\"&gt;&lt;\/span&gt;\n&lt;div\/&gt;\n<\/code><\/pre>\n\n\n\n<p>&#8220;`<br><img decoding=\"async\" class=\"alignnone size-medium\" src=\"https:\/\/payping.io\/help\/wp-content\/uploads\/2021\/09\/group-1_1nqsmo.png\"><\/p>\n\n\n\n<p><strong>\u06a9\u0644\u0627\u0633 \u062a\u0645 \u062f\u0627\u0631\u06a9<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"markup\" class=\"language-markup\">&lt;link rel=\"stylesheet\" href=\"https:\/\/cdn.payping.ir\/statics\/paypingLogin.css\"&gt;\n&lt;div class=\"pp-login-dark\"&gt;\n  &lt;span class=\"pp-text\"&gt;\u0648\u0631\u0648\u062f \u0628\u0627 \u067e\u06cc\u200c\u067e\u06cc\u0646\u06af&lt;\/span&gt;\n  &lt;span class=\"pp-icon\"&gt;&lt;\/span&gt;\n&lt;div\/&gt;\n<\/code><\/pre>\n\n\n\n<p><img decoding=\"async\" class=\"alignnone size-medium\" src=\"https:\/\/payping.io\/help\/wp-content\/uploads\/2021\/09\/group-2_1q6xnw4.png\"><\/p>\n\n\n\n<div style=\"height:39px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u0645\u0633\u062a\u0646\u062f\u0627\u062a API \u0647\u0627:<\/strong><\/h3>\n\n\n\n<p>\u0628\u0631\u0627\u06cc \u0645\u0634\u0627\u0647\u062f\u0647 \u062a\u0645\u0627\u0645\u06cc \u0645\u0633\u062a\u0646\u062f\u0627\u062a API \u200c\u0647\u0627\u06cc \u067e\u06cc\u200c\u067e\u06cc\u0646\u06af \u0628\u0647 \u0622\u062f\u0631\u0633 [<a href=\"https:\/\/docs.payping.ir\" target=\"_blank\" rel=\"noopener\">docs.payping.ir<\/a>] \u0645\u0631\u0627\u062c\u0639\u0647 \u06a9\u0646\u06cc\u062f.<\/p>\n\n\n\n<div style=\"height:1px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u0646\u06a9\u062a\u0647: \u0627\u06cc\u0646 \u0641\u0631\u0627\u06cc\u0646\u062f \u0645\u06cc\u200c\u0628\u0627\u06cc\u0633\u062a \u0633\u0645\u062a \u0633\u0631\u0648\u0631 \u0627\u0646\u062c\u0627\u0645 \u0628\u06af\u06cc\u0631\u062f. \u0628\u0646\u0627\u0628\u0631\u0627\u06cc\u0646 \u0646\u0628\u0627\u06cc\u062f \u062f\u0627\u062e\u0644 \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646\u200c\u0647\u0627\u06cc \u0645\u0648\u0628\u0627\u06cc\u0644 \u06cc\u0627 \u062f\u0633\u06a9\u062a\u0627\u067e \u0634\u0645\u0627 \u0641\u0631\u0627\u06cc\u0646\u062f \u062f\u0631\u06cc\u0627\u0641\u062a \u062a\u0648\u06a9\u0646 \u0635\u0648\u0631\u062a \u0628\u06af\u06cc\u0631\u062f. \u062f\u0631 \u0635\u0648\u0631\u062a\u06cc \u06a9\u0647 \u0633\u0631\u0648\u06cc\u0633 \u0634\u0645\u0627 \u0646\u06cc\u0627\u0632 \u062f\u0627\u0631\u062f \u0627\u0632 \u06a9\u0627\u0631\u0628\u0631\u0627\u0646 \u067e\u06cc\u200c\u067e\u06cc\u0646\u06af \u062f\u0633\u062a\u0631\u0633\u06cc \u0628\u06af\u06cc\u0631\u062f \u062a\u0627 \u0627\u0632 API \u0647\u0627\u06cc \u067e\u0631\u062f\u0627\u062e\u062a\u060c \u0641\u0627\u06a9\u062a\u0648\u0631 \u0648 &#8230; \u0627\u0632 \u062c\u0627\u0646\u0628 \u0622\u0646\u0647\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0646\u0645\u0627\u06cc\u062f\u060c \u0646\u06cc\u0627\u0632 \u062f\u0627\u0631\u06cc\u062f \u062a\u0627 \u067e\u0633 \u0627\u0632 \u0645\u0639\u0631\u0641\u06cc \u0648 \u0633\u0627\u062e\u062a \u06cc\u06a9 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[5],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/payping.io\/help\/wp-json\/wp\/v2\/posts\/2334"}],"collection":[{"href":"https:\/\/payping.io\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/payping.io\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/payping.io\/help\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/payping.io\/help\/wp-json\/wp\/v2\/comments?post=2334"}],"version-history":[{"count":68,"href":"https:\/\/payping.io\/help\/wp-json\/wp\/v2\/posts\/2334\/revisions"}],"predecessor-version":[{"id":6108,"href":"https:\/\/payping.io\/help\/wp-json\/wp\/v2\/posts\/2334\/revisions\/6108"}],"wp:attachment":[{"href":"https:\/\/payping.io\/help\/wp-json\/wp\/v2\/media?parent=2334"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/payping.io\/help\/wp-json\/wp\/v2\/categories?post=2334"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/payping.io\/help\/wp-json\/wp\/v2\/tags?post=2334"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}