Order create, disabling credit card as payment method.

piekarski
Contributor
Contributor

Hey, I'm using paypal smart buttons to create order my button code looks like that

<PayPalButton
  createOrder={(data, actions) => payPalCreateOrder(data, actions, { ...customSubmitsData, submitIndex })}
  onApprove={(data, actions) => payPalOnApprove(data, actions, { ...customSubmitsData, submitIndex })}
  options={{
   clientId: PAYPAL_CLIENT_ID,
   intent: 'authorize',
   'disable-funding': 'card,credit,sepa',
  }}
  style={{
   color: 'white',
   layout: 'horizontal',
   shape: 'pill',
   label: 'paypal',
   tagline: false,
  }}
 />
everything is fine till now. when I click PayPal button to authorize payment, config of my action is 

actions.order.create({
   purchase_units: [{
    amount: {
     currency_code: 'USD',
     value: val,
    },
   }],
   application_context: {
    shipping_preference: 'NO_SHIPPING',
   },
  })
 
is there any method to disable credit cards from funding? I want to make customers able to pay only with PayPal account balance.
thank from advance
Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.