Set AvailableCards

@var string $AvailableCards
@return CardPayment
178632
public function setAvailableCards(array $AvailableCards)
    {
        if (count($unavailable = array_diff($AvailableCards, self::getAvailableCardsList())) != 0) {
            throw new InvalidArgumentException('Invalid card type "' . implode(',', $unavailable) . '"');
        }
        $this->AvailableCards = implode(';', $AvailableCards);

        return $this;
    }
616898
public function setNotForPayment($notForPayment = true)
    {
        $this->notForPayment = $notForPayment;

        if ($notForPayment === true) {
            if ($this->getWithBank() === true) {
                $this->setBankData('XXXXXX', 'XXXXXX');
            }
            if ($this->getWithAccountNumber() === true) {
                $this->setAccountNumber('XXXXXX');
            }
            if ($this->getWithRecipient() === true) {
                $this->setRecipientData('XXXXXX', 'XXXXXX', 'XXXXXX', 'XXXXXX');
            }
            if ($this->getWithPayer() === true) {
                $this->setPayerData('XXXXXX', 'XXXXXX', 'XXXXXX', 'XXXXXX');
            }
            if ($this->getWithAmount() === true) {
                $this->setAmount('XXXXXXXX.XX');
            }
        }

        return $this;
    }
951179
protected function getAvailablePaymentList()
    {
        static $oPaymentList = null;

        if (null === $oPaymentList) {
            $sQuery = "SELECT * FROM `shop_payment_method` WHERE `shop_payment_method`.`active` = '1'";
            $oPaymentList = TdbShopPaymentMethodList::GetList($sQuery);
        }

        return $oPaymentList;
    }
1204980
public function cards($parameters = [])
    {
        $cards = [];

        $parameters = array_merge(['limit' => 24], $parameters);

        $stripeCards = $this->asStripeCustomer()->sources->all(
            ['object' => 'card'] + $parameters
        );

        if (! is_null($stripeCards)) {
            foreach ($stripeCards->data as $card) {
                $cards[] = new Card($this, $card);
            }
        }

        return new Collection($cards);
    }
161354
protected function buildSelectItemsFromAvailableTemplate($availableTemplates)
    {
        $newItems = [];
        $newItems['Use Default'] = ['Use Default', null];
        foreach ($availableTemplates as $availableTemplate) {
            $label = isset($availableTemplate['label']) ? $availableTemplate['label'] : '';
            $value = isset($availableTemplate['file']) ? $availableTemplate['file'] : '';
            $newItems[$label] = [$label, $value];
        }

        return $newItems;
    }
1351669
public function setCreditCard(CreditCard $creditCard)
    {
        $creditCard->setContext(Moip::PAYMENT);
        $this->data->fundingInstrument->method = self::METHOD_CREDIT_CARD;
        $this->data->fundingInstrument->creditCard = $creditCard->getData();
        //$this->setCreditCardHolder($holder);

        return $this;
    }
710115
public function updateCardFromStripe()
    {
        $defaultCard = $this->defaultCard();

        if ($defaultCard) {
            $this->fillCardDetails($defaultCard)->save();
        } else {
            $this->forceFill([
                'card_brand' => null,
                'card_last_four' => null,
            ])->save();
        }

        return $this;
    }
889050
public function setCardNumber($cardNumber)
    {
        if (!preg_match('/^[0-9]+$/', $cardNumber = str_replace('-', '', $cardNumber))) {
            throw new \InvalidArgumentException('The card number must be numerical.');
        }

        $this->cardNumber = $cardNumber;
        
        return $this;
    }
1243879
public static function select($cardId) {
    $card = self::load($cardId);

    $available = array_keys($card['usable']);
    $selected  = Rand::int(0, count($available)-1);

    return $available[$selected];
  }
1281789
public function setNotForPayment($notForPayment = true)
    {
        parent::setNotForPayment($notForPayment);

        if ($notForPayment === true) {
            if ($this->getWithReferenceNumber() === true) {
                $this->setReferenceNumber('XXXXXXXXXXXXXXXXXXXX');
            }
            if ($this->getWithBankingCustomerId() === true) {
                $this->setBankingCustomerId('XXXXXX');
            }
        }

        return $this;
    }
401204
public function setAmountDue($amountDue)
    {
        $this->amount_due = $amountDue;

        // If we have no amount_due, we can consider this Invoice to be settled
        if (!$this->getAmountDue()) {
            $this->setSettledAt(new \DateTime());
        }

        return $this;
    }
1186776
public function create($creditcard, $options = [])
    {
        $params = [];

        $params['transaction'] = 'fail';

        if ($creditcard === 'success') {
            $params['transaction'] = 'success';
        }

        return $this->gateway->commit('post', 'create', $params);
    }
710861
public function setCard(?array $data): PaymentInstrumentInterface
    {
        $this->setLast4Digits($data['last_4_digits']);
        $this->setCardType($data['type']);

        return $this;
    }
317356
public function setCode($code)
    {
        if (null !== $code && !in_array(strtoupper($code), self::$availableCurrencies)) {
            throw new \Bitpay\Client\ArgumentException(
                sprintf('The currency code "%s" is not supported.', $code)
            );
        }

        $this->code = strtoupper($code);

        return $this;
    }
52983
public function setAvailableDate(\Lullabot\Mpx\DataService\DateTime\DateTimeFormatInterface $availableDate)
    {
        $this->availableDate = $availableDate;
    }
708623
public function store(CreditCard $creditcard, $options = array())
    {
        $this->post = array();

        $this->addCreditcard($creditcard);

        return $this->commit('credit_cards');
    }
731460
public function setAcceptedCardinalities(array $acceptedCardinalities)
    {
        foreach ($acceptedCardinalities as $cardinality) {
            if (!in_array($cardinality, OperatorCardinality::asArray(), true)) {
                $msg = "Accepted cardinalities must be values from the Cardinality enumeration, '" . $cardinality . "' given";
                throw new InvalidArgumentException($msg);
            }
        }

        $this->acceptedCardinalities = $acceptedCardinalities;
    }