-
Notifications
You must be signed in to change notification settings - Fork 308
migrate cards from Balanced to Braintree #3391
Comments
From: Balanced:
Forwarded to Braintree! |
Okay, we've initiated the migration, though we may need to reinitiate it (though Braintree might take that initiative themselves per Marshall's email?). That means that anyone who updates their card between now and when we start vaulting on Braintree will not have their new info saved on Braintree, unless we make another export. However, anyone who changes their card on Braintree before the second export lands could potentially have their change clobbered. One option would be to simply disable the credit card form until cards are migrated. |
From: Braintree
|
From: Balanced
|
From: Braintree
To: Balanced
|
https://gratipay.freshdesk.com/helpdesk/tickets/2129
|
Import logs uploaded in https://github.com/gratipay/logs/commit/61bc4117f76b7e269d9937ea3c19ef41dea8f2b9. |
Picking up from #3470 (comment) ... |
Hrm ... old records on Balanced, from before they introduced the customer type? Hunch it relates to the problems we've had in the past with Balanced URLs (#2085). |
So the work here is to write a script to populate the Participant ID custom field for all of the new records from Balanced. |
Looking at the logs, I count 26 names of customers in the bad import log that aren't present in the successful import log. |
Do we just let those people go? What's our option? Contact Balanced and ask for a re-export? |
I count 328 customers in the |
To: Balanced
|
I count 3,061 unique names in the good import (not counting Nil and None). 26 out of 3,061 ain't bad. |
How does the set of customer ids that Braintree now has compare with what we have for |
And how does the set of customer ids in the CSV logs compare with what's actually in Braintree? |
We have 5,309 participants with a |
Alright, I exported customers from Braintree, and confirmed that the set of Balanced ids in the import log is identical to the set in Braintree. |
From: Balanced
To: Balanced
|
Balanced Customer IDs
|
Balanced Card IDs
|
I can't say that I'm entirely surprised that the numbers don't seem to quite line up. :-/ |
The task is to link up Gratipay participants with Braintree customers, by setting |
I'm surprised that there are so many card IDs in Braintree that aren't in Balanced or Gratipay. I only looked at card IDs matching the |
There are only 15 "payment method tokens" in this Braintree export that don't match the |
Maybe Balanced included invalidated cards in the export to Braintree, but not in the export to us? |
We should also create new |
Note: We only want to update |
Alright, I'm going to write this script based on the import log. I'm going to depend on the customer ID and card ID in there. I'll double-check to make sure that the mapping lines up with what we have for exchange routes in the db, and then add new exchange routes for braintree along with setting |
I'm not going to worry about the records with no customer id for today. |
!m @whit537 |
Spot-checking, I'm seeing a card that is "status: removed" at Balanced that is merely "Expired" at Braintree. 😮 |
At this point it sure feels like we'd better cut our losses. Better to have some credit card attrition than fail to get off Balanced in time. We have cards waiting for us to use in Braintree. Maybe it's not the cleanest set of data but it's what we've got: it's too late to migrate more/better data from Balanced to Braintree. Let's use the cards we have waiting for us at Braintree! :) |
There was a reason for that... If I recall correctly, it had something to do with custom fields. I'll dig in deeper later. |
The five at #3391 (comment) are probably explained by the import error log. |
Done and done! |
To: Balanced, Braintree
From: Braintree
The text was updated successfully, but these errors were encountered: