Hi So basically I'm trying to follow the steps outlined here: https://developer.paypal.com/docs/accept-payments/express-checkout/ec-braintree-sdk/get-started/ I've setup a sandbox buyer and seller account. I've followed all the steps up to the last one were the server is going to contact paypal to process the transaction. Nothing I do seems to work. I'm currently getting a 2046 error of payment declined. Below is my code: $gateway = new Braintree_Gateway(array( 'accessToken' => $config->paypalSandBoxAccessToken, )); $result = $gateway->transaction()->sale([ "amount" => $data->sessionData->cost, 'merchantAccountId' => 'USD', "paymentMethodNonce" =>$data->paymentMethodNonce, "orderId" => $data->orderId, ]); orderId and paymentMethodNonce are both recieved from the front end. They look like this: EC-6L947388H34*** 92fab846-f700-0b29-7aa2-a3481e*** The transaction type is a paypal payment without any shipping details. Thanks in advance
... View more