ChargebeeAPI
Join the Chargebee Developers Discord — Connect, ask questions, and build faster.Join

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 .

payment_method_save_policy
optional, enumerated string

Determines whether the payment method should be saved to the customer's account.

Possible Enum Values
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.

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