安裝 Payment Services

若要開始使用付款服務,請執行下列動作: Adobe Commerce 和 Magento Open Source,您必須完成一些入門步驟。

INFO
請參閱我們的 設定 Payment Services 適用於Adobe Commerce 視訊以取得其他資訊。

下載和安裝 Payment Services 延伸模組 Adobe Commerce 和 Magento Open Source 使用的必要步驟 Payment Services.

Payment Services 擴充功能管理員檢視

下載擴充功能

您必須先從下載擴充功能 Commerce Marketplace 安裝之前。

  1. 導覽至 Commerce Marketplace中的支付服務擴充功能.
  2. 若要選擇版本和版本,請切換 EditionYour store version 至您偏好的選取專案。
  3. 按一下 Add to Cart.
  4. 完成結帳並按一下 Place Order.
  5. 檢查與您的Marketplace下載相關聯的電子郵件,以取得訂單確認和詳細資訊。

安裝擴充功能

您可以安裝 Payment Services 兩者的擴充功能 Adobe Commerce 連結至您Commerce帳戶的雲端基礎結構和內部部署執行個體上進行 mageid 在註冊過程中提供。
Magento Open Source 客戶使用內部部署指示。

Composer在初始安裝期間使用這些金鑰 Adobe Commerce,或先前未將撰寫器索引鍵儲存至的情況 auth.json 檔案。

另請參閱 取得您的驗證金鑰 以取得有關取得撰寫器索引鍵的詳細資訊。

另請參閱 安裝擴充功能 以取得下載和安裝擴充功能前需考量的詳細資訊。

Adobe Commerce 在雲端基礎結構上

此方法用於安裝 Payment Services Commerce Cloud例項的擴充功能。

  1. 更新您的 composer.json 檔案:

    code language-bash
    composer require magento/payment-services --no-update
    
  2. 更新相依性並安裝擴充功能:

    code language-bash
    composer update magento/payment-services --with-dependencies
    

    使用 composer update 更新所有根相依性的命令。

  3. 提交並推送您的變更。

內部部署和其他設定

此方法用於安裝 Payment Services 內部部署執行個體的擴充功能和 Magento Open Source 客戶。

  1. 若要取得擴充功能,請執行以下命令:

    code language-bash
    composer require magento/payment-services --no-update
    
  2. 更新相依性並安裝擴充功能:

    code language-bash
    composer update magento/payment-services --with-dependencies
    

    使用 composer update 更新所有根相依性的命令。

  3. 升級您的執行個體:

    code language-bash
    bin/magento setup:upgrade
    
  4. 清除快取:

    code language-bash
    bin/magento cache:clean
    
  5. 提交變更。

  6. 若要確保已部署認可的程式碼,請更新您的執行個體。

升級擴充功能

當有新版本的 Payment Services 已發行,您可以輕鬆升級擴充功能。

  1. 若要取得最新版本的套件:

    code language-bash
    composer update magento/payment-services --with-dependencies
    

    使用 composer update 更新所有根相依性的命令。

  2. 提交並推送您的變更。

疑難排解

嘗試安裝時,您可能會看到錯誤 Payment Services 副檔名。 請使用下列疑難排解方法來解決錯誤。

不正確的撰寫器索引鍵

如果您看到下列錯誤,指出您的撰寫器索引鍵不正確:

Could not find a matching version of package magento/payment-services. Check the package spelling, your version constraint and that the package is available in a stability which matches your minimum-stability (stable).

確認您的撰寫器金鑰有效,並且您擁有其他Magento套件的存取權。

若要檢視已設定的撰寫器金鑰:

  1. 尋找的位置 auth.json 檔案:

    code language-bash
    composer config --global home
    
  2. 檢視 auth.json 檔案:

    code language-bash
    cat /path/to/auth.json
    
  3. 另請參閱 哪些金鑰與您的Commerce帳戶相關聯 MageID.

PHP的記憶體不足

如果看到以下錯誤,表示您沒有足夠的記憶體來使用PHP:

Fatal error: Allowed memory size of 2146435072 bytes exhausted (tried to allocate 4096 bytes) in phar:///usr/local/bin/composer/src/Composer/DependencyResolver/RuleWatchGraph.php on line 52

增加記憶體限制 適用於PHP,位於您的環境 php.ini.

或者,您可以使用此指令指定記憶體限制: php -d memory_limit=-1 [path to composer]/composer require magento/payment-services.

例如:

php -d memory_limit=-1 vendor/bin/composer require magento/payment-services
recommendation-more-help
87189544-c8b9-4aef-af07-ed3578763c38