1 <?xml version=
"1.0" encoding=
"iso-8859-1" ?>
4 <base>CRM/Financial
</base>
5 <class>PaymentToken
</class>
6 <name>civicrm_payment_token
</name>
7 <comment>Payment Token
</comment>
9 <component>CiviContribute
</component>
12 <uniqueName>payment_token_id
</uniqueName>
13 <title>Payment Token ID
</title>
14 <type>int unsigned
</type>
15 <required>true
</required>
16 <comment>Payment Token ID
</comment>
24 <autoincrement>true
</autoincrement>
27 <name>contact_id
</name>
28 <title>Contact ID
</title>
29 <type>int unsigned
</type>
30 <required>true
</required>
31 <comment>FK to Contact ID for the owner of the token
</comment>
33 <label>Contact
</label>
38 <name>contact_id
</name>
39 <table>civicrm_contact
</table>
42 <onDelete>CASCADE
</onDelete>
45 <name>payment_processor_id
</name>
46 <title>Payment Processor ID
</title>
47 <type>int unsigned
</type>
48 <required>true
</required>
51 <label>Payment Processor
</label>
56 <name>payment_processor_id
</name>
57 <table>civicrm_payment_processor
</table>
60 <onDelete>RESTRICT
</onDelete>
67 <required>true
</required>
68 <comment>Externally provided token string
</comment>
72 <name>created_date
</name>
73 <title>Created Date
</title>
74 <type>timestamp
</type>
75 <comment>Date created
</comment>
76 <default>CURRENT_TIMESTAMP
</default>
80 <name>created_id
</name>
81 <title>Created ID
</title>
82 <type>int unsigned
</type>
83 <comment>Contact ID of token creator
</comment>
85 <label>Created
</label>
90 <name>created_id
</name>
91 <table>civicrm_contact
</table>
94 <onDelete>SET NULL
</onDelete>
97 <name>expiry_date
</name>
98 <title>Expiry Date
</title>
100 <comment>Date this token expires
</comment>
108 <comment>Email at the time of token creation. Useful for fraud forensics
</comment>
112 <name>billing_first_name
</name>
113 <title>Billing First Name
</title>
116 <comment>Billing first name at the time of token creation. Useful for fraud forensics
</comment>
120 <name>billing_middle_name
</name>
121 <title>Billing Middle Name
</title>
124 <comment>Billing middle name at the time of token creation. Useful for fraud forensics
</comment>
128 <name>billing_last_name
</name>
129 <title>Billing Last Name
</title>
132 <comment>Billing last name at the time of token creation. Useful for fraud forensics
</comment>
136 <name>masked_account_number
</name>
137 <title>Masked Account Number
</title>
140 <comment>Holds the part of the card number or account details that may be retained or displayed
</comment>
144 <name>ip_address
</name>
145 <title>IP Address
</title>
148 <comment>IP used when creating the token. Useful for fraud forensics
</comment>