for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @link https://github.com/phpviet/omnipay-momo
* @copyright (c) PHP Viet
* @license [MIT](http://www.opensource.org/licenses/MIT)
*/
namespace Omnipay\MoMo\Message\POS;
use Omnipay\MoMo\Message\AbstractResponse;
* @author Vuong Minh <[email protected]>
* @since 1.0.0
class PurchaseResponse extends AbstractResponse
{
* {@inheritdoc}
public function getCode(): ?string
return $this->data['status'] ?? null;
}
public function getMessage(): ?string
return $this->data['message']['description'] ?? null;
public function getTransactionReference(): ?string
return $this->data['message']['transid'] ?? null;