I am using Balanced version 1.0 on PHP.
We have tried to add more details to the Credit Cards. The ones we are having problems with are, from the documentation these are listed as;
- city optional string. City. Defaults to null.
- state optional string. US state. This field has been deprecated.
When I examine the $card object, these properties do not exist, except as part of the customer sub-object. The other properties;
- postal_code
- street_address
- country_code
operate as expected.
While state is termed "deprecated", this means that is may be superseded not removed. city is should default to null but is not there. I examined v1.1 and see that the fields are still there as part of the sub-object address.
Can you suggest why I cannot access these fields in v1.0?
I looked at the documentation and it shows those fields come back on the response.
Can you expand on what you mean by them not existing? Are you attempting to set them and the values do not persist?
Request
Response
If you look at the response you can see that the fields
postal_code,street_address, andcountry_codeall exist in the payload.If you think it's something related to the PHP client itself then the best bet is to generate a runnable example that we can use to debug the issue. You can either post it here or create an issue on the github repo for the Balanced PHP client.