Create a new file mindbody_payments.yaml
under config/routes/
. The file should look like this
mindbody_payments:
resource: '@MiguelAlcainoMindbodyPaymentsBundle/Controller/'
type: annotation
Create a new file mindbody_payments.yaml
under config/packages.yaml
. The file should look like this
miguel_alcaino_mindbody_payments:
handler:
refund_handler: your.refund.handler.service.name
The refund handler class should implement MiguelAlcaino\PaymentGateway\Interfaces\RefundHandlerInterface
parameters:
enabled_payment_names: ['kushki']
login_success_route: 'your_route_name_after_successful_login'
login_template: 'default/login.html.twig'
payment_response_route: 'your_successful_payment_route_name'
MINDBODY_SOURCE_NAME='xxxxxx'
MINDBODY_SOURCE_PASSWORD='xxxxxxxx'
MINDBODY_ADMIN_USER='xxxxxxxxxx'
MINDBODY_ADMIN_PASSWORD='xxxxxx'
MINDBODY_SITE_IDS=[-99]
HOST=your.site.com
MAIN_HOST=https://www.site.com
PAYMENT_SYSTEM_URL=https://your.site.com
BOOKING_PAGE='reserva-tu-clase'
Create a new file fos_user.yaml
under config/packages.yaml
and add this content:
fos_user:
db_driver: orm # other valid values are 'mongodb' and 'couchdb'
firewall_name: main
user_class: MiguelAlcaino\MindbodyPaymentsBundle\Entity\User
from_email:
address: "%mailer_user%"
sender_name: "%mailer_user%"
framework:
templating:
engines: ['twig', 'php']
parameters:
mailer_user: [email protected]
Create a new file fos_user.yaml
under config/routes/
. The file should look like this
fos_user:
resource: "@FOSUserBundle/Resources/config/routing/all.xml"