public function a()
 {
     $result = Braintree_PaymentMethod::create(['customerId' => '28', 'paymentMethodNonce' => \Braintree\Test\Nonces::$transactable]);
     pr($result);
     die;
     $updateResult = Braintree_PaymentMethod::update('5ngfy6', ['paymentMethodNonce' => \Braintree\Test\Nonces::$transactable, 'options' => ['makeDefault' => true, 'verificationAmount' => '100000']]);
     pr($updateResult);
     $paymentMethod = Braintree_PaymentMethod::find('5ngfy6');
     pr($paymentMethod);
     die;
     //
     $result = Braintree_PaymentMethod::create(['customerId' => $id_user, 'paymentMethodNonce' => 'fake-valid-visa-nonce', 'options' => ['verificationMerchantAccountId' => 'm5ph2g77wgfzdyy2', 'verificationAmount' => '100000']]);
     pr($result);
     die;
     $result = Braintree_Transaction::sale(['amount' => '100.00', 'orderId' => 'order id', 'merchantAccountId' => 'm5ph2g77wgfzdyy2', 'paymentMethodNonce' => nonceFromTheClient, 'customer' => ['firstName' => 'Drew', 'lastName' => 'Smith', 'company' => 'Braintree', 'phone' => '312-555-1234', 'fax' => '312-555-1235', 'website' => 'http://www.example.com', 'email' => '*****@*****.**'], 'billing' => ['firstName' => 'Paul', 'lastName' => 'Smith', 'company' => 'Braintree', 'streetAddress' => '1 E Main St', 'extendedAddress' => 'Suite 403', 'locality' => 'Chicago', 'region' => 'IL', 'postalCode' => '60622', 'countryCodeAlpha2' => 'US'], 'shipping' => ['firstName' => 'Jen', 'lastName' => 'Smith', 'company' => 'Braintree', 'streetAddress' => '1 E 1st St', 'extendedAddress' => 'Suite 403', 'locality' => 'Bartlett', 'region' => 'IL', 'postalCode' => '60103', 'countryCodeAlpha2' => 'US'], 'options' => ['submitForSettlement' => true]]);
     pr($result);
     die;
     $result = Braintree_PaymentMethod::create(['customerId' => $id_user, 'paymentMethodNonce' => nonceFromTheClient, 'options' => ['makeDefault' => true]]);
     //        $result->paymentMethod->isDefault();
     pr($result);
     die;
     $collection = Braintree_CreditCardVerification::search([Braintree_CreditCardVerificationSearch::customerId()->is($id_user)]);
     pr($collection);
 }