1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- <?php
- // Copyright 2019 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',
- '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',
- ],
- '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',
- ],
- [
- 'const' => 2,
- 'title' => 'Servipag',
- 'description' => (
- 'Comercios Servipag o tarjetas de casas ' .
- 'comerciales'
- ),
- ],
- [
- 'const' => 3,
- 'title' => 'Multicaja',
- 'description' => (
- 'Efectivo en comercios Multicaja'
- ),
- ],
- [
- 'const' => 5,
- 'title' => 'Onepay',
- 'description' => (
- 'Tarjetas de crédito por medio de app Onepay'
- ),
- ],
- [
- 'const' => 8,
- 'title' => 'Cryptocompra',
- 'description' => (
- 'Cryptomonedas Bitcoin, Ethereum o Stellar'
- ),
- ],
- ],
- ],
- ],
- ],
- ],
- ];
|