1<?php
2
3return array(
4
5 t_default('acp.paysec.PayPal', 'PayPal') => array(
6 'icon' => 'fa-paypal',
7 'help' => t_default('acp.paysec.PayPal.help', 'Payments land through ipn.php. The address below must be the one that receives them.'),
8 'fields' => array(
9 'paypal.enabled' => array('label' => t_default('acp.pay.paypal.enabled.label', 'PayPal enabled'), 'type' => 'bool'),
10 'paypal.email' => array('label' => t_default('acp.pay.paypal.email.label', 'PayPal account e-mail'), 'type' => 'text'),
11 'paypal.currency' => array('label' => t_default('acp.pay.paypal.currency.label', 'Currency'), 'type' => 'text', 'help' => t_default('acp.pay.paypal.currency.help', 'Three-letter code, e.g. EUR, USD, BRL.')),
12 'paypal.points_per_currency' => array('label' => t_default('acp.pay.paypal.points_per_currency.label', 'Points per unit of currency'), 'type' => 'int', 'help' => t_default('acp.pay.paypal.points_per_currency.help', 'Only used to work out the bonus percentages shown to players.')),
13 'paypal.showBonus' => array('label' => t_default('acp.pay.paypal.showBonus.label', 'Show bonus percentages'), 'type' => 'bool'),
14 ),
15 ),
16
17 t_default('acp.paysec.Stripe', 'Stripe') => array(
18 'icon' => 'fa-credit-card',
19 'help' => t_default('acp.paysec.Stripe.help', 'Hosted Checkout. Points are credited only by signed webhook after Stripe confirms the session is paid.'),
20 'fields' => array(
21 'stripe.enabled' => array('label' => t_default('acp.pay.stripe.enabled.label', 'Stripe enabled'), 'type' => 'bool'),
22 'stripe.test_mode' => array('label' => t_default('acp.pay.stripe.test_mode.label', 'Test mode'), 'type' => 'bool'),
23 'stripe.publishable_key' => array('label' => t_default('acp.pay.stripe.publishable_key.label', 'Publishable key'), 'type' => 'text'),
24 'stripe.secret_key' => array('label' => t_default('acp.pay.stripe.secret_key.label', 'Secret key'), 'type' => 'secret'),
25 'stripe.webhook_secret' => array('label' => t_default('acp.pay.stripe.webhook_secret.label', 'Webhook secret'), 'type' => 'secret', 'help' => t_default('acp.pay.stripe.webhook_secret.help', 'Required. Stripe signs each webhook with this endpoint secret.')),
26 'stripe.currency' => array('label' => t_default('acp.pay.stripe.currency.label', 'Currency'), 'type' => 'text', 'help' => t_default('acp.pay.stripe.currency.help', 'Three-letter code, e.g. EUR, USD, BRL.')),
27 'stripe.points_per_currency' => array('label' => t_default('acp.pay.stripe.points_per_currency.label', 'Points per unit of currency'), 'type' => 'int'),
28 'stripe.amount_multiplier' => array('label' => t_default('acp.pay.stripe.amount_multiplier.label', 'Amount multiplier'), 'type' => 'int', 'help' => t_default('acp.pay.stripe.amount_multiplier.help', '100 for EUR/USD/BRL, 1 for zero-decimal currencies.')),
29 'stripe.webhook_url' => array('label' => t_default('acp.pay.stripe.webhook_url.label', 'Webhook URL'), 'type' => 'text'),
30 'stripe.showBonus' => array('label' => t_default('acp.pay.stripe.showBonus.label', 'Show bonus percentages'), 'type' => 'bool'),
31 ),
32 ),
33
34 t_default('acp.paysec.Mercado Pago', 'Mercado Pago') => array(
35 'icon' => 'fa-credit-card',
36 'help' => t_default('acp.paysec.Mercado Pago.help', 'Checkout Pro. Points are credited only by signed webhook after Mercado Pago confirms the payment is approved.'),
37 'fields' => array(
38 'mercadopago.enabled' => array('label' => t_default('acp.pay.mercadopago.enabled.label', 'Mercado Pago enabled'), 'type' => 'bool'),
39 'mercadopago.test_mode' => array('label' => t_default('acp.pay.mercadopago.test_mode.label', 'Test mode'), 'type' => 'bool'),
40 'mercadopago.public_key' => array('label' => t_default('acp.pay.mercadopago.public_key.label', 'Public key'), 'type' => 'text'),
41 'mercadopago.access_token' => array('label' => t_default('acp.pay.mercadopago.access_token.label', 'Access token'), 'type' => 'secret'),
42 'mercadopago.webhook_secret' => array('label' => t_default('acp.pay.mercadopago.webhook_secret.label', 'Webhook secret'), 'type' => 'secret', 'help' => t_default('acp.pay.mercadopago.webhook_secret.help', 'Required. Mercado Pago signs notifications with this secret.')),
43 'mercadopago.currency' => array('label' => t_default('acp.pay.mercadopago.currency.label', 'Currency'), 'type' => 'text', 'help' => t_default('acp.pay.mercadopago.currency.help', 'Currency supported by your Mercado Pago account, e.g. BRL, MXN, ARS, CLP, COP, PEN, UYU.')),
44 'mercadopago.points_per_currency' => array('label' => t_default('acp.pay.mercadopago.points_per_currency.label', 'Points per unit of currency'), 'type' => 'int'),
45 'mercadopago.webhook_url' => array('label' => t_default('acp.pay.mercadopago.webhook_url.label', 'Webhook URL'), 'type' => 'text'),
46 'mercadopago.showBonus' => array('label' => t_default('acp.pay.mercadopago.showBonus.label', 'Show bonus percentages'), 'type' => 'bool'),
47 ),
48 ),
49
50 t_default('acp.paysec.PagSeguro', 'PagSeguro') => array(
51 'icon' => 'fa-credit-card',
52 'help' => t_default('acp.paysec.PagSeguro.help', 'Brazilian gateway. Sandbox mode switches every URL to the test environment.'),
53 'fields' => array(
54 'pagseguro.enabled' => array('label' => t_default('acp.pay.pagseguro.enabled.label', 'PagSeguro enabled'), 'type' => 'bool'),
55 'pagseguro.sandbox' => array('label' => t_default('acp.pay.pagseguro.sandbox.label', 'Sandbox mode'), 'type' => 'bool'),
56 'pagseguro.email' => array('label' => t_default('acp.pay.pagseguro.email.label', 'Account e-mail'), 'type' => 'text'),
57 'pagseguro.token' => array('label' => t_default('acp.pay.pagseguro.token.label', 'API token'), 'type' => 'secret'),
58 'pagseguro.currency' => array('label' => t_default('acp.pay.pagseguro.currency.label', 'Currency'), 'type' => 'text'),
59 'pagseguro.product_name' => array('label' => t_default('acp.pay.pagseguro.product_name.label', 'Product name'), 'type' => 'text'),
60 'pagseguro.price' => array('label' => t_default('acp.pay.pagseguro.price.label', 'Price'), 'type' => 'int'),
61 ),
62 ),
63
64 t_default('acp.paysec.PayGol SMS', 'PayGol SMS') => array(
65 'icon' => 'fa-mobile',
66 'help' => t_default('acp.paysec.PayGol SMS.help', 'PayGol keeps a large share of each payment and pays out to PayPal once the balance passes their threshold.'),
67 'fields' => array(
68 'paygol.enabled' => array('label' => t_default('acp.pay.paygol.enabled.label', 'PayGol enabled'), 'type' => 'bool'),
69 'paygol.serviceID' => array('label' => t_default('acp.pay.paygol.serviceID.label', 'Service ID'), 'type' => 'int'),
70 'paygol.secretKey' => array('label' => t_default('acp.pay.paygol.secretKey.label', 'Secret key'), 'type' => 'secret', 'help' => t_default('acp.pay.paygol.secretKey.help', 'Never share this. It signs the payment callbacks.')),
71 'paygol.currency' => array('label' => t_default('acp.pay.paygol.currency.label', 'Currency'), 'type' => 'text'),
72 'paygol.price' => array('label' => t_default('acp.pay.paygol.price.label', 'Price'), 'type' => 'int'),
73 'paygol.points' => array('label' => t_default('acp.pay.paygol.points.label', 'Points given'), 'type' => 'int'),
74 'paygol.name' => array('label' => t_default('acp.pay.paygol.name.label', 'Package name'), 'type' => 'text'),
75 ),
76 ),
77
78 t_default('acp.paysec.OTServers.eu voting', 'OTServers.eu voting') => array(
79 'icon' => 'fa-star',
80 'help' => t_default('acp.paysec.OTServers.eu voting.help', 'Rewards players with points for voting. Get the token from OTServers.eu under "Encourage players to vote".'),
81 'fields' => array(
82 'otservers_eu_voting.enabled' => array('label' => t_default('acp.pay.otservers_eu_voting.enabled.label', 'Voting rewards enabled'), 'type' => 'bool'),
83 'otservers_eu_voting.secretToken' => array('label' => t_default('acp.pay.otservers_eu_voting.secretToken.label', 'Secret token'), 'type' => 'secret'),
84 'otservers_eu_voting.points' => array('label' => t_default('acp.pay.otservers_eu_voting.points.label', 'Points per vote'), 'type' => 'int'),
85 'otservers_eu_voting.simpleVoteUrl' => array('label' => t_default('acp.pay.otservers_eu_voting.simpleVoteUrl.label', 'Vote URL for guests'), 'type' => 'text'),
86 ),
87 ),
88 );
89