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

where to use sync=True when purchasing a label #4

Closed
pennadl opened this issue Jan 15, 2015 · 1 comment
Closed

where to use sync=True when purchasing a label #4

pennadl opened this issue Jan 15, 2015 · 1 comment

Comments

@pennadl
Copy link
Contributor

pennadl commented Jan 15, 2015

Hello,

It's not clear where sync=True should be used when purchasing a label.

This is your code example

//Purchase the desired rate. sync=True indicates that the function will wait until the 
//carrier returns a shipping label before it returns
$transaction = Shippo_Transaction::create(array('rate'=> $rate["object_id"]));

so, should it be used in this way? $transaction = Shippo_Transaction::create(array('rate'=> $rate["object_id"], 'sync' => true));

Thanks

@sbeidas
Copy link
Contributor

sbeidas commented Sep 2, 2015

Sorry for the confusion, the sync option has been removed from Example.php as it is something we do not support in the PHP client. We are investigating several options that could help us make this possible.

@sbeidas sbeidas closed this as completed Sep 2, 2015
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