Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add validation for payment_pointer and clean its space before save * Add test for payment_pointer * fix payment pointer regexp * fix test * Remove space with strip Co-authored-by: Jacob Herrington <jacobherringtondeveloper@gmail.com> * Remove redundant test * Refactor clean_payment_pointer to strip_payment_pointer - Move callback from before_save to before_validation * Refactor PAYMENT_POINTER_REGEXP * style: remove last comment in regexp * fix typo Co-authored-by: Jacob Herrington <jacobherringtondeveloper@gmail.com>
- Loading branch information
1 parent
4b2b9eb
commit f7a9f0d
Showing
3 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters