Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Commit

Permalink
Merge branch 'main' into isaac/payments_fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
IDubuque authored Jan 3, 2024
2 parents f4adaa6 + 8f0d37c commit 48c7e27
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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). |
Expand Down Expand Up @@ -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. |

Expand Down

0 comments on commit 48c7e27

Please sign in to comment.