我已经在我的 PHP 网站上实现了 PayPal。一切正常,但我想显示带有“立即购买”且没有“PayPal”文本的 PayPal 按钮
文档说要设置label:'buynow'
和branding:false
参考链接:- https://developer.paypal.com/docs/archive/checkout/how-to/customize-button/#label
<div id="paypal-button-container" style="width: 180px" class="btn submit"></div>
paypal.Buttons({
style: {
label: 'buynow',
layout: 'horizontal',
color: 'blue',
shape: 'rect',
branding: false,
height : 48
},
fundingSource: paypal.FUNDING.PAYPAL,
// onClick is called when the button is clicked
onClick: function(data, actions) { ... },
createOrder: function(data, actions) { ... }
}).render('#paypal-button-container');
但是“PayPal”这个词仍在显示