public function testCreateTransactionUsingFakeVenmoAccountNonce() { $result = Braintree\Transaction::sale(array('amount' => '47.00', 'merchantAccountId' => Test\Helper::fakeVenmoAccountMerchantAccountId(), 'paymentMethodNonce' => Braintree\Test\Nonces::$venmoAccount)); $this->assertTrue($result->success); $transaction = $result->transaction; $this->assertEquals('47.00', $transaction->amount); $this->assertEquals(Braintree\PaymentInstrumentType::VENMO_ACCOUNT, $transaction->paymentInstrumentType); $venmoAccountDetails = $transaction->venmoAccountDetails; $this->assertNull($venmoAccountDetails->token); $this->assertNotNull($venmoAccountDetails->sourceDescription); $this->assertContains(".png", $venmoAccountDetails->imageUrl); $this->assertSame("venmojoe", $venmoAccountDetails->username); $this->assertSame("Venmo-Joe-1", $venmoAccountDetails->venmoUserId); }