From d862b2db86b87affd35821e89fe7341cfd5272b4 Mon Sep 17 00:00:00 2001 From: Isaac Dubuque Date: Tue, 2 Jan 2024 17:17:49 -0800 Subject: [PATCH] update PaperSDKError typename to PaymentsSDKError --- .../0 Embedded Elements/1 CheckoutWithCard.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/onboarding/22 NFT Checkouts/1b Advanced Guides/0 Embedded Elements/1 CheckoutWithCard.mdx b/docs/onboarding/22 NFT Checkouts/1b Advanced Guides/0 Embedded Elements/1 CheckoutWithCard.mdx index d5194dbae..64a4b00c8 100644 --- a/docs/onboarding/22 NFT Checkouts/1b Advanced Guides/0 Embedded Elements/1 CheckoutWithCard.mdx +++ b/docs/onboarding/22 NFT Checkouts/1b Advanced Guides/0 Embedded Elements/1 CheckoutWithCard.mdx @@ -68,7 +68,7 @@ import { CheckoutWithCard } from "@thirdweb-dev/react"; | clientId **\*** | string | thirdweb client ID (Obtained from an API key which you can generate on the [Dashboard](https://thirdweb.com/dashboard)) | | configs **\*** | object | A list of configs to create your card checkout element. Fields are the same as the ones found in the [Create Checkout Elements Client Secret](https://docs.withpaper.com/reference/create-checkout-elements-client-secret) API. | | onPaymentSuccess **\*** | ({ transactionId: string; }) => void | This method is called after the payment has been submitted for processing. This payment may still be rejected by the cardholder's bank. | -| onError | (PaperSDKError) => void | This method is called when an error is encountered. | +| onError | (PaymentsSDKError) => void | This method is called when an error is encountered. | | onPriceUpdate | ({ quantity: number; unitPrice: PriceDetail; networkFees: PriceDetail; serviceFees: PriceDetail; total: PriceDetail; }) => void | This method is called when the price is updated or loaded for the first time. This summary is helpful to show a granular price breakdown. Where PriceDetail is { display: string; valueInSubunits: number; currency: string; } | | locale | enum Valid values: `en`, `fr`, `es`, `it`, `de`, `ja`, `ko`, `zh` | The language to show text in. Defaults to `en`. | | options | object | Customize component styling. See [Customization](#customization). | @@ -125,7 +125,7 @@ createCheckoutWithCardElement({ | locale | enum (Valid values: `en`, `fr`, `es`, `it`, `de`, `ja`, `ko`, `zh`) | The language to show text in. Defaults to `en`. | | options | object | Customize component styling. See [Customization](#customization). | | onLoad | () => void | This method is called when the iframe loads. | -| onError | (error: PaperSDKError) => void | This method is called when an error occurs during the payment process. | +| onError | (error: PaymentsSDKError) => void | This method is called when an error occurs during the payment process. | | onPaymentSuccess | (props: { transactionId: string }) => void | This method is called when the buyer has successfully paid. | | onReview | (props: { cardholderName: string, id: string }) => void | This method is called after the user enters their card details. |