贝宝智能按钮发货问题

时间:2021-02-28 17:19:48

标签: paypal-sandbox

我正在使用 paypal 智能按钮,似乎一切正常。 但是,我希望能够更新运费,因此首先使用以下代码进行了小测试...

onShippingChange: function(data, actions) {
if (data.shipping_address.country_code !== 'GB') {
    return actions.reject();
}

However this is really incosistant, it will sometimes work fine and when selected a non GB address will say we do not ship to this address in the paypal popup, but for instance if you press the paypal button again on my website the next当贝宝窗口不再更新运输时,您可以选择任何国家/地区而不会阻止您。

我是不是遗漏了什么,上面的一小段代码看起来很基础。

0 个答案:

没有答案