You are here

Discount.php in Commerce Braintree 7

File

braintree_php/lib/Braintree/Discount.php
View source
<?php

class Braintree_Discount extends Braintree_Modification {
  public static function all() {
    $response = Braintree_Http::get('/discounts');
    $discounts = array(
      "discount" => $response['discounts'],
    );
    return Braintree_Util::extractAttributeAsArray($discounts, 'discount');
  }

}

Classes

Namesort descending Description
Braintree_Discount