$result = Transaction::void('abc123');
if ($result->success) {
Successful Result
} else {
Result\Error
}
Datei anzeigen
Open project: braintree/braintree_php
Property | Type | Description | |
---|---|---|---|
$success | always false |
Method | Description | |
---|---|---|
__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" |
public __construct ( array $response ) | ||
$response | array | gateway response array |
public __toString ( ) : string | ||
return | string |
public valueForHtmlField ( string $field ) : string | ||
$field | string | |
return | string |