简体   繁体   English

如何使用PayPal结帐隐藏信用卡选项

[英]How to hide credit card option using PayPal checkout

I'm following the example on the Quick Start page, which shows the following code: 我遵循“ 快速入门”页面上的示例,该示例显示以下代码:

<div id="paypal-button"></div>
<script src="https://www.paypalobjects.com/api/checkout.js"></script>
<script>
paypal.Button.render({
  env: 'sandbox',
  client: {
    sandbox: 'demo_sandbox_client_id'
  },
  payment: function (data, actions) {
    return actions.payment.create({
      transactions: [{
        amount: {
          total: '0.01',
          currency: 'USD'
        }
      }]
    });
  },
  onAuthorize: function (data, actions) {
    return actions.payment.execute()
      .then(function () {
        window.alert('Thank you for your purchase!');
      });
  }
}, '#paypal-button');
</script>

I would like to remove the option to pay by credit card, and only allow the user to pay using their PayPal credit - how do I do this? 我想删除使用信用卡付款的选项,而只允许用户使用其PayPal信用卡付款-我该怎么做?

We had a client ask for this a couple of months back, in combination with a PrestaShop setup and the official PayPal plugin they provide. 几个月前,我们有一个客户要求将其与PrestaShop设置和他们提供的官方PayPal插件结合在一起。

I called PayPal support and asked, but they said with the normal checkout that option wasn't available, and the customer would have to switch to some more powerful/extensive option for that to become available. 我打电话给贝宝(PayPal)支持并询问,但他们说,在正常结帐时该选项不可用,客户必须切换到一些更强大/更广泛的选项才能使用该选项。 (I don't remember the specific details, but that was more or less the gist of it.) (我不记得具体的细节,但这或多或少是要点。)


Not sure how much that might differ based on what countries one operates in, what exact PayPal options are “booked” in the account, etc. If your customer desperately wants this, then I'd recommend you contact PayPal support yourself with all the details, to have them confirm whether there is absolutely no way, or if there are specific circumstances/options ... 不确定会因所在国家/地区,帐户中“预定”的确切PayPal选项等而有多少不同。如果您的客户迫切希望这样做,那么我建议您与PayPal支持人员联系以获取所有详细信息,让他们确认是否绝对没有办法,或者是否有特定的情况/选择...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM