View as Markdown

SDK reference · Rails

approvalChallenge

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

Signature

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

Parameters

orderCheckoutOrderRequired
optsApprovalChallengeOptionsRequired

Returns

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

HTTP operation

Runs locally, with no request to the API.

Was this page helpful? Send us feedback

LLM? Read llms.txt.