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>
21 <autoincrement>true
</autoincrement>
24 <name>contact_id
</name>
25 <title>Contact ID
</title>
26 <type>int unsigned
</type>
27 <required>true
</required>
28 <comment>FK to Contact ID for the owner of the token
</comment>
32 <name>contact_id
</name>
33 <table>civicrm_contact
</table>
36 <onDelete>CASCADE
</onDelete>
39 <name>payment_processor_id
</name>
40 <title>Payment Processor ID
</title>
41 <type>int unsigned
</type>
42 <required>true
</required>
47 <name>payment_processor_id
</name>
48 <table>civicrm_payment_processor
</table>
51 <onDelete>RESTRICT
</onDelete>
58 <required>true
</required>
59 <comment>Externally provided token string
</comment>
63 <name>created_date
</name>
64 <title>Created Date
</title>
65 <type>timestamp
</type>
66 <comment>Date created
</comment>
67 <default>CURRENT_TIMESTAMP
</default>
71 <name>created_id
</name>
72 <title>Created ID
</title>
73 <type>int unsigned
</type>
74 <comment>Contact ID of token creator
</comment>
78 <name>created_id
</name>
79 <table>civicrm_contact
</table>
82 <onDelete>SET NULL
</onDelete>
85 <name>expiry_date
</name>
86 <title>Expiry Date
</title>
88 <comment>Date this token expires
</comment>
96 <comment>Email at the time of token creation. Useful for fraud forensics
</comment>
100 <name>billing_first_name
</name>
101 <title>Billing First Name
</title>
104 <comment>Billing first name at the time of token creation. Useful for fraud forensics
</comment>
108 <name>billing_middle_name
</name>
109 <title>Billing Middle Name
</title>
112 <comment>Billing middle name at the time of token creation. Useful for fraud forensics
</comment>
116 <name>billing_last_name
</name>
117 <title>Billing Last Name
</title>
120 <comment>Billing last name at the time of token creation. Useful for fraud forensics
</comment>
124 <name>masked_account_number
</name>
125 <title>Masked Account Number
</title>
128 <comment>Holds the part of the card number or account details that may be retained or displayed
</comment>
132 <name>ip_address
</name>
133 <title>IP Address
</title>
136 <comment>IP used when creating the token. Useful for fraud forensics
</comment>