Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
122 lines (85 sloc) 6.21 KB

Configuration

🏠 Access

To access to Paga+Tarde admin panel, we need to open the oscommerce admin panel and follow the next steps:

1 – Modules => Payment Step 1

2 – Pagantis / Paga+Tarde => Edit Step 2

3 – Pagantis / Paga+Tarde Step 3

📋 Options

In Pagantis admin panel, we can set the following options:

Field Description

Module is enabled - Yes => Activate the payment method
- No => Disabled the payment method
Public Key(*) String you can get from your Paga+Tarde profile.
Secret Key(*) String you can get from your Paga+Tarde profile.
Simulator is enabled - Yes => Activate the installments simulator
- No => Disabled the simulator

Advanced configuration:

The module has many configuration options you can set, but we recommend use it as is.

If you want to manage it, you have 2 ways to update the values using database or via HTTP, see below.

Here you have a complete list of configurations you can change and it's explanation.

Field Description

PAGANTIS_TITLE Payment title to show in checkout page. By default:"Instant financing".
PAGANTIS_SIMULATOR_DISPLAY_TYPE Installments simulator skin inside product page, in positive case. Recommended value: 'pmtSDK.simulator.types.SIMPLE'.
PAGANTIS_SIMULATOR_DISPLAY_SKIN Skin of the product page simulator. Recommended value: 'pmtSDK.simulator.skins.BLUE'.
PAGANTIS_SIMULATOR_DISPLAY_POSITION Choose the place where you want to watch the simulator.
PAGANTIS_SIMULATOR_START_INSTALLMENTS Number of installments by default to use in simulator.
PAGANTIS_SIMULATOR_DISPLAY_CSS_POSITION he position where the simulator widget will be injected. Recommended value: 'pmtSDK.simulator.positions.INNER'.
PAGANTIS_SIMULATOR_CSS_PRICE_SELECTOR CSS selector with DOM element having totalAmount value.
PAGANTIS_SIMULATOR_CSS_POSITION_SELECTOR CSS Selector to inject the widget. (Example: '#simulator', '.PmtSimulator')
PAGANTIS_SIMULATOR_CSS_QUANTITY_SELECTOR CSS selector with DOM element having the quantity selector value.
PAGANTIS_FORM_DISPLAY_TYPE Allow you to select the way to show the payment form in your site
PAGANTIS_DISPLAY_MIN_AMOUNT Minimum amount to use the module and show the payment method in the checkout page.
PAGANTIS_URL_OK Location where user will be redirected after a successful payment. This string will be concatenated to the base url to build the full url
PAGANTIS_URL_KO Location where user will be redirected after a wrong payment. This string will be concatenated to the base url to build the full url
PAGANTIS_SIMULATOR_CSS_PRICE_SELECTOR_CHECKOUT CSS selector with DOM element having totalAmount value on checkout page.
PAGANTIS_ALLOWED_COUNTRIES Array of country codes where the method can be used
PAGANTIS_PROMOTION Array of promoted products identified by product_id. If there are not some product to be promoted, it will be a empty array.
PAGANTIS_PROMOTED_PRODUCT_CODE Message to show if a product is promoted. By default: "¡Financia este producto sin intereses! - 0% TAE";

Edit using database

1 - Open your database management (Frequently Cpanel->phpmyadmin)

2 - Connect to oscommerce database.

3 - Launch a query to check if the table exists: select * from pagantis_config Step 3

4 - Find the config field to edit, in this example we are going to edit: PAGANTIS_TITlE

5 - Launch a query to edit their value: Update pagantis_config set value='New title' where config='PAGANTIS_TITLE' Step 5

6 - After the modification, you can check it launching the query: "select * from pagantis_config" Step 6

7 - Finally you can see the change in checkout page Step 7

Edit using postman

To modify the configuration you only need to make a post to:

{your-domain-url}/ext/modules/payment/pagantis/configController.php?secret={your-secret-key}

Sending in the form data the key of the config you want to change and the new value.

1 - Open the application Step 1

2 - Set the mode of the request
2.1 - Click on BODY tag
2.2 - Click on x-www-form-urlencoded Step 2

3 - Set your request
3.1 - On the upper-left side, you need to set a POST request
3.2 - Fill the url field, setting your domain and your secret key (You can get in:http://bo.pagantis.com) 3.3 - Set the config key to modify (see previous table) 3.4 - Set the value for the selected key Step 3

4 - Press on SEND Step 4

5 - If everything works fine, you could see the config Step 5

6 - Finally you can see the change in checkout page Step 6

🆓 Promotion Per Products

To config the promotions per product, we need to open the oscommerce admin panel and follow the next steps:

1 – Modules => Payment Step 1

2 – Pagantis / Paga+Tarde Step 2

3 - Select products to promote => Save Step 3

After select some products to promote, you can see the promotion message Step 4

If you want to edit this message, you can do it modifying the field:PAGANTIS_PROMOTED_PRODUCT_CODE in our advanced configuration

You can’t perform that action at this time.