Template:Getting information

From 360Works Product Documentation Wiki
Revision as of 20:40, 9 October 2013 by Sterling (Talk | contribs)

Jump to: navigation, search

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.

Emulator

If you would like to use an emulator with Plastic, call the CCSetGateway function with the additional parameter url, whose value would correspond to the emulator's endpoint URL.

Example

Set Variable [$result; Value:CCProcessPayment("Authorize.Net" ; "url=http://merchantparneturl.com/")]

The call to CCSetGateway acts as a flag, so all subsequent transactions will point to the alternate URL until otherwise specified or FileMaker is restarted.

Personal tools
Namespaces

Variants
Actions
Plug-in Products
Other Products
Navigation
Toolbox