function testCreate_withVenmoSdkSession()
 {
     $result = Braintree_Customer::create(array('firstName' => 'Bat', 'lastName' => 'Manderson', 'creditCard' => array('number' => '5105105105105100', 'expirationDate' => '05/12', 'options' => array('venmoSdkSession' => Braintree_Test_VenmoSdk::getTestSession()))));
     $this->assertEquals(true, $result->success);
     $customer = $result->customer;
     $this->assertEquals(true, $customer->creditCards[0]->venmoSdk);
 }
 function testCreate_with_invalidVenmoSdkSession()
 {
     $customer = Braintree_Customer::createNoValidate();
     $result = Braintree_CreditCard::create(array('customerId' => $customer->id, 'number' => '5105105105105100', 'expirationDate' => '05/12', 'options' => array('venmoSdkSession' => Braintree_Test_VenmoSdk::getInvalidTestSession())));
     $this->assertTrue($result->success);
     $this->assertFalse($result->creditCard->isVenmoSdk());
 }
 function testSale_withVenmoSdkSession()
 {
     $result = Braintree_Transaction::sale(array('amount' => '10.00', 'creditCard' => array('number' => '5105105105105100', 'expirationDate' => '05/12'), 'options' => array('venmoSdkSession' => Braintree_Test_VenmoSdk::getTestSession())));
     $this->assertEquals(true, $result->success);
     $transaction = $result->transaction;
     $this->assertEquals(true, $transaction->creditCardDetails->venmoSdk);
 }