【发布时间】:2020-10-06 10:37:30
【问题描述】:
我正在使用 PayPal,并想在我当前的网站上添加付款方式 SEPA。 以下是我遵循的一些示例:
- https://developer.paypal.com/docs/checkout/integration-features/standalone-buttons/#funding-sources
- https://demo.paypal.com/de/demo/go_platform/pcRestServerV2/paymentOptions
所以基本上我没有得到上面第二个链接上显示的here 的 SEPA 按钮。
这是我的代码,可帮助您确定我做错了什么。
var FUNDING_SOURCES = [
paypal.FUNDING.PAYPAL,
paypal.FUNDING.VENMO,
paypal.FUNDING.CREDIT,
paypal.FUNDING.CARD,
paypal.FUNDING.SEPA,
];
FUNDING_SOURCES.forEach(function(fundingSource) {
// Initialize the buttons
var button = paypal.Buttons({
fundingSource: fundingSource
});
// Check if the button is eligible
if (button.isEligible()) {
// Render the standalone button for that funding source
button.render('#paypalCheckoutContainer');
}
});
【问题讨论】:
标签: php paypal paypal-sandbox