Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Canada Post - Wrong endpoint in production #25

Closed
alexgilbertDG opened this issue Mar 10, 2020 · 1 comment
Closed

Canada Post - Wrong endpoint in production #25

alexgilbertDG opened this issue Mar 10, 2020 · 1 comment

Comments

@alexgilbertDG
Copy link

Description

Here the error I got when i'm in production:
2020-03-10 16:55:12 [-][1][-][error][postie] Canada Post: API error: There is a mismatch between the endpoints and the authorization. Please ensure production keys are used with production endpoints and development keys are used with development endpoints..

If you look into the canada post documentation the endpoint should be:
https://soa-gw.canadapost.ca
but your endpoint is hardcoded to the dev API URL (https://ct.soa-gw.canadapost.ca).
Here: /providers/CanadaPost.php:157

More info here:
https://www.canadapost.ca/cpo/mc/business/productsservices/developers/services/fundamentals.jsf#ProductionEnvironment

Steps to reproduce

  1. Make a postie request with Canada Post production Key API

Additional info

  • Plugin version: 2.1.1
  • Craft version: 3.3.19
  • Craft commerce: 2.2.13
@engram-design
Copy link
Member

Fixed in 2.1.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants