內容簡介
允許客戶使用多種付款網關:
* Authorize.net – 只能使用信用卡付款。
* PayU(拉丁美洲)- 可以使用信用卡付款,也可以在7-Eleven、Oxxo等地點使用離線付款。
鉤子
共提供兩個鉤子,用於簡單工作流程中需要將訂單標記為完成,或用戶將發送離線付款收據;如果不需要這些鉤子,它們將是不必要的,它們適用於複雜和自定義的工作流程。
gp_order_online_completed_successfully – 當付款完成時觸發此鉤子。將包含網關回應信息和訂單 ID 的數組發送至回調函數。
gp_error_occurred – 當付款過程中發生錯誤時觸發此鉤子。將異常發送至回調函數。
外掛標籤
開發者團隊
原文外掛簡介
Allows customers to pay using several payment gateways:
* Authorize.net – Credit card only.
* PayU (Latin America) – Credit card + offline payments on 7-Eleven, Oxxo’s.
Hooks
Two hooks are exposed, for a basic workflow in which the order needs to be marked as complete or users will send a
receipt for offline payments, these hooks are not needed, they are meant for more complex and custom workflows.
gp_order_online_completed_successfully – This hook is triggered when the payment is completed. Sends an array with
the gateway’s response information and the order ID to the callback.
gp_error_occurred – This hook is triggered when an error occurs during the payment process. Sends the exception
to the callback.
