我正在使用高级集成程序来集成贝宝按钮,但我想将按钮的默认图像更改为包含信用卡徽标的按钮,例如:
<script src="https://www.paypalobjects.com/api/checkout.js"></script>
<div id="paypal-button"></div>
<script>
paypal.Button.render({
env: 'sandbox',
locale:'it_IT',
payment: function(resolve, reject) {
var CREATE_PAYMENT_URL = '/make-payment';
paypal.request.post(CREATE_PAYMENT_URL)
.then(function(data) { resolve(data.paymentID); })
.catch(function(err) { reject(err); });
},
style: {
size: 'medium',
color: 'blue',
shape: 'rect'
},
onAuthorize: function(data, actions) {
console.log("done")
}
}, '#paypal-button');
</script>
通过阅读文档,似乎无法设置属性来更改默认的贝宝图像。有任何想法吗?