我正在使用windows、xampp和相当新的工具来集成docusign。但是,由于本教程使用的是mac,所以我对如何在xampp和windows上设置本教程感到困惑,其结果是我得到了错误:
重定向URI没有在DocuSign中正确注册。
这是我是如何完成我的设计的
1.)克隆存储库并将其放在我的xamp/htdocs/eg-something-something上
2.)将丑陋的存储库名称重命名为xamp/htdocs/docusign/
3.)运行composer安装以获取依赖项
4.)我配置了我的ds_config.php这是我的代码..。为了安全起见,我删除了凭据
<?php
// ds_config.py
//
// DocuSign configuration settings
$DS_CONFIG = [
'ds_client_id' => 'xxxx', # The app's DocuSign integration key
'ds_client_secret' => 'xxx', # The app's DocuSign integration key's secret
'signer_email' => 'xxx@gmail.com',
'signer_name' => 'Michael',
'app_url' => 'http://localhost/docusign/public', // The url of the application.
// Ie, the user enters app_url in their browser to bring up the app's home page
// Eg http://localhost/eg-03-php-auth-code-grant/public if the app is installed in a
// development directory that is accessible via web server.
// NOTE => You must add a Redirect URI of app_url/index.php?page=ds_callback to your Integration Key.
'authorization_server' => 'https://account-d.docusign.com',
'session_secret' => '{SESSION_SECRET}', // Secret for encrypting session cookie content
'allow_silent_authentication' => true, // a user can be silently authenticated if they have an
// active login session on another tab of the same browser
'target_account_id' => false, // Set if you want a specific DocuSign AccountId, If false, the user's default account will be used.
'demo_doc_path' => 'demo_documents',
'doc_docx' => 'World_Wide_Corp_Battle_Plan_Trafalgar.docx',
'doc_pdf' => 'World_Wide_Corp_lorem.pdf',
// Payment gateway information is optional
'gateway_account_id' => '{DS_PAYMENT_GATEWAY_ID}',
'gateway_name' => "stripe",
'gateway_display_name' => "Stripe",
'github_example_url' => 'https://github.com/docusign/eg-03-php-auth-code-grant/tree/master/src/',
'documentation' => false
];
$GLOBALS['DS_CONFIG'] = $DS_CONFIG;5.)我登录到我的管理沙箱并使用它作为我的重定向URI
http://localhost/docusign/public/index.php?page=ds_callbackweb应用程序正在运行,但我有一个错误的“重定向URI没有正确注册到DocuSign"时,我点击登录或只是通过认证。
谢谢你在这个问题上帮助我。
更新部分:我尝试在沙箱上添加://对集成键的配置,但是,我得到了一个致命的错误:
致命错误: Uncaught \Exception\RequestException: C:\xampp\htdocs\docusign\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php第186行中cURL error 77:错误设置证书验证位置: CAfile: xampp\apache\bin\curl bundle.crt CApath: none (见http://curl.haxx.se/libcurl/c/libcurl-errors.html)
有一次我试图验证。错误的看看这张截图。
发布于 2019-03-18 20:57:42
尝试将http://localhost/docusign/public/index.php?page=ds_callback作为重定向URL。
您需要完整的URL,包括http:// part。
https://stackoverflow.com/questions/55215064
复制相似问题