# approvalChallenge

approvalChallenge in @provenanceauth/rails/checkout, Rails. Merchant side: the `401` to send when you want the customer's approval for this exact order.

## Signature

```ts
approvalChallenge(order: CheckoutOrder, opts: ApprovalChallengeOptions): { status: 401; headers: Record<string, string>; body: ApprovalProblem }
```

## Parameters

- `order` (CheckoutOrder)
- `opts` (ApprovalChallengeOptions)

## Returns

`{ status: 401; headers: Record<string, string>; body: ApprovalProblem }`

Runs locally, with no request to the API.
