Braintree\SubscriptionSearch::merchantAccountId PHP Method

merchantAccountId() public static method

public static merchantAccountId ( )
    public static function merchantAccountId()
    {
        return new MultipleValueNode('merchant_account_id');
    }

Usage Example

 public function testSearch_bogusMerchantAccountId()
 {
     $creditCard = SubscriptionHelper::createCreditCard();
     $triallessPlan = SubscriptionHelper::triallessPlan();
     $rand_id = strval(rand());
     $subscription = Braintree\Subscription::create(['paymentMethodToken' => $creditCard->token, 'planId' => $triallessPlan['id'], 'id' => strval(rand()) . '_subscription_' . $rand_id, 'price' => '11.38'])->subscription;
     $collection = Braintree\Subscription::search([Braintree\SubscriptionSearch::id()->endsWith('subscription_' . $rand_id), Braintree\SubscriptionSearch::merchantAccountId()->in(['bogus_merchant_account']), Braintree\SubscriptionSearch::price()->is('11.38')]);
     $this->assertFalse(Test\Helper::includes($collection, $subscription));
 }
All Usage Examples Of Braintree\SubscriptionSearch::merchantAccountId