Devuelve un {Array} de objetos tipo {Payment}

 @return [Array] Objetos de tipo {Payment}
968027
def payments
      return @payments if @payments

      @payments = []
      begin
        if dm_hash["Report"]["Pays"]
          pays = dm_hash["Report"]["Pays"]["Pay"]

          if pays
            case pays.class.name
            when "Hash"
              @payments << Payment.new(pays)
            when "Array"
              pays.each { |pay| @payments << Payment.new(pay) }
            end
          end
        end
      rescue Exception => e
        raise MalformedResponseError.new("Error procesando pagos: #{e.message}")
      end
      @payments
    end
783498
def result(success, data = nil)
      PayDirt::Result.new(success: success, data: data)
    end
1345440
final protected function cards() {
		$result = []; /** @var array(string => string) $result */
		$m = $this->m(); /** @var Method $m */
		/**
		 * 2017-07-28
		 * The `$m instanceof Method` check is for the «Square» module:
		 * its server part does not use the Df_StripeClone module, but the client part does use it.
		 * So we need this the `$m instanceof Method` check to evade the error:
		 * «Cannot instantiate abstract class Df\StripeClone\Facade\Customer
		 * in mage2pro/core/Payment/Facade.php:88»: https://github.com/mage2pro/square/issues/2
		 */
		if ($m instanceof Method && ($customerId = df_ci_get($this->m())) /** @var string|null $customerId */) {
			$this->s()->init();
			$fc = FCustomer::s($m); /** @var FCustomer $fc */
			if ($customer = $fc->get($customerId) /** @var object|null $customer */) {
				$result = array_map(function(ICard $c) use($m) {
					/**
					 * 2017-07-24
					 * Unfortunately, the one-liner fails on PHP 5.6.30:
					 * return ['id' => $c->id(), 'label' => (CF::s($m, $c))->label()];
					 * «syntax error, unexpected '->' (T_OBJECT_OPERATOR), expecting ']'»
					 * https://github.com/mage2pro/core/issues/16
					 * See also: https://github.com/mage2pro/core/issues/15
					 *
					 * 2017-07-31
					 * Interestingly, the following code works on all PHP versions >= 5.4.0:
					 * class A {function f() {return __METHOD__;}
					 * echo (new A)->f();
					 * https://3v4l.org/nANqg
					 *
					 * The following code works on all PHP versions >= 5.0.0:
					 *	class A {
					 *		function f() {return __METHOD__;}
					 *		static function s() {return new self;}
					 *	}
					 *	echo A::s()->f();
					 * https://3v4l.org/1qr48
					 *
					 * The same is true for the following code:
					 *	class A {
					 *		function f() {return $this->_v;}
					 *		final protected function __construct($v) {$this->_v = $v;}
					 *		private $_v;
					 *		final static function s($v) {return new self($v);}
					 *	}
					 *	echo A::s('test')->f();
					 * https://3v4l.org/2E8H6
					 *
					 * So, I was unable to reproduce the issue...
					 * Maybe the problem customer uses a non-standard (patched) PHP version?
					 *
					 * 2017-11-08
					 * Note 1.
					 * One-liners like (!($e = $a->e())->b()) are really not supported by PHP < 7:
					 * https://3v4l.org/lJjvS
					 * Note 2.
					 * At the same time, some `))->` one-liners are supported by PHP >= 5.4, e.g:
					 * static function p() {return (new self())->b();}
					 * https://3v4l.org/LJlDE  
					 * Note 3.   
					 * If we add extra brackets to the code from the Note 2,
					 * then the code will be incompatible with PHP < 7:
					 * static function p() {return ((new self()))->b();}
					 */
					$cf = CF::s($m, $c); /** @var CF $cf */
					return ['id' => $c->id(), 'label' => $cf->label()];
				}, $fc->cards($customer));
			}
			else {
				// 2017-02-24
				// We can get here, for example, if the store's administrator has switched
				// his Stripe account in the extension's settings: https://mage2.pro/t/3337
				df_ci_save($this->m(), null);
			}
		}
		return $result;
	}
