-
Notifications
You must be signed in to change notification settings - Fork 0
Mercado Pago Payment Gateway for Merx
Ahmet Bora edited this page Sep 15, 2022
·
1 revision
This plugin is Mercado Pago payment gateway for Kirby Merx plugin.
- Download the latest release
- Unzip downloaded file
- Copy/paste unzipped folder in your
/site/pluginsfolder
Get API key from Mercado Pago Developers Panel.
Set accessToken option from config.php like following usage:
<?php
// /site/config/config.php
return [
'owebstudio.merx-mercadopago.accessToken' => 'PROD_ACCESS_TOKEN'
];Enter the Kirby panel with Merx installed. Go to the payment methods section from the settings tab and add a new one. Make sure you type mercadopago in the value field.
🎉 Done! Now you're ready for first order!
| Option | Type | Default | Description |
|---|---|---|---|
| accessToken | string | null | Access token key for Mercado Pago (required) |
| paymentMethods | array | null | Customize the payment preferences. See details in document. |
| webhooks | boolean | false | Activates webhooks to process real-time status updates |
All the values can be updated in the config.php file with prefixed owebstudio.merx-mercadopago..
<?php
// /site/config/config.php
return [
'owebstudio.merx-mercadopago' => [
'accessToken' => 'PROD_ACCESS_TOKEN',
'paymentMethods' => [
// excludes by specific payment methods
'excluded_payment_types' => [
['id' => 'ticket']
],
// maximum number of installments
'installments' => 1
]
]
];