File manager - Edit - /home/opticamezl/www/newok/libraries/fabrik/vendor/omnipay/coinbase/src/Message/PurchaseResponse.php
Back
<?php namespace Omnipay\Coinbase\Message; use Omnipay\Common\Message\RedirectResponseInterface; /** * Coinbase Purchase Response */ class PurchaseResponse extends Response implements RedirectResponseInterface { protected $redirectEndpoint = 'https://coinbase.com/checkouts'; public function isSuccessful() { return false; } public function isRedirect() { return isset($this->data['success']) && $this->data['success']; } public function getRedirectMethod() { return 'GET'; } public function getRedirectUrl() { if ($this->isRedirect()) { return $this->redirectEndpoint.'/'.$this->getTransactionReference(); } } public function getRedirectData() { return null; } public function getTransactionReference() { if (isset($this->data['button']['code'])) { return $this->data['button']['code']; } } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.23 | Generation time: 0.04 |
proxy
|
phpinfo
|
Settings