Skip to content

The Builder Object

Nathan Dunn edited this page Mar 19, 2018 · 2 revisions

If you wish to customise which HTTP client the SDK is using, you can pass an instance of NathanDunn\Chargebee\HttpClient\Builder as the third parameter of NathanDunn\Chargebee\Client.

The first required parameter is the authorisation key from Chargebee. This will be used when making requests to the Chargebee API.

The second parameter is the HTTP Client. If no parameter is supplied, HTTPlug will try to find a client using HTTP Client Discovery.

The third parameter passed should be an instance of Request Factory. If no parameter is supplied, HTTPlug will try to find a client using Message Factory Discovery.

Clone this wiki locally