Braintree\Customer::update PHP Method

update() public static method

public static update ( integer $customerId, array $attributes ) : Braintree\Result\Successful | Error
$customerId integer
$attributes array
return Braintree\Result\Successful | Braintree\Result\Error
    public static function update($customerId, $attributes)
    {
        return Configuration::gateway()->customer()->update($customerId, $attributes);
    }

Usage Example

 /**
  * Handle the event.
  *
  * @param  \Laravel\Spark\Events\Profile\ContactInformationUpdated  $event
  */
 public function handle($event)
 {
     if (!$event->user->hasBillingProvider()) {
         return;
     }
     BraintreeCustomer::update($event->user->braintree_id, ['email' => $event->user->email]);
 }
All Usage Examples Of Braintree\Customer::update