From ccbfa64053b7394c7b65c21a5b70ddc0a3e1ca47 Mon Sep 17 00:00:00 2001 From: Rob Thorne Date: Wed, 29 Apr 2015 02:21:19 +0000 Subject: [PATCH] CRM-16367: Payment Processors -- add shared token table civicrm_payment_token. --- xml/schema/Financial/PaymentToken.xml | 119 ++++++++++++++++++++++++++ 1 file changed, 119 insertions(+) create mode 100644 xml/schema/Financial/PaymentToken.xml diff --git a/xml/schema/Financial/PaymentToken.xml b/xml/schema/Financial/PaymentToken.xml new file mode 100644 index 0000000000..178bb8c4b6 --- /dev/null +++ b/xml/schema/Financial/PaymentToken.xml @@ -0,0 +1,119 @@ + + + + CRM/Financial + PaymentToken + civicrm_payment_token + Payment Token + 4.7 + + id + int unsigned + true + Payment Token ID + 4.7 + + + id + true + + + contact_id + Contact ID + int unsigned + true + FK to Contact ID for the owner of the token + 4.7 + + + contact_id +
civicrm_contact
+ id + 4.7 + CASCADE + + + payment_processor_id + Payment Processor ID + int unsigned + true + + 4.7 + + + payment_processor_id + civicrm_payment_processor
+ id + 4.7 + RESTRICT +
+ + token + varchar + 255 + true + Externally provided token string + 4.7 + + + created_date + timestamp + Date created + 4.7 + + + created_id + int unsigned + 255 + Contact ID of token creator + 4.7 + + + expiry_date + datetime + Date this token expires + 4.7 + + + email + 255 + varchar + Email at the time of token creation. Useful for fraud forensics + 4.7 + + + billing_first_name + string + 255 + Billing first name at the time of token creation. Useful for fraud forensics + 4.7 + + + billing_middle_name + string + 255 + Billing middle name at the time of token creation. Useful for fraud forensics + 4.7 + + + billing_last_name + string + 255 + Billing last name at the time of token creation. Useful for fraud forensics + 4.7 + + + partial_account_number + varchar + 255 + Holds the part of the card number or account details that may be retained or displayed + 4.7 + + + ip_address + varchar + 255 + IP used when creating the token. Useful for fraud forensics + 4.7 + + -- 2.25.1