PHP 클래스 Braintree\Result\Error

An Error Result will be returned from gateway methods when the gateway responds with an error. It will provide access to the original request. For example, when voiding a transaction, Error Result will respond to the void request if it failed: $result = Transaction::void('abc123'); if ($result->success) { Successful Result } else { Result\Error }
상속: extends Braintree\Base
파일 보기 프로젝트 열기: braintree/braintree_php

공개 프로퍼티들

프로퍼티 타입 설명
$success always false

공개 메소드들

메소드 설명
__construct ( array $response ) overrides default constructor
__toString ( ) : string create a printable representation of the object as: ClassName[property=value, property=value]
valueForHtmlField ( string $field ) : string return original value for a field For example, if a user tried to submit 'invalid-email' in the html field transaction[customer][email], $result->valueForHtmlField("transaction[customer][email]") would yield "invalid-email"

메소드 상세

__construct() 공개 메소드

overrides default constructor
public __construct ( array $response )
$response array gateway response array

__toString() 공개 메소드

create a printable representation of the object as: ClassName[property=value, property=value]
public __toString ( ) : string
리턴 string

valueForHtmlField() 공개 메소드

return original value for a field For example, if a user tried to submit 'invalid-email' in the html field transaction[customer][email], $result->valueForHtmlField("transaction[customer][email]") would yield "invalid-email"
public valueForHtmlField ( string $field ) : string
$field string
리턴 string

프로퍼티 상세

$success 공개적으로 프로퍼티

always false
public $success