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

查看:388
本文介绍了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)帐户付款外,我们还希望用户无需创建贝宝(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' strong>:

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);

您可以阅读有关应用上下文对象的更多信息

You can read more about Application Context Object

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

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