cancelRelease() 공개 정적인 메소드

public static cancelRelease ( $transactionId )
예제 #1
0
 public function testCancelRelease_fromEscrowFailsIfTransactionNotSubmittedForRelease()
 {
     $transaction = $this->createEscrowedTransaction();
     $result = Braintree\Transaction::cancelRelease($transaction->id);
     $this->assertFalse($result->success);
     $errors = $result->errors->forKey('transaction')->onAttribute('base');
     $this->assertEquals(Braintree\Error\Codes::TRANSACTION_CANNOT_CANCEL_RELEASE, $errors[0]->code);
 }