#mason-terry_api

1 messages ¡ Page 1 of 1 (latest)

marsh umbraBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1333888686323929138

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

silk raft
#

Hi, taking a look

normal lantern
#
    {
        var subdomain = await subdomainService.GetCurrentSubdomain();
        var invoiceSettings = await invoiceSettingsRepository.FirstOrDefault();

        if (invoiceSettings is null)
        {
            throw new NotFoundException($"Invoice settings not found for {invoiceSettings?.CompanyId}.");
        }
        
        var options = new PaymentMethodDomainCreateOptions { DomainName = $"{subdomain}.{emailConfigurationProvider.PortalDomain}" };

        var requestOptions = new RequestOptions { StripeAccount = invoiceSettings.StripeAccountId };

        var service = new PaymentMethodDomainService();

        await service.CreateAsync(options, requestOptions);
    }```
#

This is what I did. Do I need to do something different or is this expected? I want to register the domain for connected accounts so that their customers can use Apple Pay/Google Pay.

marsh umbraBOT
silk raft
#

Well that depends on what charge type you're using

#

Are you able to review the above and let me know what specific questions you have?

normal lantern
#

Okay I see. I can put in the platform secret key instead of the connected account id

primal current
#

Hello
Not sure what you mean by that.

What sort of charges are you creating? Are you creating direct charges or destination charges?

normal lantern
#

Sorry I misread the documentation. We are using destination charges so I need to not include the Connected Account Id

primal current
#

Correct