如何解决如何使用贝宝代码启用贝宝稍后按钮?
我已尝试使用贝宝标准代码中提供的示例代码启用贝宝稍后按钮。它显示了贝宝稍后消息和贝宝现在按钮。还有如何在没有弹出模式的情况下集成贝宝。
<script src="https://www.paypal.com/sdk/js?client-id=xxxxxxxxxx&components=messages,buttons&debug=true&enable-funding=paylater&disable-funding=credit,card">
</script>
<div id="paypal-button-container"></div>
<script>
paypal.Buttons({
createOrder: function(data,actions) {
return actions.order.create({
purchase_units: [{
amount: {
value: '100.00'
}
}]
});
}
}).render('#paypal-button-container');
</script>
<div
data-pp-message
data-pp-amount="100.00">
</div>
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。