File manager - Edit - /home/premiey/www/wp-content/plugins/ameliabooking/vendor/omnipay/mollie/src/Message/Response/FetchCustomerMandatesResponse.php
Back
<?php namespace Omnipay\Mollie\Message\Response; /** * @see https://docs.mollie.com/reference/v2/mandates-api/list-mandates */ class FetchCustomerMandatesResponse extends AbstractMollieResponse { public function getMandates() { if (isset($this->data['_embedded']['mandates'])) { return $this->data['_embedded']['mandates']; } } public function hasValidMandates() { if ($mandates = $this->getMandates()) { foreach ($mandates as $mandate) { if ($mandate['status'] == "valid") { return true; } } } return false; } }
| ver. 1.4 |
Github
|
.
| PHP 5.4.45 | Generation time: 0 |
proxy
|
phpinfo
|
Settings