SDK reference · Rails
verifyAp2Mandate
verifyAp2Mandate in @provenanceauth/rails/ap2, Rails. Verify a closed AP2 Checkout or Payment Mandate (its content, as your AP2 stack returns it after checking the SD-JWT) against the Provenance intent token it carries: 1.
Signature
verifyAp2Mandate(closed: Ap2ClosedMandate | Record<string, unknown>, opts: Ap2VerifyOptions): Promise<Ap2VerifyResult>Parameters
closedAp2ClosedMandate | Record<string, unknown>RequiredoptsAp2VerifyOptionsRequired
Returns
Promise<Ap2VerifyResult>
HTTP operation
Runs locally, with no request to the API.