#Atish

1 messages ยท Page 1 of 1 (latest)

desert fulcrumBOT
cerulean bluff
#

๐Ÿ‘‹ happy to help

cedar ingot
#

Hello, how can I solve the above issue?

cerulean bluff
#

taking a look please hold on a second

cedar ingot
#

I got this link for setting up the express account

cerulean bluff
#

๐Ÿ‘

cedar ingot
#

I need to provide refresh url here

cedar ingot
#

Its being refreshed

#

So I want to land in the same page even after refreshing the page

cerulean bluff
#

I'm not sure I follow

cedar ingot
#
val accountLinkCreateParams = AccountLinkCreateParams.builder()
            .setAccount(account.id)
            .setReturnUrl("https://example.com/return")
            .setType(AccountLinkCreateParams.Type.ACCOUNT_ONBOARDING)
            .build()

        val accountLink = AccountLink.create(accountLinkCreateParams)
        return accountLink.url
#

In the above code, I need to set refreshurl to the same page of account setup

#

Account setup must be done in single setup, user can't refresh the page while setting up the account?

cerulean bluff
#

the refresh url is meant to be used so once the account link gets expired the connect account will visit the refresh_url where you would provide a new account link

cedar ingot
#

So you mean in refresh url I should create a new url for account setup and redirect there?

cerulean bluff
#

the refresh_url should be a path in your web app where you would create a new account link and automatically redirect the merchant to the new url

#

this way you don't have to send them a new link each time the old one expired