Skip to content

Commit bdc987d

Browse files
author
Alejandro Gastelum Flores
committed
Updated CardFieldsProvider comment
1 parent b6c2f70 commit bdc987d

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

packages/react-paypal-js/src/v6/components/CardFieldsProvider.tsx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,15 @@ type CardFieldsProviderProps = {
4040
* {@link CardFieldsProvider} creates the appropriate Card Fields session based on the `sessionType` prop value, and then provides it to child components that require it.
4141
*
4242
* @example
43-
* <CardFieldsProvider sessionType={"one-time-payment"}>
44-
* <CheckoutForm />
45-
* </CardFieldsProvider>
43+
* <PayPalProvider
44+
* components={["card-fields"]}
45+
* clientToken={clientToken}
46+
* pageType="checkout"
47+
* >
48+
* <CardFieldsProvider sessionType={"one-time-payment"}>
49+
* <CheckoutForm />
50+
* </CardFieldsProvider>
51+
* </PayPalProvider>
4652
*/
4753
export const CardFieldsProvider = ({
4854
children,

0 commit comments

Comments
 (0)