Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

Getting metadata associated with the transaction object #36

Open
4saknhero opened this issue Jan 19, 2018 · 2 comments
Open

Getting metadata associated with the transaction object #36

4saknhero opened this issue Jan 19, 2018 · 2 comments

Comments

@4saknhero
Copy link

I've added metadata to every part of the transaction object creation, but I don't receive it back from the webhooks, its just null.

After extensive talks with Shippo support, (been at this for months testing packages and code changes), ultimately the only way for me to get the metadata sent to me was to also post to the tracks endpoint.

What this ended up causing was for me to receive double webhooks from Shippo due to posting to the tracks endpoint as well as having the label created through them.

Is there something I'm missing perhaps?

@4saknhero
Copy link
Author

4saknhero commented Jan 23, 2018

The only thing I could think of it that the Transaction class in your package dosent have a metadata attribute.

@4saknhero
Copy link
Author

After forking and testing the change, the "transaction_created" webhooks do contain metadata, but the "tracks_updated" webhooks do not.

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

No branches or pull requests

1 participant