File manager - Edit - /home/premiey/www/wp-content/plugins/ameliabooking/vendor/omnipay/mollie/src/Message/Response/FetchPaymentMethodsResponse.php
Back
<?php namespace Omnipay\Mollie\Message\Response; use Omnipay\Common\Message\FetchPaymentMethodsResponseInterface; use Omnipay\Common\PaymentMethod; /** * @see https://docs.mollie.com/reference/v2/methods-api/list-methods */ class FetchPaymentMethodsResponse extends AbstractMollieResponse implements FetchPaymentMethodsResponseInterface { /** * Return available payment methods as an associative array. * * @return PaymentMethod[] */ public function getPaymentMethods() { if (isset($this->data['_embedded']["methods"]) === false) { return []; } $paymentMethods = []; foreach ($this->data['_embedded']["methods"] as $method) { $paymentMethods[] = new PaymentMethod($method['id'], $method['description']); } return $paymentMethods; } }
| ver. 1.4 |
Github
|
.
| PHP 5.4.45 | Generation time: 0 |
proxy
|
phpinfo
|
Settings