braintree / braintree_php

Braintree PHP library
https://developer.paypal.com/braintree/docs/start/overview
MIT License
544 stars 225 forks source link

Braintree Sale Transaction is Working #208

Closed vickymessii closed 6 years ago

vickymessii commented 6 years ago

General information

Firstly, I am creating a sub_merchant for payment, then, I want to make a transaction, but when I am going to Create a Sale Transaction, I am getting is currently unable to handle this request. HTTP ERROR 500 I am using this Code.

$mid = $result->merchantAccount->id;
    $res = Braintree_Transaction::sale([
      'merchantAccountId' =>$mid,
      'amount' => $amount, 
      'paymentMethodNonce' => $nonce,
      'serviceFeeAmount' => $serviceFeeAmount
    ]);
bluk commented 6 years ago

Please contact Braintree Support for help with your integration.

dipen-apptrait commented 6 years ago

I am facing same issue. How did you fix it?

crookedneighbor commented 6 years ago

@dipen-apptrait Please contact Braintree Support for help with your integration.