You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been debugging SagePay callback errors which were giving me the error Undefined index: CardType in Academe/SagePay/Server.php on line 247
I believe this is caused by the duplicated CardType in Metadata/Transaction.php (noted in comment on line 23) because the second CardType does not contain the "tamper": true, field (the first one does).
Since the key is duplicated, the first one is ignored - I'd suggest we merge the two card type lists and consider how we might separate them again in future if we need to have different data types per source (the validation will be slightly less strict, but at the moment I'm not sure how or why it would even be working for server-notification - the first one.
The text was updated successfully, but these errors were encountered:
I've been debugging SagePay callback errors which were giving me the error
Undefined index: CardType
inAcademe/SagePay/Server.php on line 247
I believe this is caused by the duplicated CardType in
Metadata/Transaction.php
(noted in comment on line 23) because the second CardType does not contain the"tamper": true,
field (the first one does).Since the key is duplicated, the first one is ignored - I'd suggest we merge the two card type lists and consider how we might separate them again in future if we need to have different data types per source (the validation will be slightly less strict, but at the moment I'm not sure how or why it would even be working for
server-notification
- the first one.The text was updated successfully, but these errors were encountered: