Update credential preparation for issuing form to use Canada Post autocomplete
Closed this issue · 3 comments
Please update the address fields of the form to use autocomplete. An example of it's use is here. We use the demo token from Canada Post for these proof of concepts, and that token is about 26 lines above the referenced line.
We'd like this done ASAP.
@andrewwhitehead @swcurran - looks like this key may no longer be valid for use.
These are the results from this url & body (based on the code sample provided)
url: https://ws1.postescanada-canadapost.ca/AddressComplete/Interactive/AutoComplete/v1.00/json3.ws
body:
{
"SearchTerm": "11",
"LanguagePreference": "EN",
"Key": "UP49-MX76-PT22-ZM49"
}
result:
{
"Items": [
{
"Error": "2",
"Description": "Unknown key",
"Cause": "The key you are using to access the service was not found.",
"Resolution": "Please check that the key is correct. It should be in the form AA11-AA11-AA11-AA11."
}
]
}
@seanadipose - I just tested the deployed version of greenlight and it's working, so we have a working token. Check in with @esune for what we are using in the deployed code.
@swcurran @andrewwhitehead @esune
Yes.. I was setting up all the app infrastructure and realized I forgot how the authorization works with CP.. and the http params.