Announcement

Collapse

Information Needed

See more
See less

Code to clean up credit card dashes and spaces?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • CnP.Support
    replied
    Good day!

    The best way to deal with this is to add a validating script before posting it to the API.

    A quick search: https://www.google.com/webhp?sourcei...rd%20validator

    For example this one appears to be interesting: https://github.com/PawelDecowski/jQu...CardValidator/

    there are a ton of these validating scripts. The best way is to detect the problem before posting.

    Hope this helps.

    Leave a comment:


  • Maggie
    replied
    Here's one of our pages-- not sure if this is what you need.

    https://thenetwork.secure.force.com/...n/donation_edu

    Leave a comment:


  • CnP.Support
    replied
    Good day!

    What is the link to your form?

    Leave a comment:


  • Maggie
    started a topic Code to clean up credit card dashes and spaces?

    Code to clean up credit card dashes and spaces?

    Hi, we're noticing that a lot of our donors have had errors donating on our website because they normally put dashes or spaces in between the numbers on their credit card.

    Is there any existing code we can add into our Salesforce Payment Pool page that can automatically clean up the dashes and spaces when our donors hit the submit button? I understand that this is something that has been done on other processing pages and I would love to know if this can be done in C&P.
Working...
X