Difference between revisions of "Template:Getting information"

From 360Works Product Documentation Wiki
Jump to navigation Jump to search
(Clarified information about test mode.)
Line 20: Line 20:
 
* '''CCLicenseInfo''' - returns information about the license used.  
 
* '''CCLicenseInfo''' - returns information about the license used.  
 
* '''CCRegister''' ( ''licenseKey'', ''registeredTo'') - registers Plastic using the license key and registered to name found in the receipt email. Plastic will run for 2 hours in demo mode before FileMaker Pro will need to be restarted.
 
* '''CCRegister''' ( ''licenseKey'', ''registeredTo'') - registers Plastic using the license key and registered to name found in the receipt email. Plastic will run for 2 hours in demo mode before FileMaker Pro will need to be restarted.
* '''CCSetTestMode''' - Tells the gateway to run in test mode, which will not let any real charges occur but allow for testing and viewing responses.
 
 
* '''CCVersion''' - returns the version of the credit card plugin which is installed
 
* '''CCVersion''' - returns the version of the credit card plugin which is installed
 +
* '''CCSetTestMode''' - Tells the gateway to flag the account into test mode, which will not let any real charges occur but allow for test transactions. If using our credentials in the demo file with Authorize.Net, these transactions will go to the test server. To send your transactions and account to the test server instead of live with a test flag, use the url parameter instead. See below.
  
 
====Additional Information about Plastic====
 
====Additional Information about Plastic====

Revision as of 20:52, 6 September 2013

Plastic includes a number of helper functions that allow users to retrieve data from the gateway or Plastic.

Simply set a variable or a field to use the calculation.

  • CCGetCardIssuer(cardNumber) - returns the card issuer for a given card number.
  • CCGetLast (name) - returns a value from the most recent transaction response that corresponds with the name parameter
  • CCLastAVS- returns the gateway's Address Verification System Response for the last payment which was processed. This response is typically a one letter indicator, meaning the following:
    • M- CVV2/CVC2 Match - Indicates that the card is authentic. Complete the transaction if the authorization request was approved.
    • N- CVV2 / CVC2 No Match – May indicate a problem with the card. Contact the cardholder to verify the CVV2 code before completing the transaction, even if the authorization request was approved.
    • P- Not Processed - Indicates that the expiration date was not provided with the request, or that the card does not have a valid CVV2 code. If the expiration date was not included with the request, resubmit the request with the expiration date.
    • S- Merchant Has Indicated that CVV2 / CVC2 is not present on card - May indicate a problem with the card. Contact the cardholder to verify the CVV2 code before completing the transaction.
    • U- Issuer is not certified and/or has not provided visa encryption keys
  • CCLastChargeResult - returns the gateway's result code for the last operation
  • CCLastPaymentAuthCode - returns the gateway's approval code for the last payment which was processed with CCProcessPayment.
  • CCLastPaymentTransactionID- returns the gateway's transaction ID for the last payment which was processed with CCProcessPayment.
  • CCLastRawResponse- returns the gateway's raw text response for the most recent transaction.
  • CCValidateCardNumber (cardNumber) determines if a card number is valid.
  • CCLastError - returns the text of the last error triggered by a plugin function.
  • CCSetErrorCapture- Toggles error dialogs on or off. When something unexpected happens, the plug-in will pop up a dialog displaying the error message. This makes it easy to see what went wrong. However, in some cases, you (the developer) may prefer to show your own message to the user, or possibly not show a message at all. In that case, you can call jdbcSetErrorCapture with a parameter of true. That will suppress the error dialog from appearing to the user.
  • CCLicenseInfo - returns information about the license used.
  • CCRegister ( licenseKey, registeredTo) - registers Plastic using the license key and registered to name found in the receipt email. Plastic will run for 2 hours in demo mode before FileMaker Pro will need to be restarted.
  • CCVersion - returns the version of the credit card plugin which is installed
  • CCSetTestMode - Tells the gateway to flag the account into test mode, which will not let any real charges occur but allow for test transactions. If using our credentials in the demo file with Authorize.Net, these transactions will go to the test server. To send your transactions and account to the test server instead of live with a test flag, use the url parameter instead. See below.

Additional Information about Plastic

If you would like to use an emulator with Plastic, you can pass in an additional parameter that will forward the request as to the URL provided instead of directly to the gateway. To do so, simply add url= to the list of parameters when calling a function:

Set Variable [$result Value:
CCProcessPayment(
merchantAccount, 
transactionKey;
chargeAmount;
cardNumber;
expDate;
"url=http://merchantparneturl.com/")]

Please note that Plastic processes secure, encrypted payments. Plastic supports SSL encryption with 3.0 and TLS 1.0. It does not support SSL version 2.0.