Skip to main content
POST
Create Google Ads payment setup

Authorizations

api_key
string
header
required

Personal API key.

Path Parameters

app_id
string
required

ID of the app whose Google Ads campaigns to manage.

Body

application/json
success_url
string
required

Where Stripe sends the person after they save a card. It must be an https:// URL on a base44.com or base44.app host, with no credentials in it, so you cannot send them back to your own site.

Example:

"https://app.base44.com/apps/6820f3a4e7b91d003c45a1f2/settings/billing?setup=done"

cancel_url
string
required

Where Stripe sends the person if they abandon the form. Same host rules as success_url.

Example:

"https://app.base44.com/apps/6820f3a4e7b91d003c45a1f2/settings/billing"

Response

The page a person completes to save a card.

A Stripe Checkout session for saving a card.

checkout_url
string
required

Stripe-hosted page where a person enters their card details. Hand this to a human rather than trying to complete it programmatically. It expires, so fetch it when someone is ready to use it.

Example:

"https://checkout.stripe.com/c/pay/cs_live_a1B2c3D4e5"

session_id
string
required

Stripe's ID for the session. Useful for correlating with your own logs; the API takes it nowhere.

Example:

"cs_live_a1B2c3D4e5"