Skip to content

How to retrieve order and authorizations at a later time? #65

@s--g

Description

@s--g

Hello. I feel like this will be an obvious answer, so apologies in advance. It is intended that our application will create an order and then we need time to manually add the validation TXT records to DNS. How do we later retrieve the authorizations to pass to $client->validate().

For example, it may be that on day 1 we execute:
$client = new Client([...]);
$order = $client->createOrder([...]);
$authorizations = $client->authorize($order);

Then we need time to modify DNS and for the changes to propagate.

Then on say day 2 we execute:
$client->selfTest($authorization);
$client->validate($authorization);
...
$certificate = $client->getCertificate($order);

But how do we retrieve the authorizations on day 2 when they were generated on the previous day? I see that the Client class has a getOrder() method. Is that at least the correct way to retrieve the order on day 2? I see the Order class has a getAuthorizationURLs() method which internally returns $this->authorizations, but the code docs state that it returns an array of strings. I believe I need an array of Authorization objects in order to generate the certificates?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions