Your IP : 216.73.217.13


Current Path : /home/rtorresani/www/vendor/paypal/module-braintree-core/Block/Adminhtml/Virtual/
Upload File :
Current File : //home/rtorresani/www/vendor/paypal/module-braintree-core/Block/Adminhtml/Virtual/Form.php

<?php

namespace PayPal\Braintree\Block\Adminhtml\Virtual;

use Magento\Backend\Block\Widget\Form\Container;

/**
 * @api
 * @since 100.0.2
 */
class Form extends Container
{
    /**
     * @inheritDoc
     */
    protected function _construct()
    {
        $this->_blockGroup = 'PayPal_Braintree';
        $this->_controller = 'adminhtml_virtual';
        parent::_construct();

        $this->removeButton('back');
        $this->removeButton('reset');
        $this->removeButton('save');
        $this->addButton(
            'save',
            [
                'label' => __('Take Payment'),
                'class' => 'save primary',
                'data_attribute' => [
                    'mage-init' => ['button' => ['event' => 'takePayment', 'target' => '#payment_form_braintree']],
                ]
            ],
            1
        );
    }
}