• Embed an App

    Or write your own HTML code! (HTML is Pro only)

    # Set your secret key. Remember to switch to your live secret key in production! # See your keys here: https://dashboard.stripe.com/account/apikeys Stripe.api_key = 'sk_test_wP3FomOcOiHOHUsmIiTmazhq' Stripe::BillingPortal::Session.create({ customer: 'cus_HT2AWOY0LhHBT5', return_url: 'https://example.com/account', }) { "id": "pts_1G8ZkbClCIKljWvsk5O2fhg6", "object": "billing_portal.session", "created": 1580854809, "customer": "cus_HT2AWOY0LhHBT5", "livemode": false, "return_url": "https://example.com/account", "url": "https://billing.stripe.com/session/{SESSION_SECRET}" }