<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: Credit Card Validating</title>
		<link>https://legacy.forums.gravityhelp.com/topic/credit-card-validating</link>
		<description>Gravity Support Forums Topic: Credit Card Validating</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 21:42:01 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/credit-card-validating" rel="self" type="application/rss+xml" />

		<item>
			<title>tmort on "Credit Card Validating"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/credit-card-validating#post-53949</link>
			<pubDate>Sun, 01 Apr 2012 10:40:34 +0000</pubDate>
			<dc:creator>tmort</dc:creator>
			<guid isPermaLink="false">53949@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;@TCS Thanks for the idea! I'll try this out and let you know what my progress is. &#60;/p&#62;
&#60;p&#62;Thanks again.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>tcs on "Credit Card Validating"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/credit-card-validating#post-53906</link>
			<pubDate>Sat, 31 Mar 2012 01:56:37 +0000</pubDate>
			<dc:creator>tcs</dc:creator>
			<guid isPermaLink="false">53906@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;@tmort - Yes the cc field looks nice. I can get the cc details encoded (encrypted would be better) and sent via email. Hopefully you or someone can work out how to save it with the form. I was trying to save the details into a hidden or new field and keep and leave the rest alone&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;//Turn on our credit card field for admin and front end
add_action(&#38;quot;gform_enable_credit_card_field&#38;quot;, &#38;quot;enable_creditcard&#38;quot;);
function enable_creditcard($is_enabled){
    return true;
}
//Email encoded card details when the form is submitted.
add_action(&#38;#39;gform_after_submission&#38;#39;, &#38;#39;email_encoded_cc&#38;#39;, 10, 2);
function email_encoded_cc($entry, $form) {
function get_creditcard_field($form){
        $fields = GFCommon::get_fields_by_type($form, array(&#38;quot;creditcard&#38;quot;));
        return empty($fields) ? false : $fields[0];
    }
        $card_field = get_creditcard_field($form);
        $card_number = rgpost(&#38;quot;input_{$card_field[&#38;quot;id&#38;quot;]}_1&#38;quot;);
        $expiration_date = rgpost(&#38;quot;input_{$card_field[&#38;quot;id&#38;quot;]}_2&#38;quot;);
        $expire_month = $expiration_date[0];
        $expire_year = $expiration_date[1];
        $security_code = rgpost(&#38;quot;input_{$card_field[&#38;quot;id&#38;quot;]}_3&#38;quot;);
        $card_name = rgpost(&#38;quot;input_{$card_field[&#38;quot;id&#38;quot;]}_5&#38;quot;);
$cc_detail_string =  &#38;quot;CCName $card_name CCNum $card_number CCexp $expire_month-$expire_year CCV $security_code  &#38;quot; ;
//remember base 64 is not encryption - just encoding!
$encoded_cc_detail_string = base64_encode($cc_detail_string);
//send encoded cc details via email
$to = &#38;quot;whoever@wherever.com&#38;quot;; /*your email here*/
$subject = &#38;quot;For your eyes only&#38;quot;;
$body = $cc_detail_string; /*or encoded string*/
$message = &#38;quot;Here are some cc details $body&#38;quot;;
$from = &#38;quot;someonelse@example.com&#38;quot;;
$headers = &#38;quot;From:&#38;quot; . $from;
mail($to,$subject,$message,$headers);
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>tmort on "Credit Card Validating"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/credit-card-validating#post-52984</link>
			<pubDate>Tue, 20 Mar 2012 14:37:49 +0000</pubDate>
			<dc:creator>tmort</dc:creator>
			<guid isPermaLink="false">52984@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Has anyone come across a way to capture, encode and save the CC data? I've built custom CC fields and used the gform_save_field_value hook to base_64 encode the results (to be saved in wordpress and decrypted at a later date), but after seeing that there is a CC form already built in, I'd like to just use that and encrypt the data and save it. Carl mentions above that this is more for testing that actual use and it will not save the data. Any way I can capture it using a custom function?&#60;/p&#62;
&#60;p&#62;Thanks!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jessalouisa on "Credit Card Validating"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/credit-card-validating#post-50783</link>
			<pubDate>Tue, 28 Feb 2012 02:00:19 +0000</pubDate>
			<dc:creator>jessalouisa</dc:creator>
			<guid isPermaLink="false">50783@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi, A few questions on this CC topic...&#60;/p&#62;
&#60;p&#62;1. Where is this form_detail.php located, to paste the CC code snippet? &#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_enable_credit_card_field&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_enable_credit_card_field&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;2. And, are you saying there will be a &#34;force ssl&#34; check box at the level of the CC field in the form itself?&#60;/p&#62;
&#60;p&#62;3. Also, what is the scope of this field? Once user submits form, the info is NOT saved? Is it at least &#34;captured&#34; (sent to my email) for admin to view - or is it lost in thin air once the form is submitted? Its purpose is simply to make sure there are no errors? Which credit cards does it validate?&#60;/p&#62;
&#60;p&#62;4. Is this the only way to validate or &#34;take&#34; a credit card without a developer license? &#60;/p&#62;
&#60;p&#62;thanks :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>tcs on "Credit Card Validating"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/credit-card-validating#post-49171</link>
			<pubDate>Sat, 11 Feb 2012 21:15:47 +0000</pubDate>
			<dc:creator>tcs</dc:creator>
			<guid isPermaLink="false">49171@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;After some experimenting the wordpress https plugin is fixing the problem of ampersand substitution on the query string - so you can still prepopulate using url with https. &#60;/p&#62;
&#60;p&#62;Just be sure to check the force ssl box on the wordpress page containing your form as well as within your gravity form credit card field. The problem I had seems to only occur if just the gravity forms force ssl is operating (causing a redirect I believe).
&#60;/p&#62;</description>
		</item>
		<item>
			<title>tcs on "Credit Card Validating"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/credit-card-validating#post-48984</link>
			<pubDate>Fri, 10 Feb 2012 03:03:34 +0000</pubDate>
			<dc:creator>tcs</dc:creator>
			<guid isPermaLink="false">48984@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Correction to above post. Force ssl alters ampersands in the query string on chrome, safari and FIREFOX (only ie not affected) so that prepopulation via url no longer works.&#60;/p&#62;
&#60;p&#62;I think the  the url string using ampersand amp semicolon is still valid (as is a single ampersand) but prepopulation is not working unless the url is constructed using single ampersands. &#60;/p&#62;
&#60;p&#62;Can the force ssl be modified to not change the ampersand or can gravity forms be changed to still prepopulate if the query string contains this alternatte variant (ampersand amp semicolon). ? Is there another way to build the query string (maybe no ampersands ?).
&#60;/p&#62;</description>
		</item>
		<item>
			<title>tcs on "Credit Card Validating"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/credit-card-validating#post-48811</link>
			<pubDate>Thu, 09 Feb 2012 07:25:35 +0000</pubDate>
			<dc:creator>tcs</dc:creator>
			<guid isPermaLink="false">48811@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I am able to submit using test credit card numbers ok. Thank you  - but have encountered another problem. &#60;/p&#62;
&#60;p&#62;With force ssl enabled the page switches to https and refreshes. I am prepopulating some fields via the url query string but it is getting slightly changed when the page switches to https. This is happening on Chrome and Safari but not on IE or Firefox.&#60;/p&#62;
&#60;p&#62;The problem is all my single character ampersands get changed to the other type which is the ampersand followed with the word amp and a semi colon (during change to https on Chrome and Safari) and when they are ~&#38;amp;amp~ on these browsers the fields do not prepopulate.&#60;/p&#62;
&#60;p&#62;Hopefully you can see this for yourself by trying the non https link below on chrome or safari and watch when it changes to https. At that time the ampersand also changes to the other type ( and then the form no longer prepopulates).&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gymbaroo.net.au/hills/Class-Bookings/?status=new&#38;amp;class_day=Thursday&#38;amp;start_date=16%2F02%2F2012&#38;amp;introfee=75&#38;amp;termfee=156&#38;amp;location=Rouse+Hill+Term+1&#38;amp;class_start=10%3A20+AM&#34; rel=&#34;nofollow&#34;&#62;http://www.gymbaroo.net.au/hills/Class-Bookings/?status=new&#38;amp;class_day=Thursday&#38;amp;start_date=16%2F02%2F2012&#38;amp;introfee=75&#38;amp;termfee=156&#38;amp;location=Rouse+Hill+Term+1&#38;amp;class_start=10%3A20+AM&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;With force SSL not used I do not get the problem.  I have enabled and disabled the wordpress https plugin  also and it makes not difference.&#60;/p&#62;
&#60;p&#62;Alex - you should still have admin account for this url as provided earlier if needed.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alex Cancado on "Credit Card Validating"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/credit-card-validating#post-48467</link>
			<pubDate>Mon, 06 Feb 2012 13:48:41 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">48467@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;@tcs, I was able to get the form to submit successfully using a test credit card number. Are you still having problems with this?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>tcs on "Credit Card Validating"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/credit-card-validating#post-48240</link>
			<pubDate>Fri, 03 Feb 2012 01:32:54 +0000</pubDate>
			<dc:creator>tcs</dc:creator>
			<guid isPermaLink="false">48240@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Alex,&#60;/p&#62;
&#60;p&#62;I'm running 1.6.2 and have emailed an admin login just now. Thanks for your help.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alex Cancado on "Credit Card Validating"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/credit-card-validating#post-47990</link>
			<pubDate>Wed, 01 Feb 2012 11:04:31 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">47990@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;@tcs, are you running our latest public beta release, or an earlier alpha? Problems with validation on a multi-page form was something that was recently fixed. If you are running our latest version, I will need to take a closer look at your system because I am having trouble replicating it locally (it works fine in my environment). If you can send me an admin login to your WP dashboard to &#60;a href=&#34;mailto:alex@rocketgenius.com&#34;&#62;alex@rocketgenius.com&#60;/a&#62;, that will be very helpful.&#60;/p&#62;
&#60;p&#62;Thanks,&#60;br /&#62;
Alex.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