441698
function f_urun_paylas(_paylas) {

        function _f_urun_paylas(_from, _to, _ids) {

            return result.dbQ.Q.all([
                result.dbQ.del(result.kp.temp.ssetTahtaUrun(_to)),
                result.dbQ.sadd(result.kp.tahta.ssetOzelUrunleri(_to, true), _ids)
            ]);
        }

        if (Array.isArray(_paylas.To) && _paylas.To.length > 0) {
            var arr = _paylas.To.map(function (_tahta_id) {
                return _f_urun_paylas(_paylas.From, _tahta_id, _paylas.Ids);
            });
            return result.dbQ.Q.all(arr);

        } else {
            return _f_urun_paylas(_paylas.From, _paylas.To, _paylas.Ids);
        }
    }
1357428
def to_request tipo
      customer = {
        customer_id:      self.customer_id.to_s,
        first_name:       self.first_name.to_s,
        last_name:        self.last_name.to_s,
        email:            self.email.to_s,
        document_type:    self.tipos_de_cliente_to_request.to_s,
        document_number:  self.document_number.to_s,
        phone_number:     self.phone_number.to_s,
      }

      if tipo == :customer
          customer.merge!({"address" => address.to_request,})
      elsif tipo == :payment
          customer.merge!({"name" => self.name.to_s,})
          customer.merge!({"billing_address" => address.to_request,})
      end

      return customer
    end
427493
protected function getPaymentTransactionStructure()
    {
        return [
            'amount'              => $this->transformAmount($this->amount, $this->currency),
            'currency'            => $this->currency,
            'customer_account_id' => $this->customer_account_id,
            'return_url'          => $this->return_url,
            'customer_email'      => $this->customer_email,
            'customer_phone'      => $this->customer_phone,
            'billing_address'     => $this->getBillingAddressParamsStructure(),
            'shipping_address'    => $this->getShippingAddressParamsStructure()
        ];
    }
398993
protected function getPaymentTransactionStructure()
    {
        return [
            'return_success_url' => $this->return_success_url,
            'return_failure_url' => $this->return_failure_url,
            'amount'             => $this->transformAmount($this->amount, $this->currency),
            'currency'           => $this->currency,
            'product_code'       => $this->product_code,
            'product_num'        => $this->product_num,
            'product_desc'       => $this->product_desc,
            'customer_email'     => $this->customer_email,
            'customer_phone'     => $this->customer_phone,
            'billing_address'    => $this->getBillingAddressParamsStructure(),
            'shipping_address'   => $this->getShippingAddressParamsStructure()
        ];
    }
918968
public function getUserPayments()
    {
        if ($this->_oUserPayments == null) {
            $this->_oUserPayments = false;
            if ($oUser = $this->getUser()) {
                $sTplLang = \OxidEsales\Eshop\Core\Registry::getLang()->getObjectTplLanguage();
                $sPaymentId = $this->getPaymentId();
                $this->_oUserPayments = $oUser->getUserPayments();
                // generate selected
                foreach ($this->_oUserPayments as $oUserPayment) {
                    $oPayment = oxNew(\OxidEsales\Eshop\Application\Model\Payment::class);
                    $oPayment->setLanguage($sTplLang);
                    $oPayment->load($oUserPayment->oxuserpayments__oxpaymentsid->value);
                    $oUserPayment->oxpayments__oxdesc = clone $oPayment->oxpayments__oxdesc;
                    if ($oUserPayment->oxuserpayments__oxid->value == $sPaymentId) {
                        $oUserPayment->selected = 1;
                        break;
                    }
                }
            }
        }

        return $this->_oUserPayments;
    }
