Getnet Plugin Configuration and Usage
This guide details the integration and configuration process for the Getnet payment method on the Magento platform.
Prerequisites
Before starting, ensure you have:
- Magento version between 2.3.5 and 2.4.5 (inclusive)
- FTP access to your server
- Getnet credentials (Client ID and Client Secret)
- The Getnet Magento plugin (download from GitHub and save as ZIP)
Step 1: Module Installation
1.1 Copy Module to Magento
- Access the root directory of your Magento installation and navigate to the
app/codefolder (create it if it doesn’t exist). - Inside
app/code, create the following directory structure:GetnetArg/Payments - Copy all contents from the downloaded repository into the
Paymentsfolder.
The final structure should look like:
app/code/GetnetArg/Payments/
├── Block
├── Controller
├── Cron
├── etc
├── Model
├── Observer
├── Plugin
└── registration.php1.2 Execute Installation Commands
Access the server via terminal, navigate to the Magento root directory, and execute the following commands in order:
php bin/magento cache:disable
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento cache:enableIf the setup:di:compile command does not complete at 100%, increase the PHP memory limit. Recommended value: memory_limit = 1024M
Step 2: Verify Module Configuration
- Access the Magento Admin panel.
- In the side menu, navigate to Stores > Configuration.
- In the left sidebar, select Sales > Payment Methods and locate the new payment method named Getnet Argentina.
- Click on Getnet Argentina and configure the following fields:
| Field | Value |
|---|---|
| Activate | Yes (makes the payment module visible at checkout as Getnet by Santander) |
| Client ID | Client ID received from Getnet |
| Secret ID | Client Secret received from Getnet |
| User Webhook | Username configured in Getnet Portal |
| Pass Webhook | Password configured in Getnet Portal |
| Test Environment | Yes for testing; No for production. Use the appropriate Client ID and Client Secret for each environment. |
Click Save Config to save the configuration.
Step 3: Getnet Portal Configuration
Access the Getnet Portal at: https://www.globalgetnet.com/ and navigate to Checkout configuration.
5.1 Success and Error URLs
- In the Choose the screen after a transaction section, configure the redirect URLs.
- Apply the following suffixes to your store base URL:
| URL type | Suffix |
|---|---|
| Success URL | <your-store-url>/response/success |
| Error URL | <your-store-url>/response/fail |
Example: if your store is https://getnettest.com, use:
- Success URL:
https://getnettest.com/response/success - Error URL:
https://getnettest.com/response/fail
3.2 Webhook Configuration
-
In the Configure your notifications section, set the webhook URL:
<your-store-url>/webhook/responseExample:
https://getnettest.com/webhook/response -
Define a webhook username and password in the Portal.
-
Add the same credentials to Magento in User Webhook and Pass Webhook.
Webhook credentials must match exactly between the Getnet Portal and Magento.
Step 4: Checkout Visualization
With correct configuration:
- The payment method will appear in checkout as Getnet by Santander.
- It will be displayed in the Review & Payments step.
- When selected, customers will see the Getnet payment form.
- Customers can choose between credit or debit cards.
- Installment options will be displayed according to configuration.