http://docs.360works.com/index.php?title=InternetSecure&feed=atom&action=historyInternetSecure - Revision history2024-03-28T23:14:33ZRevision history for this page on the wikiMediaWiki 1.19.1http://docs.360works.com/index.php?title=InternetSecure&diff=1905&oldid=prevVal: /* Processing Payments */2016-01-07T20:43:48Z<p><span dir="auto"><span class="autocomment">Processing Payments</span></span></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 20:43, 7 January 2016</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 40:</td>
<td colspan="2" class="diff-lineno">Line 40:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>*dollar amount</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>*dollar amount</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>*credit card number</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>*credit card number</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>*credit card expiration date</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>*credit card expiration date <ins class="diffchange diffchange-inline">(Format the expiration date as MMYY or MM/YY or MM/DD/YY)</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>The CCProcessPayment function will process a transaction and return a transaction ID. This function returns a transaction ID if the transaction is successful or the word ERROR if the transaction fails. For detailed information about the most recent transaction failure, call the CCLastError function before calling any other transaction-processing function.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>The CCProcessPayment function will process a transaction and return a transaction ID. This function returns a transaction ID if the transaction is successful or the word ERROR if the transaction fails. For detailed information about the most recent transaction failure, call the CCLastError function before calling any other transaction-processing function.</div></td></tr>
</table>Valhttp://docs.360works.com/index.php?title=InternetSecure&diff=876&oldid=prevSarah: /* InternetSecure */2013-11-07T20:56:27Z<p><span dir="auto"><span class="autocomment">InternetSecure</span></span></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 20:56, 7 November 2013</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 23:</td>
<td colspan="2" class="diff-lineno">Line 23:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>  CCSetGateway("InternetSecure")</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>  CCSetGateway("InternetSecure")</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">===Test Mode===</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">{{Template:Test Mode}}</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>{{Template:Emulators}}</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>{{Template:Emulators}}</div></td></tr>
</table>Sarahhttp://docs.360works.com/index.php?title=InternetSecure&diff=858&oldid=prevSterling at 22:59, 5 November 20132013-11-05T22:59:54Z<p></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 22:59, 5 November 2013</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 23:</td>
<td colspan="2" class="diff-lineno">Line 23:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>  CCSetGateway("InternetSecure")</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>  CCSetGateway("InternetSecure")</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">{{Template:Emulators}}</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>==Processing Payments==</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>==Processing Payments==</div></td></tr>
</table>Sterlinghttp://docs.360works.com/index.php?title=InternetSecure&diff=808&oldid=prevSarah: added definition of merchant account2013-10-28T20:25:02Z<p>added definition of merchant account</p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 20:25, 28 October 2013</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 8:</td>
<td colspan="2" class="diff-lineno">Line 8:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>InternetSecure can process a wide variety of transactions, including authorization only, card swipes, and subscriptions. For detailed examples of each of these transactions, check the demo file included as a download with Plastic 2. These scripts are ready for insertion into your own solution!</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>InternetSecure can process a wide variety of transactions, including authorization only, card swipes, and subscriptions. For detailed examples of each of these transactions, check the demo file included as a download with Plastic 2. These scripts are ready for insertion into your own solution!</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">=== Getting an account ===</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">You'll need an account using the [http://www.internetsecure.com/apply.htm InternetSecure Gateway], and use your '''merchant account''' the first parameter for every plug-in function call that performs a transaction. In the function signature template, you may see the terms ''merchant account name'' and ''transaction key;'' this is due to the fact that Plastic 2 supports many gateways that use different definitions of log-in credentials. You should pass in a blank value for the transaction key, as follows:</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"> Set Variable [ $result; Value:</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"> CCProcessPayment (</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"> merchantAccount;</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"> ""; ...) ]</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>=== Setting the Gateway ===</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>=== Setting the Gateway ===</div></td></tr>
<tr><td colspan="2" class="diff-lineno">Line 22:</td>
<td colspan="2" class="diff-lineno">Line 31:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>You must provide the following information for a credit card payment transaction:</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>You must provide the following information for a credit card payment transaction:</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>*merchant account <del class="diffchange diffchange-inline">name (this might also be known as a store id)</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>*merchant account  </div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>*dollar amount</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>*dollar amount</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>*credit card number</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>*credit card number</div></td></tr>
</table>Sarahhttp://docs.360works.com/index.php?title=InternetSecure&diff=767&oldid=prevSarah at 17:17, 16 September 20132013-09-16T17:17:43Z<p></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 17:17, 16 September 2013</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 102:</td>
<td colspan="2" class="diff-lineno">Line 102:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>=== Voiding Transactions ===</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>=== Voiding Transactions ===</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><pre>Set Variable [$result; Value: CCVoidPayment ( <del class="diffchange diffchange-inline">merchantAccountName </del>; "" ; previousTransactionID)]</pre>Voids a previously processed payment. The parameters are similar to the CCProcessPayment function, except dollarAmount is replaced with the addition of the previousTransactionID parameter. The previousTransactionID should be the transaction ID of the transaction you wish to void. This value is returned by the CCProcessPayment function. Alternately, you can use the CCLastPaymentTransactionID function to get the transactionID of the last processed payment.</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><pre>Set Variable [$result; Value: CCVoidPayment ( <ins class="diffchange diffchange-inline">merchantAccount </ins>; "" ; previousTransactionID)]</pre></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div> </div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>Voids a previously processed payment. The parameters are similar to the CCProcessPayment function, except dollarAmount is replaced with the addition of the previousTransactionID parameter. The previousTransactionID should be the transaction ID of the transaction you wish to void. This value is returned by the CCProcessPayment function. Alternately, you can use the CCLastPaymentTransactionID function to get the transactionID of the last processed payment.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Note that CCVoidPayment will only work on orders that have not settled yet, which means that it will generally only work on payments made that same day. To void settled orders, use CCRefund instead.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Note that CCVoidPayment will only work on orders that have not settled yet, which means that it will generally only work on payments made that same day. To void settled orders, use CCRefund instead.</div></td></tr>
<tr><td colspan="2" class="diff-lineno">Line 113:</td>
<td colspan="2" class="diff-lineno">Line 115:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>  Set Variable [$result; Value:  </div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>  Set Variable [$result; Value:  </div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>  CCRefund(  </div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>  CCRefund(  </div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>  <del class="diffchange diffchange-inline">merchantAccountName </del>;  </div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>  <ins class="diffchange diffchange-inline">merchantAccount </ins>;  </div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>  "" ;  </div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>  "" ;  </div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>  previousTransactionId ;  </div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>  previousTransactionId ;  </div></td></tr>
<tr><td colspan="2" class="diff-lineno">Line 131:</td>
<td colspan="2" class="diff-lineno">Line 133:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>| <big>CCCreateSubscription</big></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>| <big>CCCreateSubscription</big></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|-</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|-</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>|<del class="diffchange diffchange-inline">merchantAccountName</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>|<ins class="diffchange diffchange-inline">merchantAccount</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|-</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|-</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|"";</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|"";</div></td></tr>
<tr><td colspan="2" class="diff-lineno">Line 159:</td>
<td colspan="2" class="diff-lineno">Line 161:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>| <big>CCDeleteSubscription</big></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>| <big>CCDeleteSubscription</big></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|-</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|-</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>|<del class="diffchange diffchange-inline">merchantAccountName</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>|<ins class="diffchange diffchange-inline">merchantAccount</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|-</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|-</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>|<del class="diffchange diffchange-inline">transactionKey</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>|<ins class="diffchange diffchange-inline">""</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|-</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|-</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|previousSubscriptionId</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|previousSubscriptionId</div></td></tr>
</table>Sarahhttp://docs.360works.com/index.php?title=InternetSecure&diff=598&oldid=prevSarah: Created page with "==Working with Plug-ins== Plastic 2 is a plug-in for FileMaker Pro and FileMaker Server that processes secure payments within FileMaker. {{Template:Plugin Basics}} ==Intern..."2013-06-03T20:25:38Z<p>Created page with "==Working with Plug-ins== Plastic 2 is a plug-in for FileMaker Pro and FileMaker Server that processes secure payments within FileMaker. {{Template:Plugin Basics}} ==Intern..."</p>
<p><b>New page</b></p><div>==Working with Plug-ins==<br />
<br />
Plastic 2 is a plug-in for FileMaker Pro and FileMaker Server that processes secure payments within FileMaker.<br />
<br />
{{Template:Plugin Basics}}<br />
<br />
==InternetSecure==<br />
<br />
InternetSecure can process a wide variety of transactions, including authorization only, card swipes, and subscriptions. For detailed examples of each of these transactions, check the demo file included as a download with Plastic 2. These scripts are ready for insertion into your own solution!<br />
<br />
=== Setting the Gateway ===<br />
<br />
Before processing any payments, you need to tell Plastic which gateway you are using. This is done by calling CCSetGateway.<br />
<br />
CCSetGateway("InternetSecure")<br />
<br />
==Processing Payments==<br />
<br />
===Basic Credit Card Charge===<br />
<br />
Once you properly configure your merchant account, you can quickly and easily process payment transactions.<br />
<br />
You must provide the following information for a credit card payment transaction:<br />
*merchant account name (this might also be known as a store id)<br />
*dollar amount<br />
*credit card number<br />
*credit card expiration date<br />
<br />
The CCProcessPayment function will process a transaction and return a transaction ID. This function returns a transaction ID if the transaction is successful or the word ERROR if the transaction fails. For detailed information about the most recent transaction failure, call the CCLastError function before calling any other transaction-processing function.<br />
<br />
In your script, you would then have a second line after setting the gateway. Note the second parameter remains blank, as tranactionKeys are not required when using Internet Secure. <br />
<br />
<pre>Set Variable $result Value: <br />
CCProcessPayment(<br />
merchantAccount, <br />
"";<br />
chargeAmount;<br />
cardNumber;<br />
expDate)<br />
</pre><br />
<br />
'''Note''': It is important to store the resulting transaction ID because you may need it later to void the transaction, issue a refund or capture a previously authorized transaction.<br />
<br />
You may submit optional parameters to most of Plastic's payment-transaction processing functions. These parameters will be submitted to the payment gateway along with the basic transaction information. Although they are not usually required to process an order, these parameters can be useful for tasks such as address verification or linking a transaction to a customer ID or an invoice number. To supply additional parameters to a function call, add them to the end of the parameter list after the last required parameter, using a "key=value" syntax.<br />
<br />
<pre>Set Variable $result Value:<br />
CCProcessPayment(<br />
merchantAccount, <br />
"";<br />
chargeAmount;<br />
cardNumber;<br />
expDate;<br />
"chargeDescription=" & Payment::description;<br />
"customerId=" & $custID)</pre><br />
<br />
{{Template:InternetSecure Optional Parameters}}<br />
<br />
<br />
===Authorizing and Capturing Payments===<br />
<br />
A sale transaction for credit card contains two parts: an ''authorization'' which verifies and places a hold for the amount, and a ''capture'', which actually transfers the funds.<br />
<br />
To run an authorization, pass in an additional parameter '''authMode=AUTH_ONLY'''.<br />
<br />
<pre>Set Variable $result Value: <br />
CCProcessPayment(<br />
merchantAccount, <br />
"";<br />
chargeAmount;<br />
cardNumber;<br />
expDate;<br />
authMode=AUTH_ONLY)<br />
</pre><br />
<br />
After running an authorization, call '''CCProcessAuthorizedPayment.''' Pass in the previousTransactionId from the transaction ID you received from the process with authMode. The dollarAmount is not required to process the authorized payment. <br />
<br />
<pre>Set Variable $result Value: <br />
CCProcessAuthorizedPayment(<br />
merchantAccount, <br />
"";<br />
previousTransactionId;<br />
dollarAmount)<br />
</pre><br />
<br />
<br />
=== Using Card Readers ===<br />
<br />
{{Template:Using Card Readers}}<br />
<br />
<pre>Set Variable [$result; Value:<br />
CCProcessPayment(<br />
merchantAccount;<br />
"";<br />
chargeAmount;<br />
"";<br />
"";<br />
"track2=;1234123412341234=11121010000000000111?")]<br />
</pre><br />
<br />
{{Template:InternetSecure Optional Parameters}}<br />
<br />
=== Voiding Transactions ===<br />
<br />
<pre>Set Variable [$result; Value: CCVoidPayment ( merchantAccountName ; "" ; previousTransactionID)]</pre>Voids a previously processed payment. The parameters are similar to the CCProcessPayment function, except dollarAmount is replaced with the addition of the previousTransactionID parameter. The previousTransactionID should be the transaction ID of the transaction you wish to void. This value is returned by the CCProcessPayment function. Alternately, you can use the CCLastPaymentTransactionID function to get the transactionID of the last processed payment.<br />
<br />
Note that CCVoidPayment will only work on orders that have not settled yet, which means that it will generally only work on payments made that same day. To void settled orders, use CCRefund instead.<br />
<br />
See also: CCLastPaymentTransactionIDReturns: the transactionID from the payment gateway service if the order is successful, or "ERROR" if there was a problem (use CCLastError for more detailed information about the nature of the error)<br />
<br />
=== Crediting or Refunding Transactions ===<br />
<br />
To credit a transaction, you need the transaction ID returned by CCProcessPayment. Pass this (along with other payment info) to the CCRefund function. This is similar to the void process, except it accepts a dollar amount used to process the original transaction, and will refund orders that have already settled.<br />
Set Variable [$result; Value: <br />
CCRefund( <br />
merchantAccountName ; <br />
"" ; <br />
previousTransactionId ; <br />
""; <br />
2.99 ; // the amount of the refund <br />
"chargeDescription=")<br />
<br />
Please note that the transaction key and card number are left blank, as they are not used with InternetSecure.<br />
<br />
==Subscription Services==<br />
<br />
With subscriptions, payments can automatically be debited to a credit card or a bank account on a time period you specify. To create a credit card subscription, use '''CCCreateSubscription.''' <br />
<br />
Valid pay periods include daily, weekly, biweekly, monthly, bimonthly, quarterly, semiannually, and annually. The number of installments specify how many transactions to run. A six month subscription would specify a payPeriod of monthly, and 6 installments.<br />
<br />
{| class="wikitable"<br />
| <big>CCCreateSubscription</big><br />
|-<br />
|merchantAccountName<br />
|-<br />
|"";<br />
|-<br />
|dollarAmount<br />
|-<br />
|cardNumber<br />
|-<br />
|expDate<br />
|-<br />
|"":<br />
|-<br />
|numberOfInstallments<br />
|-<br />
|startDate<br />
|-<br />
|payPeriod<br />
|-<br />
|"";<br />
|}<br />
<br />
{{Template:InternetSecure Optional Parameters}}<br />
<br />
To cancel a subscription, use '''CCDeleteSubscription''':<br />
<br />
{| class="wikitable"<br />
| <big>CCDeleteSubscription</big><br />
|-<br />
|merchantAccountName<br />
|-<br />
|transactionKey<br />
|-<br />
|previousSubscriptionId<br />
|}<br />
<br />
There are no optional parameters with deleting a subscription.<br />
<br />
==Getting Information==<br />
<br />
{{Template:Getting information}}<br />
<br />
== Getting Help ==<br />
<br />
{{Template:Getting Help}}</div>Sarah