跳到內容

Function: autoReconcile() ​

ts
function autoReconcile(options?): Middleware;

Defined in: src/middleware/auto-reconcile.ts:25

When a call ends with an unknown outcome (or LINE Pay answers with a duplicate code), look the payment up with client.reconcile. If it was processed, the call returns the inferred result, marked in meta.recovered. Otherwise the original error is thrown again, with the conclusion in error.reconcileConclusion.

It is not on by default: it turns an error into a success, so you opt in. Place it inside retryWhenNotSent().

Parameters ​

options? ​

AutoReconcileOptions = {}

Returns ​

Middleware

Released under the MIT License. An independent library, not made or endorsed by LINE Pay.