State Field - Abbreviations vs Spelled in Full

Hello, I noticed something today while working with the Payment's API checkout transaction function. The documentation shows that the state name is returned as an abbreviation. Example: SC

35f266b7f1fe15ea70afff1fe5aeaf02-huge-sc

However, when I log the responses that I'm actually getting, the state name is spelled in full. Example: “Alaska”

df1d64dadb2012a7560b6ccf113606f7-huge-sc

Is there a setting somewhere that can force a response of the abbreviated state name? Thanks!

Comments

  • Mina Mistry
    Mina Mistry Blackbaud Employee
    Seventh Anniversary Kudos 2 Name Dropper Participant

    Hi Lauren

    Can you please share an example of the actual response code you get back from the API (any sensitive data should be redacted)? We only expect to see a two letter state returned from Blackbaud Checkout.

    Thanks

    Mina

  • Hello @Mina Mistry, sure - here is the response from a test transaction - not a live transaction. I removed the email and the ip address.

    {
    "additional_fee":0,
    "amount":2000,
    "application":"Payments API",
    "billing_info":{
    "city":"Little Rock",
    "country":"United States",
    "post_code":"72212",
    "state":"Alaska",
    "street":"12346"
    },
    "comment":"",
    "credit_card":{
    "card_type":"Visa",
    "exp_month":12,
    "exp_year":2030,
    "last_four":"4242",
    "name":"Lauren WHi"
    },
    "currency":"USD",
    "disbursement_status":"NotDisbursable",
    "donor_ip_address":"removed",
    "email_address":"removed",
    "fraud_result":{
    "anonymous_proxy_result":"NotProcessed",
    "bin_and_ip_country_result":"NotProcessed",
    "high_risk_country_result":"NotProcessed",
    "result_code":"NotProcessed",
    "risk_score":0,
    "risk_threshold":0,
    "velocity_result":"NotProcessed"
    },
    "id":"b5f61829-bf73-489a-bf3e-04b88f4e1f15",
    "is_live":false,
    "phone_number":"",
    "state":"Processed",
    "token":"bd97faed-8044-4d44-a574-6b85ba769798",
    "transaction_date":"8/15/2022 1:59:17 PM",
    "transaction_type":"CardNotPresent",
    "authorization_code":"123456"
    }


  • e905758fc477f200ed069a3389a465f9-huge-sc

    @Mina Mistry here's an example screenshot using the documentation developer tool to test as well, in case that is helpful at all.

  • @Mina Mistry oh interestingly enough, I noticed the country name is also being spelled out in full.

Categories