Paypal Checkout按钮未将自定义字段传递到IPN邮件

问题描述 投票:1回答:1

我正在更新我的网站上的PayPal系统,用较新的PayPal Checkout替换旧的PayPal按钮,并且在尝试将自定义字段从按钮脚本传递到IPN消息时遇到问题,我使用该IPN消息使用客户的付款:我收到具有$ _POST字段/值的所有权利的IPN消息,除了$ _POST ['custom']字段始终为空。我正在使用沙盒商家和客户帐户,这是我的按钮代码:

<script src='https://www.paypal.com/sdk/js?client-id=xxxxx&currency=EUR' data-sdk-integration-source='button-factory'></script>
<script>
paypal.Buttons({
    style: {
        shape: 'rect',
        color: 'gold',
        layout: 'horizontal',
        label: 'pay',
        tagline: true
    },
    createOrder: function(data, actions) {
        return actions.order.create({
            purchase_units: [{
                amount: {
                    value: '1'
                },
                custom: '35627187'
            }]
        });
    },
    onApprove: function(data, actions) {
        return actions.order.capture().then(function(details) {
            alert('Transaction completed by ' + details.payer.name.given_name + '!');
        });
    }
}).render('#paypal-button-container');
</script> 
paypal paypal-sandbox paypal-ipn paypal-adaptive-payments express-checkout
1个回答
0
投票
[custom将被忽略
© www.soinside.com 2019 - 2024. All rights reserved.