The below code is embedded in PHP. Currently the dropin UI container is getting displayed however we not able to see the Pay button. We tried creating a custom button and tried the transaction but it lands to the checkout page, which is not found as i think everything needs to be handled by dropin UI Container.
Code:
<html>
<head>
<title>Payment</title>
<script src="https://js.braintreegateway.com/v2/braintree.js"></script>
<script>
braintree.setup("<?php echo $clientToken; ?>", "dropin", {
container: "dropin-container",
paypal: {
singleUse: true,
amount: <?php echo $array["amount"]; ?>,
currency: 'USD'
}
});
</script>
</head>
<body>
<form id="checkout" method="post" action="/checkout">
<div id="dropin-container"></div>
<input type="submit" value="Pay <?php echo $array["amount"]; ?>">
</form>
</body>
</html>