Raj
Raj

Reputation: 499

Braintree partial settlement not working

Braintree Partial Settlement not working for this code .If I write this code the page set blank with no error or no message.

Braintree\Transaction::submitForPartialSettlement('transaction_id', '10.00');

please give answer if anyone have idea.

Upvotes: 0

Views: 172

Answers (1)

Nadeem0035
Nadeem0035

Reputation: 3957

Multiple partial settlements are only available for PayPal transactions.

$result = Braintree_Transaction::submitForPartialSettlement('theParentAuthTransactionId', '10.00');

    if ($result->success) {
        $settledTransaction = $result->transaction;
    } else {
        print_r($result->errors);
    }

Upvotes: 1

Related Questions