## 4.3.1 Direct Billing Option

### UX Guidance

*** ** * ** ***

The ideal step in the flow to ask the user to set up billing is right after the
first campaign setup (instead of after account creation). More detail is also
provided in the [*Ads Campaign Creation*](https://developers.google.com/merchant/storebuilder/online/sections/4_2_ads_campaign_creation#ux_guidance) section. This order of steps is
aligned with most check-out flows.

The billing setup cannot be performed using API, and requires you to redirect
merchants to a Google interface even if you didn't opt for the redirect option.

If you choose the redirect option for ad campaign creation and management, the
billing setup is handled in the Merchant Center. Note that when setting up
billing in Merchant Center merchants can pay by credit card.

If you choose to implement campaign creation and management in-app, the billing
setup is handled in Google Ads. The recommended way to ask users for their
billing information is by showing the billing setup in a chrome window rendered
as a dialog. As the user still sees the context of the integration in the
background, this approach feels least disruptive for them.

[Manage your payment options](https://support.google.com/adwords/answer/7678534) provides an overview of the different payment
options that can be offered to merchants. A suggestion for the billing setup
steps is shown in the animation below.

![payment](https://developers.google.com/static/merchant/storebuilder/images/blueprint/4_25_payment.gif)

The billing setup dialog also needs to show a link to the Google Ads terms and
conditions after the merchant has inputted their payment profile. This is the
best way to surface the Google Ads terms and conditions because they are
adjusted depending on the country, language and currency which can be extracted
from the payment profile.

### Tech Guidance

*** ** * ** ***

This is how the direct billing flow would work:

1. Get the invitation link returned in the [`CreateCustomerClientResponse`](https://developers.google.com/google-ads/api/reference/rpc/v12/CreateCustomerClientResponse)
   and surface it to the merchant. You can set it up so that clicking on the link
   opens a new browser tab (instead of replacing the current tab), so the merchant
   can return to your platform.

   > [!NOTE]
   > **Note:** An allowlist is required to get this invitation link. Note that the link expires after 20 days. Contact your Google partner team to request to be added to the *allowlist*.

2. Merchant clicks the link, which opens the Google Ads invite flow in a new
   browser tab.

3. Merchant sets up billing in the Google Ads platform and returns to your
   platform to continue the user flow.

4. You can confirm if the advertiser has completed the billing setup using
   [`BillingSetupStatus`](https://developers.google.com/google-ads/api/reference/rpc/v12/BillingSetupStatusEnum.BillingSetupStatus).

5. You can also send an email by creating a new `CustomerUserAccessInvitation`
   using the `MutateCustomerUserAccessInvitation` method of the
   `CustomerUserAccessInvitationService`. See [further details](https://developers.google.com/google-ads/api/docs/account-management/managing-invitations). No allowlist
   is required. The link in the email is the same as the link returned in
   `CreateCustomerClientResponse` and also expires after 20 days.