# ap2CheckoutHash

ap2CheckoutHash in @provenanceauth/rails/ap2, Rails. The `checkout_hash` (and Payment Mandate `transaction_id`) of a merchant-signed Checkout JWT.

## Signature

```ts
ap2CheckoutHash(checkoutJwt: string, sdAlg?: string): string
```

## Parameters

- `checkoutJwt` (string)
- `sdAlg` (string, optional)

## Returns

`string`

Runs locally, with no request to the API.
