You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/components/PayPalButtons.js
+5
Original file line number
Diff line number
Diff line change
@@ -54,6 +54,11 @@ PayPalButtons.propTypes = {
54
54
* Sets up a subscription. Called when the buyer clicks the PayPal button.
55
55
*/
56
56
createSubscription: PropTypes.func,
57
+
/**
58
+
* The individual button to render. Use the `FUNDING` constant exported by this library to set this value. The full list can be found [here](https://developer.paypal.com/docs/checkout/integration-features/standalone-buttons/#complete-your-integration).
59
+
*/
60
+
fundingSource: PropTypes.string,
61
+
57
62
/**
58
63
* Approved styling options for customizing layout, color, shape, and labels.
Copy file name to clipboardexpand all lines: src/components/PayPalMarks.js
+12-10
Original file line number
Diff line number
Diff line change
@@ -9,25 +9,27 @@ import { useScriptReducer } from "../ScriptContext";
9
9
* <PayPalMarks />
10
10
* ```
11
11
*
12
-
* It can also be configured to use a single funding source similar to the [standalone buttons](https://developer.paypal.com/docs/checkout/integration-features/standalone-buttons/) approach using the `fundingSource` prop.
12
+
* This component can also be configured to use a single funding source similar to the [standalone buttons](https://developer.paypal.com/docs/checkout/integration-features/standalone-buttons/) approach.
13
+
* A `FUNDING` object is exported by this library which has a key for every available funding source option.
14
+
*
15
+
* ```js
16
+
* import { FUNDING } from '@paypal/react-paypal-js'
17
+
* ```
18
+
*
19
+
* Use this `FUNDING` constant to set the `fundingSource` prop.
* The individual mark to render. The full list can be found [here](https://developer.paypal.com/docs/checkout/integration-features/standalone-buttons/#complete-your-integration).
45
+
* The individual mark to render. Use the `FUNDING` constant exported by this library to set this value. The full list can be found [here](https://developer.paypal.com/docs/checkout/integration-features/standalone-buttons/#complete-your-integration).
0 commit comments