PHP code example of javoscript / laravel-mercadopago-prepaid-subscriptions
1. Go to this page and download the library: Download javoscript/laravel-mercadopago-prepaid-subscriptions library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
javoscript / laravel-mercadopago-prepaid-subscriptions example snippets
"plans" => [
[
"name" => "1 mes",
"time_value" => 1,
"time_unit" => "month",
"price" => 99,
"old_price" => null,
"details" => [
"El más básico, sólo un mes",
"Sin ahorros",
"Sin riesgos",
"Para probar el producto"
]
],
[
"name" => "3 meses",
"time_value" => 3,
"time_unit" => "month",
"price" => 199,
"old_price" => 300,
"details" => [
"Para quien piensa a mediano plazo, tres meses",
"Quiero probarlo, y quiero ahorrar",
]
],
[
"name" => "12 meses",
"time_value" => 12,
"time_unit" => "month",
"price" => 999,
"old_price" => 1200,
"details" => []
],
]
bash
php artisan migrate
bash
php artisan vendor:publish --provider="Javoscript\PrepaidSubs\PrepaidSubsServiceProvider" --tag=config
bash
php artisan vendor:publish --provider="Javoscript\PrepaidSubs\PrepaidSubsServiceProvider" --tag=views