命令列組態
安裝之後 Payment Services,您可從以下位置輕鬆進行設定: 在首頁內 或透過命令列介面(CLI)執行。
設定資料匯出
Payment Services 結合訂單資料(從匯出) Magento Open Source 和 Adobe Commerce 付款提供者的彙總付款資料,以建立有用的報表。 此 Payment Services 擴充功能會使用索引器有效率地收集報表的所有必要資料。
若要瞭解中使用的資料 Payment Services 報表,請參閱 訂單付款狀態報表.
設定cron Magento Open Source
如果您想使用 BY SCHEDULE
索引模式開啟 Magento Open Source,您必須設定cron。 另請參閱 設定並執行cron.
設定索引子
訂單資料會匯出並保留在付款服務中,使用兩種索引模式之一:ON SAVE
(預設)或 BY SCHEDULE
(建議使用)。
下列索引用於 Payment Services:
sales_order_data_exporter
sales_order_status_data_exporter
store_data_exporter
若要變更所有三個索引器的索引模式,請執行:
bin/magento indexer:set-mode schedule sales_order_data_exporter sales_order_status_data_exporter store_data_exporter
若要進一步瞭解手動變更索引器的模式,請參閱 設定索引子 在開發人員檔案中。 若要瞭解如何在管理員中加以變更,請參閱 索引管理 (在核心使用手冊中)。
手動重新索引資料
您可以手動重新索引資料,而不是等待資料自動發生。 另請參閱 重新索引 在 管理索引子 以取得詳細資訊。
時間 BY SCHEDULE
模式已設定,系統會追蹤已變更的實體,而cron作業會根據設定的排程更新這些實體的索引。 另請參閱 從命令列執行cron 在 設定並執行cron),瞭解如何使用cron工作手動觸發索引。
將重新索引的資料傳送至付款服務
資料編制索引後,會自動傳送至 Payment Services. 您也可以使用此命令手動觸發傳送索引資料的程式:
bin/magento saas:resync --feed [feedName]
使用下列命令選項:
bin/magento saas:resync --feed [feedName]
bin/magento saas:resync --no-reindex
此 --feed
引數可讓您指定要傳送的摘要:
paymentServicesOrdersProduction
paymentServicesOrdersSandbox
paymentServicesOrderStatusesProduction
paymentServicesOrderStatusesSandbox
paymentServicesStoresProduction
paymentServicesStoresSandbox
報告所需的所有資料都會傳送到 Payment Services 如果已設定並安裝cron,則會自動進行。 您也可以手動觸發傳送cron資料至的程式 Payment Services.
bin/magento cron:run --group payment_services_data_export
若要進一步瞭解重新索引和索引子,請參閱 管理索引子 開發人員檔案中的主題。
設定L2/L3處理
Payment Services 可以處理卡片付款交易的層級2與層級3資料,以提供商戶的其他資訊。
如果您想要使用L2/L3處理資料 Payment Services,或如果您有任何問題,請聯絡您的 Payment Services 客戶經理。
瞭解中使用的L2和L3處理 Payment Services,請參閱 第2級和第3級處理.