Omnipay\Common\Message\AbstractRequest::getCard PHP Метод

getCard() публичный Метод

Get the card.
public getCard ( ) : CreditCard
Результат Omnipay\Common\CreditCard
    public function getCard()
    {
        return $this->getParameter('card');
    }

Usage Example

 public function testGetDataNullBillingAddress2()
 {
     $card = $this->request->getCard();
     // This emulates not setting the billing address 2 at all
     // (it defaults to null).
     $card->setBillingAddress2(null);
     $data = $this->request->getData();
     $this->assertNull($data['BillingAddress2']);
     // This tests that the BillingAddress2 may be left unset,
     // which defaults to null. When it is sent to SagePay, it gets
     // converted to an empty string. I'm not clear how that would be
     // tested.
 }
All Usage Examples Of Omnipay\Common\Message\AbstractRequest::getCard