Once the TrustistEcommerce Payment Gateway plugin is installed and activated, you can configure it to integrate seamlessly with your WooCommerce store. This guide will walk you through the setup process and explain how the payment gateway interacts with the checkout process and orders.
Accessing the Payment Gateway Settings #
- Navigate to WooCommerce Settings:
- Go to your WordPress dashboard.
- Select WooCommerce from the menu.
- Click on Settings.
- Select the Payments Tab:
- In the WooCommerce settings page, click on the Payments tab.
- You will see a list of available payment gateways. Look for TrustistEcommerce Payment Gateway and click on it to configure its settings.
Configuring TrustistEcommerce Settings #
In the TrustistEcommerce settings page, you will find several options that need to be configured to suit your store’s requirements.
- Title:
- Label: Title
- Description: This controls the title displayed during checkout.
- Default: TrustistEcommerce
- Example: “TrustistEcommerce”
- Description:
- Label: Description
- Description: This controls the description displayed during checkout.
- Default: Pay using TrustistEcommerce
- Example: “Pay securely using TrustistEcommerce Open Banking or credit card.”
- Test Mode:
- Label: Enable Test Mode
- Description: Place the payment gateway in test mode using sandbox API keys.
- Default: Yes (checked)
- Example: Check this box to enable test mode.
- Enable/Disable:
- Label: Enable TrustistEcommerce Gateway
- Description: Check this box to enable the payment gateway.
- Default: No (unchecked)
- Example: Check this box to enable the gateway for customers.
Checkout Process Integration #
Once the payment gateway is configured and enabled, it will appear as a payment option during the checkout process. Customers will be able to select TrustistEcommerce as their payment method, and the following will occur:
- Payment Creation:
- When a customer selects TrustistEcommerce and proceeds to payment, the plugin creates a payment request using the total amount, order ID, and customer details.
- If the payment has already been created for the order, the plugin will reuse the existing payment link.
- Redirect to Payment Link:
- After creating the payment request, the customer will be redirected to the TrustistEcommerce payment page where they can complete the payment using Open Banking or credit card.
Order Processing and Status Updates #
The TrustistEcommerce payment gateway also handles order processing and updates the order status based on the payment response.
- Order Status Update:
- When the payment is completed, the plugin updates the order status to ‘completed’ or ‘processing’.
- If the payment fails, the order status is updated accordingly, and the customer is redirected back to the checkout page to try again.
- Order Notes:
- The plugin adds notes to the order to indicate the status of the payment and any relevant details such as the payment ID.
- Cart Handling:
- Upon successful payment, the customer’s cart is emptied to reflect the completed transaction.
Handling Payment Responses #
The TrustistEcommerce payment gateway listens for responses from the payment processor to update the order status accordingly:
- Process Response:
- The plugin checks the status of the payment using the payment ID and updates the order status if the payment is complete.
- If the payment is incomplete or fails, the plugin redirects the customer back to the checkout page.
Conclusion #
By following these steps, you can configure the TrustistEcommerce Payment Gateway for your WooCommerce store, enabling secure Open Banking and credit card payments for your customers. For more detailed installation instructions, please refer to the TrustistEcommerce Plugin Documentation.