@moonpay/platform-protocol 1.15.0 → 1.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/frames/apple-pay.cjs.map +1 -1
- package/dist/frames/apple-pay.d.cts +6 -0
- package/dist/frames/apple-pay.d.ts +6 -0
- package/dist/frames/google-pay.cjs.map +1 -1
- package/dist/frames/google-pay.d.cts +6 -0
- package/dist/frames/google-pay.d.ts +6 -0
- package/dist/sdks/apple-pay.cjs.map +1 -1
- package/dist/sdks/apple-pay.d.cts +3 -0
- package/dist/sdks/apple-pay.d.ts +3 -0
- package/dist/sdks/google-pay.cjs.map +1 -1
- package/dist/sdks/google-pay.d.cts +3 -0
- package/dist/sdks/google-pay.d.ts +3 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/frames/apple-pay.ts"],"sourcesContent":["import type { ChallengeRequired } from '../models/challenge.js';\nimport type { FrameTransaction } from '../models/transaction.js';\nimport type { FrameError } from '../protocol.js';\n\nexport interface InboundMessageMap {\n ready: void;\n error: FrameError<\n 'configurationError' | 'quoteExpired' | 'invalidQuote' | 'applePayUnavailable' | 'generic'\n >;\n /**\n * Fired the instant the user taps the native Apple Pay button, BEFORE the OS\n * payment sheet is presented. This is an intent-to-buy / tap signal, distinct\n * from `complete` (the purchase outcome). It fires unconditionally on tap,\n * even if the user later cancels the sheet.\n */\n buttonPressed: void;\n /** Signals that the pipeline requires a challenge step. Load `url` in a challenge frame. */\n challenge: ChallengeRequired;\n complete: { transaction: FrameTransaction };\n}\n\nexport interface OutboundMessageMap {\n setQuote: { quote: { signature: string } };\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/frames/apple-pay.ts"],"sourcesContent":["import type { ChallengeRequired } from '../models/challenge.js';\nimport type { FrameTransaction } from '../models/transaction.js';\nimport type { FrameError } from '../protocol.js';\n\nexport interface InboundMessageMap {\n ready: void;\n error: FrameError<\n 'configurationError' | 'quoteExpired' | 'invalidQuote' | 'applePayUnavailable' | 'generic'\n >;\n /**\n * Fired the instant the user taps the native Apple Pay button, BEFORE the OS\n * payment sheet is presented. This is an intent-to-buy / tap signal, distinct\n * from `complete` (the purchase outcome). It fires unconditionally on tap,\n * even if the user later cancels the sheet.\n */\n buttonPressed: void;\n /** Signals that the pipeline requires a challenge step. Load `url` in a challenge frame. */\n challenge: ChallengeRequired;\n /**\n * Fired when the user dismisses the native Apple Pay payment sheet without\n * completing the purchase. This is an explicit cancellation signal, distinct\n * from `error` (a failure) — the flow can simply be re-initiated.\n */\n cancelled: FrameError<'payment_sheet_dismissed'>;\n complete: { transaction: FrameTransaction };\n}\n\nexport interface OutboundMessageMap {\n setQuote: { quote: { signature: string } };\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
@@ -14,6 +14,12 @@ interface InboundMessageMap {
|
|
|
14
14
|
buttonPressed: void;
|
|
15
15
|
/** Signals that the pipeline requires a challenge step. Load `url` in a challenge frame. */
|
|
16
16
|
challenge: ChallengeRequired;
|
|
17
|
+
/**
|
|
18
|
+
* Fired when the user dismisses the native Apple Pay payment sheet without
|
|
19
|
+
* completing the purchase. This is an explicit cancellation signal, distinct
|
|
20
|
+
* from `error` (a failure) — the flow can simply be re-initiated.
|
|
21
|
+
*/
|
|
22
|
+
cancelled: FrameError<'payment_sheet_dismissed'>;
|
|
17
23
|
complete: {
|
|
18
24
|
transaction: FrameTransaction;
|
|
19
25
|
};
|
|
@@ -14,6 +14,12 @@ interface InboundMessageMap {
|
|
|
14
14
|
buttonPressed: void;
|
|
15
15
|
/** Signals that the pipeline requires a challenge step. Load `url` in a challenge frame. */
|
|
16
16
|
challenge: ChallengeRequired;
|
|
17
|
+
/**
|
|
18
|
+
* Fired when the user dismisses the native Apple Pay payment sheet without
|
|
19
|
+
* completing the purchase. This is an explicit cancellation signal, distinct
|
|
20
|
+
* from `error` (a failure) — the flow can simply be re-initiated.
|
|
21
|
+
*/
|
|
22
|
+
cancelled: FrameError<'payment_sheet_dismissed'>;
|
|
17
23
|
complete: {
|
|
18
24
|
transaction: FrameTransaction;
|
|
19
25
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/frames/google-pay.ts"],"sourcesContent":["import type { ChallengeRequired } from '../models/challenge.js';\nimport type { FrameTransaction } from '../models/transaction.js';\nimport type { FrameError } from '../protocol.js';\n\nexport interface InboundMessageMap {\n ready: void;\n error: FrameError<\n 'configurationError' | 'quoteExpired' | 'invalidQuote' | 'googlePayUnavailable' | 'generic'\n >;\n /**\n * Fired the instant the user taps the native Google Pay button, BEFORE the OS\n * payment sheet is presented. This is an intent-to-buy / tap signal, distinct\n * from `complete` (the purchase outcome). It fires unconditionally on tap,\n * even if the user later cancels the sheet.\n */\n buttonPressed: void;\n /** Signals that the pipeline requires a challenge step. Load `url` in a challenge frame. */\n challenge: ChallengeRequired;\n complete: { transaction: FrameTransaction };\n}\n\nexport interface OutboundMessageMap {\n setQuote: { quote: { signature: string } };\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/frames/google-pay.ts"],"sourcesContent":["import type { ChallengeRequired } from '../models/challenge.js';\nimport type { FrameTransaction } from '../models/transaction.js';\nimport type { FrameError } from '../protocol.js';\n\nexport interface InboundMessageMap {\n ready: void;\n error: FrameError<\n 'configurationError' | 'quoteExpired' | 'invalidQuote' | 'googlePayUnavailable' | 'generic'\n >;\n /**\n * Fired the instant the user taps the native Google Pay button, BEFORE the OS\n * payment sheet is presented. This is an intent-to-buy / tap signal, distinct\n * from `complete` (the purchase outcome). It fires unconditionally on tap,\n * even if the user later cancels the sheet.\n */\n buttonPressed: void;\n /** Signals that the pipeline requires a challenge step. Load `url` in a challenge frame. */\n challenge: ChallengeRequired;\n /**\n * Fired when the user dismisses the native Google Pay payment sheet without\n * completing the purchase. This is an explicit cancellation signal, distinct\n * from `error` (a failure) — the flow can simply be re-initiated.\n */\n cancelled: FrameError<'payment_sheet_dismissed'>;\n complete: { transaction: FrameTransaction };\n}\n\nexport interface OutboundMessageMap {\n setQuote: { quote: { signature: string } };\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
@@ -14,6 +14,12 @@ interface InboundMessageMap {
|
|
|
14
14
|
buttonPressed: void;
|
|
15
15
|
/** Signals that the pipeline requires a challenge step. Load `url` in a challenge frame. */
|
|
16
16
|
challenge: ChallengeRequired;
|
|
17
|
+
/**
|
|
18
|
+
* Fired when the user dismisses the native Google Pay payment sheet without
|
|
19
|
+
* completing the purchase. This is an explicit cancellation signal, distinct
|
|
20
|
+
* from `error` (a failure) — the flow can simply be re-initiated.
|
|
21
|
+
*/
|
|
22
|
+
cancelled: FrameError<'payment_sheet_dismissed'>;
|
|
17
23
|
complete: {
|
|
18
24
|
transaction: FrameTransaction;
|
|
19
25
|
};
|
|
@@ -14,6 +14,12 @@ interface InboundMessageMap {
|
|
|
14
14
|
buttonPressed: void;
|
|
15
15
|
/** Signals that the pipeline requires a challenge step. Load `url` in a challenge frame. */
|
|
16
16
|
challenge: ChallengeRequired;
|
|
17
|
+
/**
|
|
18
|
+
* Fired when the user dismisses the native Google Pay payment sheet without
|
|
19
|
+
* completing the purchase. This is an explicit cancellation signal, distinct
|
|
20
|
+
* from `error` (a failure) — the flow can simply be re-initiated.
|
|
21
|
+
*/
|
|
22
|
+
cancelled: FrameError<'payment_sheet_dismissed'>;
|
|
17
23
|
complete: {
|
|
18
24
|
transaction: FrameTransaction;
|
|
19
25
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/sdks/apple-pay.ts"],"sourcesContent":["import type * as ApplePayFrame from '../frames/apple-pay.js';\nimport type { FrameTransaction } from '../models/transaction.js';\n\nexport type EventError = {\n kind: 'configurationError' | 'invalidQuote' | 'quoteExpired' | 'genericError';\n message: string;\n};\n\nexport type Event =\n | { kind: 'ready' }\n | { kind: 'buttonPressed' }\n | { kind: 'complete'; payload: { transaction: FrameTransaction } }\n | { kind: 'challenge'; payload: ApplePayFrame.InboundMessageMap['challenge'] }\n | { kind: 'quoteExpired'; payload: { setQuote: (signature: string) => void } }\n | { kind: 'error'; payload: EventError }\n | { kind: 'unsupported' };\n\nexport interface SetupError {\n kind: 'configurationError' | 'genericError';\n message: string;\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/sdks/apple-pay.ts"],"sourcesContent":["import type * as ApplePayFrame from '../frames/apple-pay.js';\nimport type { FrameTransaction } from '../models/transaction.js';\n\nexport type EventError = {\n kind: 'configurationError' | 'invalidQuote' | 'quoteExpired' | 'genericError';\n message: string;\n};\n\nexport type Event =\n | { kind: 'ready' }\n | { kind: 'buttonPressed' }\n | { kind: 'complete'; payload: { transaction: FrameTransaction } }\n | { kind: 'challenge'; payload: ApplePayFrame.InboundMessageMap['challenge'] }\n | { kind: 'quoteExpired'; payload: { setQuote: (signature: string) => void } }\n | { kind: 'cancelled'; payload: ApplePayFrame.InboundMessageMap['cancelled'] }\n | { kind: 'error'; payload: EventError }\n | { kind: 'unsupported' };\n\nexport interface SetupError {\n kind: 'configurationError' | 'genericError';\n message: string;\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
package/dist/sdks/apple-pay.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/sdks/google-pay.ts"],"sourcesContent":["import type * as GooglePayFrame from '../frames/google-pay.js';\nimport type { FrameTransaction } from '../models/transaction.js';\n\nexport type EventError = {\n kind: 'configurationError' | 'invalidQuote' | 'quoteExpired' | 'genericError';\n message: string;\n};\n\nexport type Event =\n | { kind: 'ready' }\n | { kind: 'buttonPressed' }\n | { kind: 'complete'; payload: { transaction: FrameTransaction } }\n | { kind: 'challenge'; payload: GooglePayFrame.InboundMessageMap['challenge'] }\n | { kind: 'quoteExpired'; payload: { setQuote: (signature: string) => void } }\n | { kind: 'error'; payload: EventError }\n | { kind: 'unsupported' };\n\nexport interface SetupError {\n kind: 'configurationError' | 'genericError';\n message: string;\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/sdks/google-pay.ts"],"sourcesContent":["import type * as GooglePayFrame from '../frames/google-pay.js';\nimport type { FrameTransaction } from '../models/transaction.js';\n\nexport type EventError = {\n kind: 'configurationError' | 'invalidQuote' | 'quoteExpired' | 'genericError';\n message: string;\n};\n\nexport type Event =\n | { kind: 'ready' }\n | { kind: 'buttonPressed' }\n | { kind: 'complete'; payload: { transaction: FrameTransaction } }\n | { kind: 'challenge'; payload: GooglePayFrame.InboundMessageMap['challenge'] }\n | { kind: 'quoteExpired'; payload: { setQuote: (signature: string) => void } }\n | { kind: 'cancelled'; payload: GooglePayFrame.InboundMessageMap['cancelled'] }\n | { kind: 'error'; payload: EventError }\n | { kind: 'unsupported' };\n\nexport interface SetupError {\n kind: 'configurationError' | 'genericError';\n message: string;\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|