ChargebeeAPI

Collect Now

Idempotency Supported
Try in API Explorer

This API generates a hosted page URL to collect due payments for the customer.

Sample Request

URL Format

POST https://[site].chargebee.com/api/v2/hosted_pages/collect_now

Input Parameters

redirect_url
optional, string, max chars=250

Used to specify the destination URL to which a user is redirected after invoices are paid. The transaction ID of the transactions made through the Pay Now hosted page will be sent as return variables along with the URL.

currency_code
optional, string, max chars=3

The currency code (ISO 4217 format) of the specified credit amount .

customer[0..n]
Parameters for customer
pass parameters as customer[<param name>]
card[0..n]
Parameters for card
pass parameters as card[<param name>]

Returns

hosted_pageHosted page object
Resource object representing hosted_page