Paypal JS SDK 智能支付 - 禁用无账户信用卡支付的地址提示 [英] Paypal JS SDK Smart Payment - Disable address promt for Creditcard payment without account

查看:36
本文介绍了Paypal JS SDK 智能支付 - 禁用无账户信用卡支付的地址提示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 paypal 结帐中集成了智能支付按钮

I'm integrating the Smart Payment Buttons in the paypal checkout

<script src="https://www.paypal.com/sdk/js?...>
paypal.Buttons({
createOrder(data, actions) {
// ...
onApprove(data, actions) {
// ...
}).render('#paypal-button');

除了使用 PayPal 帐户付款外,我们还希望用户可以使用 SEPA 或信用卡为我们的数字产品付款,而无需创建贝宝帐户.

Besides paying with a PayPal account we want to offer the User to pay for our digital products with SEPA or Credit Card without creating a paypal account.

我们不需要用户输入的帐单地址或送货地址.我们已经拥有该信息并自行处理帐单,而送货不适用.

What we don't require is a billing address or shipping address input from the user. We already have that information and handle billing ourselves, while shipping is not applicable.

有没有办法使用 JS SDK 禁用地址输入(最好还有联系信息输入)?我可以传递给 SDK 资源或 paypal.Buttons.render() 方法的任何参数?当通过其他支付提供商使用信用卡支付时,他们从不关心该用户信息.对于一个好的用户体验来说,数字、到期时间和 CVS 应该很重要.即使输入 CC 号码也已经很痛苦了.这同样适用于使用 SEPA 付款.我只是不希望用户必须输入他们的地址.

Is there any way to disable the address input (and preferable also contact information input) using the JS SDK? Any parameter I can pass to the SDK resource or the paypal.Buttons.render() method? When paying with a Credit Card through other payment providers they never care for that user information. Just the Number, Expiration and CVS should matter for a good UX. Even entering a CC number can already be quite a pain. The same applies to payment with SEPA. I just don't want the user to have to enter their address.

或者我是否必须将客户信息传递给 PayPal 以帮助预防欺诈?如果是这样,我可以至少禁用运送到帐单地址"复选框吗?这可能会让我们的用户感到困惑.

Or do I have to pass the customer information to PayPal to help with fraud prevention? If so, can I at least disable the "Ship to billing address" checkbox? That might confuse our Users.

谢谢!

推荐答案

您需要将application_context对象的shipping_preference参数设置为'NO_SHIPPING':

You need to set shipping_preference parameter of the application_context object to 'NO_SHIPPING':

paypal.Buttons({
  createOrder: function(data, actions) {
    return actions.order.create({
      purchase_units: [{ amount: { value: 99.00 } }],

      application_context: {
        shipping_preference: 'NO_SHIPPING'
      }

    });
  },
  onApprove: function(data, actions) {}
}).render(button);

您可以阅读有关应用程序上下文对象

这篇关于Paypal JS SDK 智能支付 - 禁用无账户信用卡支付的地址提示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