We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ef6c66 commit 172059fCopy full SHA for 172059f
2 files changed
.changeset/dirty-lions-serve.md
@@ -0,0 +1,5 @@
1
+---
2
+"@godaddy/react": patch
3
4
+
5
+Limit paypal express to paypal button only
packages/react/src/components/checkout/payment/checkout-buttons/paypal/paypal.tsx
@@ -1,4 +1,8 @@
-import { PayPalButtons, usePayPalScriptReducer } from '@paypal/react-paypal-js';
+import {
+ FUNDING,
+ PayPalButtons,
+ usePayPalScriptReducer,
+} from '@paypal/react-paypal-js';
6
import { useState } from 'react';
7
import { useFormContext } from 'react-hook-form';
8
import { useCheckoutContext } from '@/components/checkout/checkout';
@@ -88,6 +92,7 @@ function PayPalButtonsWrapper() {
88
92
89
93
return (
90
94
<PayPalButtons
95
+ fundingSource={FUNDING.PAYPAL}
91
96
style={{
97
layout: 'vertical',
98
label: 'pay',
0 commit comments