Difference between revisions of "Template:Customer profiles"

From 360Works Product Documentation Wiki
Jump to navigation Jump to search
m
Line 10: Line 10:
 
  {{{2|txKey}}};
 
  {{{2|txKey}}};
 
  customerId)
 
  customerId)
 +
 +
'''Returns''': the customer profile ID used to reference the newly created profile if successful, or "ERROR" if there was a problem
  
 
After creating a customer, it can also be updated, deleted, or retrieved. Retrieving a customer will return the information the gateway has saved about the customer, with the sensitive information masked. Customer ID is a end user set value, and Customer Profile ID is the one dictated by the gateway.
 
After creating a customer, it can also be updated, deleted, or retrieved. Retrieving a customer will return the information the gateway has saved about the customer, with the sensitive information masked. Customer ID is a end user set value, and Customer Profile ID is the one dictated by the gateway.
Line 28: Line 30:
 
|
 
|
 
|}
 
|}
 +
 +
'''Returns''': 1 if successful, or "ERROR" if there was a problem

Revision as of 18:09, 4 November 2013

Customer Profiles

Plastic 2 features customer profiles, which allow you to submit customer and payment information to be reused for future transactions. This greatly simplifies PCI compliance, and keeps sensitive information out of your database. To get started, first you'll need to create a customer in the system. This will return an ID that you can then store. After that, attach a payment method to this newly created customer. This will return a payment ID, which together with the customer profile ID, you can run charges against.

To create a customer in the system, set the following:

Set Variable[$customerID; Value:
CCProfileCreateCustomer (
merchantAccountName;
txKey;
customerId)

Returns: the customer profile ID used to reference the newly created profile if successful, or "ERROR" if there was a problem

After creating a customer, it can also be updated, deleted, or retrieved. Retrieving a customer will return the information the gateway has saved about the customer, with the sensitive information masked. Customer ID is a end user set value, and Customer Profile ID is the one dictated by the gateway.

CCProfileUpdateCustomer CCProfileDeleteCustomer CCProfileGetCustomer
merchantAccountName merchantAccountName merchantAccountName
txKey txKey txKey
customerId customerProfileId customerProfileId
customerProfileId

Returns: 1 if successful, or "ERROR" if there was a problem