I am using sandbox
account credentials where my user has all the permissions still when I create a transaction it gives me AuthorizationError
Here is my code.
self.braintree_client.transaction.sale(
{
"amount": charge["amount"],
"payment_method_token": "token_stored",
"merchant_account_id": merchant_id,
"options": {
"submit_for_settlement": True,
},
}
)
Everything works fine If I remove the submit_for_settlement
but I want to settle the payment.
Does anyone have anyone have any idea what I am doing wrong here?
Any help would be appreciated.