Open zyferdigital opened 10 years ago
@zyferdigital I can't work out how to sign up for a Canada Post developer account, so I am not sure how I am going to reproduce this one.
You have to call to create a "sell online" account. But before you do, you need to sign up for a "venture one" account here: https://www.canadapost.ca/cpid/apps/businesssignup?execution=e1s1
Both are free.
I think we should probably investigate using Easypost for this, although their CanadaPost endpoint is in beta at this point in time. ActiveShipping is a ghetto.
Hey @zyferdigital . Did you get that to work ?
One issue is that the new REST API (with key/secret) won't work. You need a CPC merchant ID to use this implementation.
I forked it and added the CanadaPostPWS service to spree-active-shipping. Sorry I have not had time to submit a pull request - also, I have not added all services.
Issue:
When using Canada Post (Regular, xpresspost, etc. does not seem to matter which one) there are no results when you go to checkout. Instead it returns you to the address page with the following message/error:
"We are unable to calculate shipping rates for the selected items."
Steps to Reproduce:
Did a fresh install with sample data and fewer extensions (spree, spree_auth_devise, spree_active_shipping). Got the following error:
"Please implement 'compute_package(package)' in your calculator: Spree::Calculator::Shipping::CanadaPost::Regular"
Expected Result
After submitting address, go to the delivery page with rates returned from Canada Post
Spree, Rails & Gems:
Spree: 2.2.2-stable Rails 4.0.3