How to Create a New Custom Payment Method in PrestaShop
Offering multiple payment options improves the shopping experience and helps increase conversions. The Payment With Fee module allows you to create new custom payment methods in your PrestaShop store. You can define fees (fixed amount or percentage), apply tax rules, and restrict methods by customer groups, countries, and carriers.
Let’s say you run Camellia Studio, an online women’s fashion store. You want to offer customers an additional payment method: MoMo e-wallet, with a 3% transaction fee to cover processing costs.
Here’s how you can configure this using the Payment With Fee module:
Step 1: Access module configuration
- Navigate to Modules / Module Manager in your PrestaShop back office.
- Click on Upload a module and select the module file ets_payment_with_fee.zip.
- Click Open to install the module.
- Once installed, click Configure to open the module’s settings.
Step 2: Add a new payment method
- On the module’s configuration page, click the "Add new" icon.
- Fill in the required details:
Payment method name: Enter a name for the payment method (e.g.: MoMo E-Wallet)
Description: Add a short description (visible at checkout). Custom variable: [fee].
Example: Pay securely via MoMo with a [fee] transaction fee.
Confirmation message: Message displayed on the order confirmation page. Custom variables: [payment_method], [fee], [email].
Example: Thank you for choosing [payment_method]! A [fee] transaction fee applies.
Payment logo: Upload a payment method logo (JPG, PNG, GIF supported).
Order status: Choose the default order status when this payment method is used (e.g.: Awaiting Payment)
Fee type: Select from free, fixed amount, or percentage of the order total. (e.g.: Percentage (3%) of the total order value.)
Minimum & Maximum order value (Optional): Define limits for using this payment method.
Customer groups: Restrict usage to specific customer groups.
Countries: Make this payment method available only in selected countries.
Carriers: Allow only certain shipping carriers to use this payment method.
Enable/Disable: Toggle to activate or deactivate this payment method.
- Click Save to finalize the setup.
Step 3: Verify payment method displayed on the Checkout page
- The new payment method will be visible at checkout based on your configuration.
- If a payment fee is set, it will be displayed clearly for the customer before order confirmation.
Example: On the checkout page, customers will see "MoMo E-Wallet" as an available payment option. The 3% transaction fee will be displayed before confirming the order.
Step 4: Confirm payment method on the Order confirmation page
The selected payment method and its fee (if applicable) will be visible on the order confirmation page.
By following these steps, you can easily create and customize payment methods in your PrestaShop store using the Payment With Fee module. This allows you to provide flexible and convenient payment options for your customers while maintaining control over additional fees.