/home/desid573/public_html/app/braintree/tests/integration
NameSizeModeActions
Error/-0755rm
Result/-0755rm
AddOnsTest.php29530644editdlrm
AddressTest.php128330644editdlrm
ApplePayTest.php25950644editdlrm
ClientTokenTest.php70160644editdlrm
CreditCardTest.php564890644editdlrm
CreditCardVerificationAdvancedSearchTest.php112090644editdlrm
CreditCardVerificationTest.php22660644editdlrm
CustomerAdvancedSearchTest.php76690644editdlrm
CustomerTest.php706950644editdlrm
DisbursementTest.php12060644editdlrm
DiscountTest.php30720644editdlrm
DisputeSearchTest.php37070644editdlrm
DisputeTest.php155170644editdlrm
DocumentUploadTest.php41850644editdlrm
GraphQLTest.php27850644editdlrm
HttpClientApi.php41700644editdlrm
HttpTest.php62380644editdlrm
IdealPaymentTest.php41410644editdlrm
MasterpassCardTest.php60220644editdlrm
MerchantAccountTest.php300400644editdlrm
MerchantTest.php101600644editdlrm
MultipleValueNodeTest.php33390644editdlrm
OAuthTest.php137320644editdlrm
PaymentMethodNonceTest.php79650644editdlrm
PaymentMethodTest.php696180644editdlrm
PaymentMethodWithUsBankAccountTest.php64830644editdlrm
PayPalAccountTest.php113000644editdlrm
PlanTest.php47570644editdlrm
SamsungPayCardTest.php87580644editdlrm
SettlementBatchSummaryTest.php34970644editdlrm
SubscriptionHelper.php24600644editdlrm
SubscriptionSearchTest.php178430644editdlrm
SubscriptionTest.php553940644editdlrm
TestTransactionTest.php28890644editdlrm
TextNodeTest.php53790644editdlrm
TransactionAdvancedSearchTest.php657420644editdlrm
TransactionLineItemTest.php14010644editdlrm
TransactionTest.php2413430644editdlrm
TransactionWithUsBankAccountTest.php118920644editdlrm
TransparentRedirectTest.php124570644editdlrm
UsBankAccountTest.php46910644editdlrm
UsBankAccountVerificationTest.php98960644editdlrm
VisaCheckoutCardTest.php70770644editdlrm
Edit: /home/desid573/public_html/app/braintree/tests/integration/VisaCheckoutCardTest.php (7077B)
$customer->id, 'paymentMethodNonce' => Braintree\Test\Nonces::$visaCheckoutDiscover, ]); $this->assertTrue($result->success); $visaCheckoutCard = $result->paymentMethod; $this->assertNotNull($visaCheckoutCard->token); $this->assertSame(Braintree\CreditCard::DISCOVER, $visaCheckoutCard->cardType); $this->assertTrue($visaCheckoutCard->default); $this->assertContains('discover', $visaCheckoutCard->imageUrl); $this->assertTrue(intval($visaCheckoutCard->expirationMonth) > 0); $this->assertTrue(intval($visaCheckoutCard->expirationYear) > 0); $this->assertSame($customer->id, $visaCheckoutCard->customerId); $this->assertSame('abc123', $visaCheckoutCard->callId); $this->assertSame($visaCheckoutCard->last4, '1117'); $this->assertSame($visaCheckoutCard->maskedNumber, '601111******1117'); $this->assertNotNull($visaCheckoutCard->billingAddress); $this->assertNotNull($visaCheckoutCard->bin); $this->assertNotNull($visaCheckoutCard->callId); $this->assertNotNull($visaCheckoutCard->cardType); $this->assertNotNull($visaCheckoutCard->cardholderName); $this->assertNotNull($visaCheckoutCard->commercial); $this->assertNotNull($visaCheckoutCard->countryOfIssuance); $this->assertNotNull($visaCheckoutCard->createdAt); $this->assertNotNull($visaCheckoutCard->customerId); $this->assertNotNull($visaCheckoutCard->customerLocation); $this->assertNotNull($visaCheckoutCard->debit); $this->assertNotNull($visaCheckoutCard->default); $this->assertNotNull($visaCheckoutCard->durbinRegulated); $this->assertNotNull($visaCheckoutCard->expirationDate); $this->assertNotNull($visaCheckoutCard->expirationMonth); $this->assertNotNull($visaCheckoutCard->expirationYear); $this->assertNotNull($visaCheckoutCard->expired); $this->assertNotNull($visaCheckoutCard->healthcare); $this->assertNotNull($visaCheckoutCard->imageUrl); $this->assertNotNull($visaCheckoutCard->issuingBank); $this->assertNotNull($visaCheckoutCard->last4); $this->assertNotNull($visaCheckoutCard->maskedNumber); $this->assertNotNull($visaCheckoutCard->payroll); $this->assertNotNull($visaCheckoutCard->prepaid); $this->assertNotNull($visaCheckoutCard->productId); $this->assertNotNull($visaCheckoutCard->subscriptions); $this->assertNotNull($visaCheckoutCard->token); $this->assertNotNull($visaCheckoutCard->uniqueNumberIdentifier); $this->assertNotNull($visaCheckoutCard->updatedAt); } public function testCreateWithVisaCheckoutCardNonceWithVerification() { $customer = Braintree\Customer::createNoValidate(); $result = Braintree\PaymentMethod::create([ 'customerId' => $customer->id, 'paymentMethodNonce' => Braintree\Test\Nonces::$visaCheckoutDiscover, 'options' => [ 'verifyCard' => true ] ]); $this->assertTrue($result->success); $visaCheckoutCard = $result->paymentMethod; $verification = $visaCheckoutCard->verification; $this->assertNotNull($verification); $this->assertNotNull($verification->status); } public function testTransactionSearchWithVisaCheckout() { $transaction = Braintree\Transaction::saleNoValidate([ 'amount' => Braintree\Test\TransactionAmounts::$authorize, 'paymentMethodNonce' => Braintree\Test\Nonces::$visaCheckoutDiscover, ]); $collection = Braintree\Transaction::search([ Braintree\TransactionSearch::id()->is($transaction->id), Braintree\TransactionSearch::paymentInstrumentType()->is(Braintree\PaymentInstrumentType::VISA_CHECKOUT_CARD) ]); $this->assertEquals($transaction->paymentInstrumentType, Braintree\PaymentInstrumentType::VISA_CHECKOUT_CARD); $this->assertEquals($transaction->id, $collection->firstItem()->id); } public function testCreateCustomerWithVisaCheckoutCard() { $nonce = Braintree\Test\Nonces::$visaCheckoutDiscover; $result = Braintree\Customer::create([ 'paymentMethodNonce' => $nonce ]); $this->assertTrue($result->success); $customer = $result->customer; $this->assertNotNull($customer->visaCheckoutCards[0]); $this->assertNotNull($customer->paymentMethods[0]); } public function testCreateTransactionWithVisaCheckoutNonceAndVault() { $result = Braintree\Transaction::sale([ 'amount' => '47.00', 'paymentMethodNonce' => Braintree\Test\Nonces::$visaCheckoutAmEx, 'options' => [ 'storeInVault' => true ] ]); $this->assertTrue($result->success); $transaction = $result->transaction; $this->assertEquals('47.00', $transaction->amount); $visaCheckoutCardDetails = $transaction->visaCheckoutCardDetails; $this->assertSame(Braintree\CreditCard::AMEX, $visaCheckoutCardDetails->cardType); $this->assertNotNull($visaCheckoutCardDetails->bin); $this->assertNotNull($visaCheckoutCardDetails->callId); $this->assertNotNull($visaCheckoutCardDetails->cardType); $this->assertNotNull($visaCheckoutCardDetails->cardholderName); $this->assertNotNull($visaCheckoutCardDetails->commercial); $this->assertNotNull($visaCheckoutCardDetails->countryOfIssuance); $this->assertNotNull($visaCheckoutCardDetails->customerLocation); $this->assertNotNull($visaCheckoutCardDetails->debit); $this->assertNotNull($visaCheckoutCardDetails->durbinRegulated); $this->assertNotNull($visaCheckoutCardDetails->expirationDate); $this->assertNotNull($visaCheckoutCardDetails->expirationMonth); $this->assertNotNull($visaCheckoutCardDetails->expirationYear); $this->assertNotNull($visaCheckoutCardDetails->healthcare); $this->assertNotNull($visaCheckoutCardDetails->imageUrl); $this->assertNotNull($visaCheckoutCardDetails->issuingBank); $this->assertNotNull($visaCheckoutCardDetails->last4); $this->assertNotNull($visaCheckoutCardDetails->maskedNumber); $this->assertNotNull($visaCheckoutCardDetails->payroll); $this->assertNotNull($visaCheckoutCardDetails->prepaid); $this->assertNotNull($visaCheckoutCardDetails->productId); $this->assertNotNull($visaCheckoutCardDetails->token); } }