Pop\Payment\Payment::getCode PHP Метод

getCode() публичный Метод

Get specific response code from a field in the array
public getCode ( string $key ) : string
$key string
Результат string
    public function getCode($key)
    {
        return $this->adapter->getCode($key);
    }

Usage Example

Пример #1
0
 public function testGetCode()
 {
     $p = new Payment(new Authorize('API_LOGIN_ID', 'TRANS_KEY', Payment::TEST));
     $this->assertNull($p->getCode(0));
 }