Join the Chargebee Developers Discord — Connect, ask questions, and build faster.Join
Idempotency Supported
Try in API ExplorerThis 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
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.
optional, string, max chars=3
The currency code (ISO 4217 format) of the specified credit amount .
optional, enumerated string
Determines whether the payment method should be saved to the customer's account.
always
Automatically save the payment method to the customer's account for future use.
ask
Let the customer choose whether to save the payment method.
never
Do not save the payment method.
Returns
hosted_pageHosted page object
Resource object representing hosted_page