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
orderCheckoutOrderRequiredoptsApprovalChallengeOptionsRequired
Returns
{ status: 401; headers: Record<string, string>; body: ApprovalProblem }
HTTP operation
Runs locally, with no request to the API.