My FaaS form posts to Click and Pledge successfully and, appropriately, redirects back to my form on an error (e.g. card declined). I validate the fields with javascript - to guard against missing or improperly-entered data - but can't, of course, guard against an invalid credit card. Is there a way to have the post values sent in the request sent to https://faas.cloud.clickandpledge.com sent back to my form, so that I can repopulate the fields when displaying the error - and not have the user have to retype all of the data if they made a one-digit-off error in, say, typing the credit card?
Announcement
Collapse
No announcement yet.
Preserving Form Field Values on Error
Collapse
X
-
Good day!
no - at this time we don't post back all posted information. We simply post back the authorization code, and reason for error or decline as well as the reference ID if sent.
One way to do this is to post your information to another page, save the data in sessions and simply post the information to us after saving the sessions. Once we post back you have all the info in sessions.
I don't recommend you collect the credit card information in the first page since you do NOT want to save CC info in session for security reasons. If we post back to your error page you can show all the entered values in pre-populated forms and ask for the CC info again.
Hope that helps.
We considered this idea before but it is easy to save sessions from page to page so there is really no need for us to post it back.
Please let us know if we can be of more assistance.Regards,
Click & Pledge Support Department
Join us @ the educational webinars: https://clickandpledge.com/webinars/
Live Support- read more: https://support.clickandpledge.com/s/article/general-information-live-support/
-
Thanks for the reply. Will it work to post data to your server via cURL or something similar? If so, do you have any example code for this type of thing? Thanks again.
~Brian
Originally posted by Support.Department View PostGood day!
no - at this time we don't post back all posted information. We simply post back the authorization code, and reason for error or decline as well as the reference ID if sent.
One way to do this is to post your information to another page, save the data in sessions and simply post the information to us after saving the sessions. Once we post back you have all the info in sessions.
I don't recommend you collect the credit card information in the first page since you do NOT want to save CC info in session for security reasons. If we post back to your error page you can show all the entered values in pre-populated forms and ask for the CC info again.
Hope that helps.
We considered this idea before but it is easy to save sessions from page to page so there is really no need for us to post it back.
Please let us know if we can be of more assistance.
Comment
Comment