Order create, disabling credit card as payment method.
piekarski
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Jun-14-2019
08:46 AM
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
Labels:
Login to Me Too
- Labels:
-
Payments REST APIs
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.
Related Content
- Add Others data in SDKs
- Need help to integrate PayPal Checkout with Ecwid in PayPal Upgrade Community
- Issue with Rendering Trustly Payment Button via PayPal JavaScript SDK in SDKs
- How to add pay as you go option to buttons in PayPal Payments Standard
- Unable to connect my paypal account to my prestashop account in PayPal Payments Standard