Create Google Ads payment setup
Starts the flow for saving a card against the workspace’s ad spend, and returns the page a person completes.
Google Ads spend is charged to a card on file. When Get Google Ads workspace debt reports requires_payment_method or requires_payment_refresh, this is what produces the link to fix it. Nothing is charged here, the session only validates and saves the card.
Send the two URLs Stripe should return the person to. Both must be https:// on a base44.com or base44.app host, so the return trip always lands back inside Base44 rather than on a site you name. A URL outside that set is rejected with a 400.
Authorizations
Personal API key.
Path Parameters
ID of the app whose Google Ads campaigns to manage.
Body
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.
"https://app.base44.com/apps/6820f3a4e7b91d003c45a1f2/settings/billing?setup=done"
Where Stripe sends the person if they abandon the form. Same host rules as success_url.
"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.
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.
"https://checkout.stripe.com/c/pay/cs_live_a1B2c3D4e5"
Stripe's ID for the session. Useful for correlating with your own logs; the API takes it nowhere.
"cs_live_a1B2c3D4e5"