0

I want to use user "device_data" with braintree js client, but the the data not passed and $_POST['device_data'] is valid method! I try this on sandbox! does it differ on production environment?

here are my codes!

<div style="max-width:300px; margin:20px auto;">
    <form id="checkout" method="post" action="patch/to/checkout">
        <div id="payment-form"></div>
        <input type="submit" value="Pay" />
    </form>
</div>
<script src="https://js.braintreegateway.com/v2/braintree.js"></script>
<script>
var clientToken = "clientTokenFromPHP";
braintree.setup(clientToken, "dropin", {
    dataCollector: {
        kount: {environment: 'sandbox'},
        paypal: true
    },
    onReady: function (braintreeInstance) {
        braintreeInstance.deviceData;
    },
    container: "payment-form",

});
</script>

i try to echo the $_POST['device_data'] on checkout page but it was undefined! how can i fix this?

4

1 回答 1

0

全面披露:我在布伦特里工作。如果您还有其他问题,请随时联系支持人员

这是在尝试使用deviceData和 dropin 时 Braintree.js 的一个已知问题。我会关注github issue以获取有关此事的更新。

于 2015-12-28T17:05:47.837 回答