317592
public function getPaymorrowBasketLineItems()
    {
        /** @var OxpsPaymorrowOxBasket|oxBasket $this */

        $aBasketContents = $this->getContents();

        if ( empty( $aBasketContents ) ) {
            return array();
        }

        $iLineItemCount = 1; // must start from 1
        $aLineItems     = array();

        /** @var oxBasketItem|OxpsPaymorrowOxBasketItem $oBasketItem */
        foreach ( $aBasketContents as $oBasketItem ) {
            $aLineItems = array_merge( $aLineItems, $oBasketItem->getPaymorrowBasketItemSummary( $iLineItemCount ) );

            $iLineItemCount++;
        }

        /**
         * Checks for additional Payment, Wrapping, Gift Card, Delivery/Shipping, Vouchers,
         * TS Protection - costs
         */
        $aLineItems = array_merge( $aLineItems, $this->_getPaymorrowAdditionalCostsSummary( $iLineItemCount ) );

        return $aLineItems;
    }
23561
public function getBackends()
    {
        $backends = array_map(
            function ($backend) {
                $new = (object)(array_merge(reset($backend), ['_id'=>array_keys($backend)[0]]));
                return $new;
            },
            $this['payment_backends']
        );
        // return backends (filtered if requested)
        return ($filters = func_get_args()) ? array_filter($backends, self::combineFilters(self::argsToVariadic($filters))) : $backends;
    }
1299522
def append(*values, to: nil)
      keys = Array(to)
      set(*keys, value: Array(fetch(*keys)) + values)
    end
1121777
public function GetAvailablePaymentMethods()
    {
        $oList = null;
        if ($this->GetActiveShippingGroup()) {
            $oList = $this->GetActiveShippingGroup()->GetValidPaymentMethods();
        }

        return $oList;
    }
856039
def release_payment(options = {})
      response = JSON.parse(@client.patch("items/#{send(:id)}/release_payment", options).body)
      @attributes = response['items']
      true
    end
286188
def get_method_list():
    '''
    
    '''
    methods = [str(_('Cash')),str(_('Check')),str(_('Bank/Debit Card')),str(_('Other'))]
    methods += ExpenseItem.objects.order_by().values_list('paymentMethod',flat=True).distinct()
    methods += RevenueItem.objects.order_by().values_list('paymentMethod',flat=True).distinct()
    methods_list = list(set(methods))

    if None in methods_list:
        methods_list.remove(None)

    return methods_list
1224139
public function toOptionArray() {
        return [
            [
                'value' => self::MODE_CARDS,
                'label' => __('Cards')
            ],
            [
                'value' => self::MODE_MIXED,
                'label' => __('Mixed')
            ],
            [
                'value' => self::MODE_LOCAL,
                'label' => __('Local payments')
            ] 
        ];
    }
284154
def payment_detail(payment_id)
      payment_id = payment_id.payment_id if payment_id.instance_of? Instamojo::Payment
      get("payments/#{payment_id}")
      @response.success? ? Instamojo::Payment.new(@response.body[:payment], self) : @response
    end
562174
function f_kurum_paylas(_paylas) {
        console.log("f_db_kurum_paylas");
        /**
         *
         * @param {integer|integer[]} _to
         * @param {integer} _from
         * @param {integer[]} _ids
         * @returns {*}
         */
        function f_kurum_paylas(_to, _from, _ids) {
            return result.dbQ.Q.all([
                result.dbQ.del(result.kp.temp.ssetTahtaKurum(_to)),
                result.dbQ.sadd(result.kp.tahta.ssetOzelKurumlari(_to, true), _ids)
            ]);
        };

        if (Array.isArray(_paylas.To) && _paylas.To.length > 0) {
            /*    var arr = _paylas.To.map(function (_elm) {
             return f_kurum_paylas(_paylas.From, _elm, _paylas.Ids);
             });

             return result.dbQ.Q.all(arr);*/

            return _paylas.To.mapX(null, f_kurum_paylas, _paylas.From, _paylas.Ids).allX();

        } else {
            return f_kurum_paylas(_paylas.To, _paylas.From, _paylas.Ids);
        }
    }