tolzhabayev / sagepayForm-php

A simple class to integrate sagepayForm into your website
40 stars 26 forks source link

Max length settings are not enforced #27

Open mattfletcher opened 5 years ago

mattfletcher commented 5 years ago

Sage Pay limits the length of most of the fields submitted. They are detailed here:

https://www.sagepay.co.uk/file/14206/download-document/FORM_Integration_and_Protocol_Guidelines_050115.pdf?token=jwimtbXQc-MmWWdGJHNJZFeshXg2re_chVFqiebQ2wc

As far as I can see, this library doesn't check for that. Failing to limit them will cause the POST to fail.