#Pravin-account-capabilities

1 messages · Page 1 of 1 (latest)

arctic oar
late quest
#

how can i set account type along with capabilities

#

accountType = AccountCreateParams.builder()
.setType(AccountCreateParams.Type.STANDARD)
.build();
account =Account.create(accountType);

#

currently i am creating account like this

arctic oar
#

The parameters are all outlined on the API reference I shared

late quest
#

i am not seeing "AccountCreateParams.Type.STANDARD" in document

#

could you please help me with screen shot

#

using account number i generate AccountLink

#

and i feel all required details inside that

#

fill*

arctic oar
#

@earnest jay That is a separate issue, please ask in #dev-help

#

@late quest I'm not sure what you're asking?

late quest
#

while creating new user i want to mention its standard connect account and along with that i want set some capabilities as well

arctic oar
#

You can't set specific capabilities with a standard account as the platform

late quest
#

oh ok

#

thanks

late quest
#

I want add below capabilities for normal accout

#

card, bank, GPay, Apple Pay, Buy Now Pay Later

#

Could you please help me with references

arctic oar
#

As stated, you can't specific capabilities when creating an Account with type: 'standard'

#

That is managed by the account

late quest
#

yea i got that for standard account

#

lets suppose i am creating account like belwo

#

capabilities.put("card_payments", cardPayments);
capabilities.put("transfers", transfers);
Map<String, Object> params = new HashMap<>();
params.put("type", "custom");
params.put("country", "US");
params.put("email", "jenny.rosen@example.com");
params.put("capabilities", capabilities);

Account account = Account.create(params);

#

so for "card, bank, GPay, Apple Pay, Buy Now Pay Later" what is the key i need to pass

arctic oar
#

Well, Apple Pay and Google Pay are considered card payments – so that is covered by capabilities.put("card_payments", cardPayments);

late quest
#

cool

#

thanks a lot

arctic oar
#

You'd just need to append the ones you need to your code: capabilities.put("klarna_payments", klarnaPayments);

late quest
#

thats perfect suggestion

#

thank yo

arctic oar
#

Sure, np!