Reply
Highlighted
Member
Posts: 2
Registered: ‎12-03-2018

Call to a member function getCardNumber()

Hi, I am trying to build an implimentation into the codeIgniter (3x) framework. I've built an 'Authorize_net' library and am successfully accessing the library. However, I am currently getting this error:

 

[03-Dec-2018 15:18:22 UTC] PHP Fatal error:  Call to a member function getCardNumber() on string in /home/<pathtosite>/vendor/jms/serializer/src/JMS/Serializer/Metadata/PropertyMetadata.php on line 104

 

Any pointers on how to resolve?

 

Thanks!

Highlighted
Member
Posts: 2
Registered: ‎12-03-2018

Re: Call to a member function getCardNumber()

This is solved.

It was this that was set wrong (correction below):

$paymentOne->setCreditCard($creditCard);