@moonpay/platform-sdk-react-native 1.27.0 → 1.28.1
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/README.md +16 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +16 -4
- package/dist/index.d.ts +16 -4
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -85,6 +85,7 @@ interface AddCardFrame {
|
|
|
85
85
|
dispose(): void;
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
+
/** @deprecated Render `<MoonPayBuyButton>` instead. The Apple Pay frame is being removed. */
|
|
88
89
|
interface SetupApplePayOptions {
|
|
89
90
|
/** Quote signature from getQuote(). */
|
|
90
91
|
quote: string;
|
|
@@ -97,6 +98,7 @@ interface SetupApplePayOptions {
|
|
|
97
98
|
/** Callback for Apple Pay lifecycle events. */
|
|
98
99
|
onEvent?: (event: ApplePaySdk.Event) => void;
|
|
99
100
|
}
|
|
101
|
+
/** @deprecated Render `<MoonPayBuyButton>` instead. The Apple Pay frame is being removed. */
|
|
100
102
|
interface ApplePayFrame {
|
|
101
103
|
/** Update the quote (e.g., after expiry). */
|
|
102
104
|
setQuote(signature: string): void;
|
|
@@ -204,6 +206,7 @@ interface CustomerExportFrame {
|
|
|
204
206
|
dispose(): void;
|
|
205
207
|
}
|
|
206
208
|
|
|
209
|
+
/** @deprecated Render `<MoonPayBuyButton>` instead. The Google Pay frame is being removed. */
|
|
207
210
|
interface SetupGooglePayOptions {
|
|
208
211
|
/** Quote signature from getQuote(). */
|
|
209
212
|
quote: string;
|
|
@@ -214,6 +217,7 @@ interface SetupGooglePayOptions {
|
|
|
214
217
|
/** Callback for Google Pay lifecycle events. */
|
|
215
218
|
onEvent?: (event: GooglePaySdk.Event) => void;
|
|
216
219
|
}
|
|
220
|
+
/** @deprecated Render `<MoonPayBuyButton>` instead. The Google Pay frame is being removed. */
|
|
217
221
|
interface GooglePayFrame {
|
|
218
222
|
/** Update the quote (e.g., after expiry). */
|
|
219
223
|
setQuote(signature: string): void;
|
|
@@ -292,13 +296,13 @@ interface RNClient {
|
|
|
292
296
|
data: TransactionWithStages;
|
|
293
297
|
}, SimulateBankTransferError>>;
|
|
294
298
|
setupWidget(options: SetupWidgetOptions): Promise<Result<WidgetFrame, WidgetSdk.SetupError>>;
|
|
295
|
-
/** @deprecated Render
|
|
299
|
+
/** @deprecated Render `<MoonPayBuyButton>` instead. It renders the Apple Pay button for an Apple Pay quote. The Apple Pay frame is being removed. */
|
|
296
300
|
setupApplePay(options: SetupApplePayOptions): Promise<Result<ApplePayFrame, ApplePaySdk.SetupError>>;
|
|
297
301
|
/** @deprecated Use `setupBuyButton({ ...options, headless: true })` or `<MoonPayBuyButton headless>`. The buy frame is being removed. */
|
|
298
302
|
setupBuy(options: SetupBuyOptions): Promise<Result<BuyFrame, BuySdk.SetupError>>;
|
|
299
303
|
/** @deprecated Render <MoonPayBuyButton> instead — it mounts inline where you place it. */
|
|
300
304
|
setupBuyButton(options: SetupBuyButtonOptions): Promise<Result<BuyButtonFrame, BuyButtonSdk.SetupError>>;
|
|
301
|
-
/** @deprecated Render
|
|
305
|
+
/** @deprecated Render `<MoonPayBuyButton>` instead. It renders the Google Pay button for a Google Pay quote. The Google Pay frame is being removed. */
|
|
302
306
|
setupGooglePay(options: SetupGooglePayOptions): Promise<Result<GooglePayFrame, GooglePaySdk.SetupError>>;
|
|
303
307
|
deletePaymentMethod(id: string): Promise<Result<void, DevPlatformApiError>>;
|
|
304
308
|
/**
|
|
@@ -366,6 +370,7 @@ interface MoonPayAddCardProps {
|
|
|
366
370
|
/** Inline add-card frame — embed card entry in your own layout/animation. */
|
|
367
371
|
declare function MoonPayAddCard({ onEvent, style, webViewProps }: MoonPayAddCardProps): JSX.Element;
|
|
368
372
|
|
|
373
|
+
/** @deprecated Use `MoonPayBuyButtonProps`. The Apple Pay frame is being removed. */
|
|
369
374
|
interface MoonPayApplePayButtonProps {
|
|
370
375
|
/** Quote signature from getQuote(). Reactive — updates are pushed via setQuote without remounting. */
|
|
371
376
|
quote: string;
|
|
@@ -387,7 +392,10 @@ interface MoonPayApplePayButtonProps {
|
|
|
387
392
|
*/
|
|
388
393
|
onRef?: (webView: WebView | null) => void;
|
|
389
394
|
}
|
|
390
|
-
/**
|
|
395
|
+
/**
|
|
396
|
+
* Inline Apple Pay button. Render it wherever it should appear in your layout.
|
|
397
|
+
* @deprecated Render `<MoonPayBuyButton>` instead. It renders the Apple Pay button for an Apple Pay quote. The Apple Pay frame is being removed.
|
|
398
|
+
*/
|
|
391
399
|
declare function MoonPayApplePayButton({ quote, externalTransactionId, applePayButtonSettings, onEvent, style, webViewProps, onRef, }: MoonPayApplePayButtonProps): JSX.Element;
|
|
392
400
|
|
|
393
401
|
interface MoonPayAuthProps {
|
|
@@ -531,6 +539,7 @@ interface MoonPayCustomerExportProps {
|
|
|
531
539
|
/** Inline customer-export consent frame — embed export consent capture in your own layout. */
|
|
532
540
|
declare function MoonPayCustomerExport({ onEvent, style, webViewProps, }: MoonPayCustomerExportProps): JSX.Element;
|
|
533
541
|
|
|
542
|
+
/** @deprecated Use `MoonPayBuyButtonProps`. The Google Pay frame is being removed. */
|
|
534
543
|
interface MoonPayGooglePayButtonProps {
|
|
535
544
|
/** Quote signature from getQuote(). Reactive — updates are pushed via setQuote without remounting. */
|
|
536
545
|
quote: string;
|
|
@@ -543,7 +552,10 @@ interface MoonPayGooglePayButtonProps {
|
|
|
543
552
|
/** Advanced props forwarded to the underlying react-native-webview. `ref`, `source`, and `onMessage` are SDK-managed. */
|
|
544
553
|
webViewProps?: Partial<WebViewProps>;
|
|
545
554
|
}
|
|
546
|
-
/**
|
|
555
|
+
/**
|
|
556
|
+
* Inline Google Pay button. Render it wherever it should appear in your layout.
|
|
557
|
+
* @deprecated Render `<MoonPayBuyButton>` instead. It renders the Google Pay button for a Google Pay quote. The Google Pay frame is being removed.
|
|
558
|
+
*/
|
|
547
559
|
declare function MoonPayGooglePayButton({ quote, externalTransactionId, onEvent, style, webViewProps, }: MoonPayGooglePayButtonProps): JSX.Element;
|
|
548
560
|
|
|
549
561
|
interface MoonPayWidgetProps {
|
package/dist/index.d.ts
CHANGED
|
@@ -85,6 +85,7 @@ interface AddCardFrame {
|
|
|
85
85
|
dispose(): void;
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
+
/** @deprecated Render `<MoonPayBuyButton>` instead. The Apple Pay frame is being removed. */
|
|
88
89
|
interface SetupApplePayOptions {
|
|
89
90
|
/** Quote signature from getQuote(). */
|
|
90
91
|
quote: string;
|
|
@@ -97,6 +98,7 @@ interface SetupApplePayOptions {
|
|
|
97
98
|
/** Callback for Apple Pay lifecycle events. */
|
|
98
99
|
onEvent?: (event: ApplePaySdk.Event) => void;
|
|
99
100
|
}
|
|
101
|
+
/** @deprecated Render `<MoonPayBuyButton>` instead. The Apple Pay frame is being removed. */
|
|
100
102
|
interface ApplePayFrame {
|
|
101
103
|
/** Update the quote (e.g., after expiry). */
|
|
102
104
|
setQuote(signature: string): void;
|
|
@@ -204,6 +206,7 @@ interface CustomerExportFrame {
|
|
|
204
206
|
dispose(): void;
|
|
205
207
|
}
|
|
206
208
|
|
|
209
|
+
/** @deprecated Render `<MoonPayBuyButton>` instead. The Google Pay frame is being removed. */
|
|
207
210
|
interface SetupGooglePayOptions {
|
|
208
211
|
/** Quote signature from getQuote(). */
|
|
209
212
|
quote: string;
|
|
@@ -214,6 +217,7 @@ interface SetupGooglePayOptions {
|
|
|
214
217
|
/** Callback for Google Pay lifecycle events. */
|
|
215
218
|
onEvent?: (event: GooglePaySdk.Event) => void;
|
|
216
219
|
}
|
|
220
|
+
/** @deprecated Render `<MoonPayBuyButton>` instead. The Google Pay frame is being removed. */
|
|
217
221
|
interface GooglePayFrame {
|
|
218
222
|
/** Update the quote (e.g., after expiry). */
|
|
219
223
|
setQuote(signature: string): void;
|
|
@@ -292,13 +296,13 @@ interface RNClient {
|
|
|
292
296
|
data: TransactionWithStages;
|
|
293
297
|
}, SimulateBankTransferError>>;
|
|
294
298
|
setupWidget(options: SetupWidgetOptions): Promise<Result<WidgetFrame, WidgetSdk.SetupError>>;
|
|
295
|
-
/** @deprecated Render
|
|
299
|
+
/** @deprecated Render `<MoonPayBuyButton>` instead. It renders the Apple Pay button for an Apple Pay quote. The Apple Pay frame is being removed. */
|
|
296
300
|
setupApplePay(options: SetupApplePayOptions): Promise<Result<ApplePayFrame, ApplePaySdk.SetupError>>;
|
|
297
301
|
/** @deprecated Use `setupBuyButton({ ...options, headless: true })` or `<MoonPayBuyButton headless>`. The buy frame is being removed. */
|
|
298
302
|
setupBuy(options: SetupBuyOptions): Promise<Result<BuyFrame, BuySdk.SetupError>>;
|
|
299
303
|
/** @deprecated Render <MoonPayBuyButton> instead — it mounts inline where you place it. */
|
|
300
304
|
setupBuyButton(options: SetupBuyButtonOptions): Promise<Result<BuyButtonFrame, BuyButtonSdk.SetupError>>;
|
|
301
|
-
/** @deprecated Render
|
|
305
|
+
/** @deprecated Render `<MoonPayBuyButton>` instead. It renders the Google Pay button for a Google Pay quote. The Google Pay frame is being removed. */
|
|
302
306
|
setupGooglePay(options: SetupGooglePayOptions): Promise<Result<GooglePayFrame, GooglePaySdk.SetupError>>;
|
|
303
307
|
deletePaymentMethod(id: string): Promise<Result<void, DevPlatformApiError>>;
|
|
304
308
|
/**
|
|
@@ -366,6 +370,7 @@ interface MoonPayAddCardProps {
|
|
|
366
370
|
/** Inline add-card frame — embed card entry in your own layout/animation. */
|
|
367
371
|
declare function MoonPayAddCard({ onEvent, style, webViewProps }: MoonPayAddCardProps): JSX.Element;
|
|
368
372
|
|
|
373
|
+
/** @deprecated Use `MoonPayBuyButtonProps`. The Apple Pay frame is being removed. */
|
|
369
374
|
interface MoonPayApplePayButtonProps {
|
|
370
375
|
/** Quote signature from getQuote(). Reactive — updates are pushed via setQuote without remounting. */
|
|
371
376
|
quote: string;
|
|
@@ -387,7 +392,10 @@ interface MoonPayApplePayButtonProps {
|
|
|
387
392
|
*/
|
|
388
393
|
onRef?: (webView: WebView | null) => void;
|
|
389
394
|
}
|
|
390
|
-
/**
|
|
395
|
+
/**
|
|
396
|
+
* Inline Apple Pay button. Render it wherever it should appear in your layout.
|
|
397
|
+
* @deprecated Render `<MoonPayBuyButton>` instead. It renders the Apple Pay button for an Apple Pay quote. The Apple Pay frame is being removed.
|
|
398
|
+
*/
|
|
391
399
|
declare function MoonPayApplePayButton({ quote, externalTransactionId, applePayButtonSettings, onEvent, style, webViewProps, onRef, }: MoonPayApplePayButtonProps): JSX.Element;
|
|
392
400
|
|
|
393
401
|
interface MoonPayAuthProps {
|
|
@@ -531,6 +539,7 @@ interface MoonPayCustomerExportProps {
|
|
|
531
539
|
/** Inline customer-export consent frame — embed export consent capture in your own layout. */
|
|
532
540
|
declare function MoonPayCustomerExport({ onEvent, style, webViewProps, }: MoonPayCustomerExportProps): JSX.Element;
|
|
533
541
|
|
|
542
|
+
/** @deprecated Use `MoonPayBuyButtonProps`. The Google Pay frame is being removed. */
|
|
534
543
|
interface MoonPayGooglePayButtonProps {
|
|
535
544
|
/** Quote signature from getQuote(). Reactive — updates are pushed via setQuote without remounting. */
|
|
536
545
|
quote: string;
|
|
@@ -543,7 +552,10 @@ interface MoonPayGooglePayButtonProps {
|
|
|
543
552
|
/** Advanced props forwarded to the underlying react-native-webview. `ref`, `source`, and `onMessage` are SDK-managed. */
|
|
544
553
|
webViewProps?: Partial<WebViewProps>;
|
|
545
554
|
}
|
|
546
|
-
/**
|
|
555
|
+
/**
|
|
556
|
+
* Inline Google Pay button. Render it wherever it should appear in your layout.
|
|
557
|
+
* @deprecated Render `<MoonPayBuyButton>` instead. It renders the Google Pay button for a Google Pay quote. The Google Pay frame is being removed.
|
|
558
|
+
*/
|
|
547
559
|
declare function MoonPayGooglePayButton({ quote, externalTransactionId, onEvent, style, webViewProps, }: MoonPayGooglePayButtonProps): JSX.Element;
|
|
548
560
|
|
|
549
561
|
interface MoonPayWidgetProps {
|