UNPKG

@paypal/react-paypal-js

Version:

React components for the PayPal JS SDK

12 lines (8 loc) 747 B
import React from "react"; import { PayPalCardFieldsFormOptions } from "../../types"; /** This `<PayPalCardFieldsForm />` component renders the 4 individual fields for [Card Fields](https://developer.paypal.com/docs/business/checkout/advanced-card-payments/integrate#3-add-javascript-sdk-and-card-form) integrations. This setup relies on the `<PayPalCardFieldsProvider />` parent component, which manages the state related to loading the JS SDK script and performs certain validations before rendering the fields. Note: If you want to have more granular control over the layout of how the fields are rendered, you can alternatively use our Individual Fields. */ export declare const PayPalCardFieldsForm: React.FC<PayPalCardFieldsFormOptions>;