简体   繁体   English

Paypal 智能按钮无法正确呈现

[英]the Paypal smart Button Doesn't render correctly

I'm using the button with Vuejs but I only need the paypal yellow button, I tried to hide the credit card button with all the ways in the docs and even in here on the stack but it either renders both buttons or half the first button half button , Both buttons我正在使用带有 Vuejs 的按钮,但我只需要 paypal 黄色按钮,我试图用文档中的所有方式隐藏信用卡按钮,甚至在堆栈中,但它要么呈现两个按钮,要么呈现第一个按钮的一半半按钮两个按钮

Here's my script这是我的脚本

loadPaypalScript() {
  const script = document.createElement("script");
  script.src =
    "https://www.paypal.com/sdk/js?client-id=Aeg-skCx0jYCCZ2qE62Wsu_bxR3agmnYX41BuSGRhGwAP_YYEo7rKNL2P49UIHCxJj_tSuoylwkaV4gn&currency=EUR&commit=false&components=buttons,funding-eligibility";
  script.addEventListener("load", () => this.loaded = false);
  document.body.appendChild(script);
},

window.paypal
    .Buttons({
      fundingSource: paypal.FUNDING.PAYPAL,
      locale : this.$i18n.locale == 'de' ? 'de_DE' : 'en_US',
      style: {
        color: 'blue',
        label: 'checkout',
        shape: 'pill',
        fundingicons: false,    /* true | false */
      },

This issue is caused by your site's CSS, the container is not tall enough.这个问题是由于您站点的CSS,容器不够高引起的。

Make sure there are no negative margins or overflow, etc.确保没有负边距或溢出等。

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

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