question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sandbox - Creating a merchant account always returns 82607

See original GitHub issue

I have created new merchant account id for my app. Why this error showing always? Whether this braintree marketplace was worked in sandbox account?

Request

var merchantAccountParams = {
  individual: {
    firstName: "Jane",
    lastName: "Doe",
    email: "jane@14ladders.com",
    phone: "5553334444",
    dateOfBirth: "1981-11-19",
    ssn: "456-45-4567",
    address: {
      streetAddress: "111 Main St",
      locality: "Chicago",
      region: "IL",
      postalCode: "60622"
    }
  },
  funding: {
    descriptor: "Blue Ladders",
    destination: braintree.MerchantAccount.FundingDestination.Bank,
    email: "funding@blueladders.com",
    mobilePhone: "5555555555",
    accountNumber: "1123581321",
    routingNumber: "071101307"
  },
  tosAccepted: true,
  masterMerchantAccountId: "12ink_tattoo",
  id: "blue_ladders_store"
};

gateway.merchantAccount.create(merchantAccountParams, function (err, result) {
	if (err) res.status(403).json(err);
});

Responds

"data": {
    "errors": {
        "validationErrors": {},
        "errorCollections": {
            "merchantAccount": {
                "validationErrors": {
                    "masterMerchantAccountId": [
                        {
                            "attribute": "master_merchant_account_id",
                            "code": "82607",
                            "message": "Master merchant account ID is invalid."
                        }
                    ]
                },
                "errorCollections": {}
            }
        }
    },
    "params": {
        "merchantAccount": {
            "individual": {
                "firstName": "Jane",
                "lastName": "Doe",
                "email": "jane@14ladders.com",
                "phone": "5553334444",
                "address": {
                    "streetAddress": "111 Main St",
                    "locality": "Chicago",
                    "region": "IL",
                    "postalCode": "60622"
                }
            },
            "business": {
                "legalName": "Jane's Ladders",
                "dbaName": "Jane's Ladders",
                "address": {
                    "streetAddress": "111 Main St",
                    "locality": "Chicago",
                    "region": "IL",
                    "postalCode": "60622"
                }
            },
            "funding": {
                "descriptor": "Blue Ladders",
                "destination": "bank",
                "email": "funding@blueladders.com",
                "mobilePhone": "5555555555"
            },
            "tosAccepted": "true",
            "masterMerchantAccountId": "test",
            "id": "blue_ladders_store"
        },
        "merchantId": "p7cg27qszffyy3vp"
    },
    "message": "Master merchant account ID is invalid.",
    "success": false
}

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
crookedneighborcommented, Sep 25, 2019

That error is found here: https://developers.braintreepayments.com/reference/general/validation-errors/all/ruby#code-82607

Master merchant account ID is invalid. You’ll get this error if we cannot find a master merchant account with the id specified.

Please review the master merchant account you are passing in and verify that it matches the id of the one you are trying to use. If you need further assistance, contact our support team. https://help.braintreepayments.com/

0reactions
crookedneighborcommented, Aug 4, 2021
Read more comments on GitHub >

github_iconTop Results From Across the Web

My sandbox account is not properly configured with merchant ...
My sandbox account is not properly configured with merchant account credentials and hence I am not able to process online payments.
Read more >
Sandbox | Braintree Payments
Entering our sandbox allows you to get a feel for the Braintree experience before applying for a merchant account or going to production....
Read more >
Masterpass Sandbox Testing Guidelines
To set up a Masterpass test wallet account and test the experience in the sandbox environment, complete the following instructions.
Read more >
Testing Guide - Authorize.net Developer
Your sandbox should always be set to Live Mode. Transactions submitted in test mode are not stored and will return a transaction ID...
Read more >
Sandbox - Developers | Vantiv
4100117890123000, 001, Account Updater, Nothing needed, new randomly ... One triggeredRule tag will always be returned by default from the Sandbox and a ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found