Skip to content

Commit

Permalink
feat(handler): export built-in handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
enylin committed Dec 14, 2021
1 parent 2f010b0 commit 41be390
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ import { LineMerchantConfig } from './line-pay-api/type'
import { LinePayClient } from './type'
import { createPaymentApi } from './payment-api/create'
import { paymentDetailsWithClient } from './line-pay-api/payment-details'
import {
createPaymentDetailsRecoveryHandler,
toConfirmResponse,
toRefundResponse
} from './handler/payment-details-recovery'
import { createTimeoutRetryHandler } from './handler/timeout-retry'

/**
* Create a client for LINE Pay API.
Expand All @@ -27,3 +33,10 @@ export function createLinePayClient(config: LineMerchantConfig): LinePayClient {
)
}
}

export const handler = {
createPaymentDetailsRecoveryHandler,
createTimeoutRetryHandler,
toConfirmResponse,
toRefundResponse
}

0 comments on commit 41be390

Please sign in to comment.