threeDSecureMerchantAccountId() 공개 정적인 메소드

public static threeDSecureMerchantAccountId ( )
예제 #1
0
 public function testSale_returnsErrorsWhenThreeDSecurePassThruEciFlagIsInvalid()
 {
     $result = Braintree\Transaction::sale(['merchantAccountId' => Test\Helper::threeDSecureMerchantAccountId(), 'amount' => '100.00', 'creditCard' => ['number' => '5105105105105100', 'expirationDate' => '05/09'], 'threeDSecurePassThru' => ['eciFlag' => 'bad_eci_flag', 'cavv' => 'some_cavv', 'xid' => 'some_xid']]);
     $this->assertFalse($result->success);
     $errors = $result->errors->forKey('transaction')->forKey('threeDSecurePassThru');
     $this->assertEquals(Braintree\Error\Codes::TRANSACTION_THREE_D_SECURE_ECI_FLAG_IS_INVALID, $errors->onAttribute("eciFlag")[0]->code);
 }