private Account account; account = CloverAccount.getAccount(this); private MerchantConnector merchantConnector; merchantConnector = new MerchantConnector(this, account, null); private Merchant merchant; merchant = merchantConnector.getMerchant(); Then you can access details like; merchant.getAccount().name merchant.getPhoneNumber()
thanks for your reply, I'm doing that but now I'm getting error status code 403 App doesn't have required permission: package does not have permission MERCHANT_R
How did you get the app onto your test device? (sideload?). You need to make sure you install from the app market and have the app configured from the developer dashboard to receive the merchant read permission.
Yes, you are right, I side-loaded the app, that's correct thank you very much.
How do we access this information from a side-loaded apk. If that's impossible, how can we test this before pushing the feature live?
You have to upload an APK to the sandbox environment and install it through the app market.
Right now getting below info
Merchant{id=XYZ, name=Test 01, currency=USD, timeZone=Mountain Standard Time (America/Phoenix), account=Account {name=Test 01 | dev@clover.com (DEV), type=com.clover.account}, address=MerchantAddress{address1=Us Highway 46, address2=, address3=, city=Parsippany, state=NJ, zip=07054, country=US, deviceId=xxxxxx, phoneNumber=xxxxxx}
Can we get account's role type? I need role type for some specific operation
You have to use the employee class to read employee/roles
Thanks its worked
5 People are following this question.
Can you create a charge for a merchant?
Call custom tender directly from the app without open ACTION_SECURE_PAY
Initialize more then one custom tender from a single app
How we can get MCC code for the merchant in clover ?
What is the difference between the merchant Bundles? How does this affect app publishing?