accept Offer
Accept a previously received offer and issue a credential.
This will:
Call receiveOffer to resolve the offer.
Try each Offer.offeredDocuments in order via issueOne.
Return the first successfully issued IssuedCredentialSummary.
Return
The first successful IssuedCredentialSummary.
Parameters
uri Offer
The same credential offer URI shown to the user.
tx Code
Transaction code for pre-authorized offers. Pass null for authorization-code offers. When receiveOffer reports a non-null Offer.txCodeSpec, the offer is pre-authorized and the user must supply this code (the spec describes the expected length/format).
Throws
if the offer has no document types.
if no document could be issued.
if issuing succeeded, but building a summary from the SD-JWT failed.
if the offer cannot be resolved.