MCPcopy Create free account
hub / github.com/dailydotdev/apps / getCheckoutErrorExtra

Function getCheckoutErrorExtra

packages/shared/src/hooks/usePaddlePayment.ts:39–47  ·  view source on GitHub ↗
(
  event?: PaddleEventData,
)

Source from the content-addressed store, hash-verified

37 * `data.transaction_id` logged `{}`.
38 */
39const getCheckoutErrorExtra = (
40 event?: PaddleEventData,
41): Record<string, unknown> => ({
42 transaction_id: event?.data?.transaction_id,
43 error_type: event?.type,
44 error_code: event?.code,
45 error: event?.detail,
46 payment: event?.data?.payment?.method_details?.type,
47});
48
49export const usePaddlePayment = ({
50 successCallback,

Callers 1

usePaddlePaymentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected