Page MenuHomePhabricator

CiviCRM storing contacts created from credit card transactions with incorrect state/country information
Closed, ResolvedPublic

Description

When CiviCRM receives a transaction through our credit card gateway, contacts are created with incorrect state/country information.

This *might* have some relation to with bug 24830 (https://bugzilla.wikimedia.org/show_bug.cgi?id=24830) - it appears that the state abbreviations for the trxns I've spot-checked are correct, but they map to the WRONG state (which we discovered after displaying full state names). The incorrect state appears to map to the correct correct country (for that incorrect state, that is).

But likely there is something wrong with how we're passing country/state info from the trxn into Civi.


Version: wmf-deployment
Severity: enhancement

Details

Reference
bz25032

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:10 PM
bzimport set Reference to bz25032.

This is resolved.

This was a result of Civi improperly handling the user's state (as we passed it in) and the cc gateway's failure to properly pass the user's country. Both parts are now fixed.

I added a query to the civi database to ensure that we're pulling the correct state info for a user before sticking the trxn in the Civi database.

[Moving from "CiviCRM/General" to "Wikimedia/CiviCRM; see bug 57738]