We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64a14e2 commit e0153fcCopy full SHA for e0153fc
public_html/checkout.php
@@ -5,7 +5,7 @@
5
$nonce = $_POST["payment_method_nonce"];
6
$nb = $_POST["nb_payments"];
7
8
-if ($nb_payments == 1) {
+if ($nb == 1) {
9
$result = $gateway->transaction()->sale([
10
'amount' => number_format($amount, 2),
11
'paymentMethodNonce' => $nonce,
public_html/index.php
@@ -47,7 +47,7 @@
47
<script src="https://js.braintreegateway.com/web/dropin/1.14.1/js/dropin.min.js"></script>
48
<script>
49
var form = document.querySelector('#payment-form');
50
- var client_token = "<?php echo($gateway->ClientToken()->generate()); ?>";
+ var client_token = "<?php echo($gateway->ClientToken([customerId => '1234'])->generate()); ?>";
51
52
braintree.dropin.create({
53
authorization: client_token,
0 commit comments