Braintree\TransactionSearch::creditCardCustomerLocation PHP Method

creditCardCustomerLocation() public static method

public static creditCardCustomerLocation ( )
    public static function creditCardCustomerLocation()
    {
        return new MultipleValueNode('credit_card_customer_location', [CreditCard::INTERNATIONAL, CreditCard::US]);
    }

Usage Example

 public function test_multipleValueNode_creditCardCustomerLocation_allowedValues()
 {
     $this->setExpectedException('InvalidArgumentException', 'Invalid argument(s) for credit_card_customer_location: noSuchLocation');
     $collection = Braintree\Transaction::search([Braintree\TransactionSearch::creditCardCustomerLocation()->is('noSuchLocation')]);
 }