123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129 |
- <?php
- // Copyright 2019-2022 Hackware SpA <human@hackware.cl>
- // This file is part of "Hackware Web Services Payment" and licensed under
- // the terms of the GNU Affero General Public License version 3, or (at your
- // option) a later version. You should have received a copy of this license
- // along with the software. If not, see <https://www.gnu.org/licenses/>.
- return [
- 'class' => '\Hawese\Payment\Gateways\FlowGateway',
- 'countries' => ['CL'],
- 'test_mode' => env('FLOW_TEST_MODE', false),
- 'credentials' => [
- 'apiKey' => env('FLOW_API_KEY'),
- 'secretKey' => env('FLOW_SECRET_KEY'),
- ],
- 'payment_methods' => [
- 'purchase' => 'paymentMethod',
- ],
- 'schemas' => [
- 'purchase' => [
- 'required' => [
- 'subject',
- 'amount',
- 'email',
- 'paymentMethod',
- ],
- 'standard_map' => [
- 'subject' => 'subject',
- 'email' => 'email',
- 'due_amount' => 'amount',
- 'payment_method' => 'paymentMethod',
- 'currency' => 'currency'
- ],
- 'properties' => [
- 'subject' => [
- 'title' => 'Descripción',
- 'type' => 'string',
- ],
- 'currency' => [
- 'title' => 'Moneda',
- 'type' => 'string',
- 'enum' => ['CLP'],
- 'default' => 'CLP',
- 'readOnly' => true,
- ],
- 'amount' => [
- 'title' => 'Monto',
- 'type' => 'number',
- 'multipleOf' => 1,
- ],
- 'email' => [
- 'title' => 'Email',
- 'type' => 'string',
- 'format' => 'idn-email',
- ],
- 'paymentMethod' => [
- 'title' => 'Medio de pago',
- 'type' => 'integer',
- 'oneOf' => [
- [
- 'const' => 1,
- 'title' => 'Webpay Plus',
- 'description' => 'Tarjetas de crédito o débito',
- 'image' => env('APP_URL') .
- '/img/payment_methods/webpay_plus.svg',
- ],
- [
- 'const' => 2,
- 'title' => 'Servipag',
- 'description' => (
- 'Comercios Servipag o tarjetas de casas ' .
- 'comerciales'
- ),
- 'image' => env('APP_URL') .
- '/img/payment_methods/servipag.svg',
- ],
- [
- 'const' => 3,
- 'title' => 'Multicaja',
- 'description' => (
- 'Efectivo en comercios Multicaja'
- ),
- 'image' => env('APP_URL') .
- '/img/payment_methods/multicaja.svg',
- ],
- [
- 'const' => 5,
- 'title' => 'Onepay',
- 'description' => (
- 'Tarjetas de crédito por medio de app Onepay'
- ),
- 'image' => env('APP_URL') .
- '/img/payment_methods/onepay.svg',
- ],
- [
- 'const' => 8,
- 'title' => 'Cryptocompra',
- 'description' => (
- 'Cryptomonedas Bitcoin, Ethereum o Stellar'
- ),
- 'image' => env('APP_URL') .
- '/img/payment_methods/cryptocompra.svg',
- ],
- [
- 'const' => 15,
- 'title' => 'MACH',
- 'description' => (
- 'Aplicación MACH'
- ),
- 'image' => env('APP_URL') .
- '/img/payment_methods/mach.svg',
- ],
- [
- 'const' => 25,
- 'title' => 'Chek',
- 'description' => (
- 'Aplicación Chek'
- ),
- 'image' => env('APP_URL') .
- '/img/payment_methods/chek.svg',
- ],
- ],
- ],
- ],
- ],
- ],
- ];
|