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 c21763337..b37d6fa5b 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 @@ -72,7 +72,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). | @@ -129,7 +129,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. |