You are here

public static function Braintree_AddOn::all in Commerce Braintree 7

1 call to Braintree_AddOn::all()
Braintree_AddOnTest::testAll_returnsAllAddOns in braintree_php/tests/integration/AddOnsTest.php

File

braintree_php/lib/Braintree/AddOn.php, line 4

Class

Braintree_AddOn

Code

public static function all() {
  $response = Braintree_Http::get('/add_ons');
  $addOns = array(
    "addOn" => $response['addOns'],
  );
  return Braintree_Util::extractAttributeAsArray($addOns, 'addOn');
}