billabear / php-sdk
1.0.0
2024-07-21 16:16 UTC
Requires
- php: ^7.4 || ^8.0
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^7.3
- guzzlehttp/psr7: ^1.7 || ^2.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.5
- phpunit/phpunit: ^8.0 || ^9.0
README
BillaBear PHP SDK
Installation & Usage
composer require billabear/php-sdk
Getting Started
Please follow the installation procedure and then run the following:
<?php require_once(__DIR__ . '/vendor/autoload.php'); // Configure API key authorization: ApiKeyAuth $config = BillaBear\Configuration::getDefaultConfiguration() ->setHost('YOUR_API_URL') ->setApiKey('X-API-Key', 'YOUR_API_KEY'); $apiInstance = new BillaBear\Api\CheckoutApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $body = new \BillaBear\Model\CheckoutBody(); try { $result = $apiInstance->createCheckout($body); print_r($result); } catch (Exception $e) { echo 'Exception when calling CheckoutApi->createCheckout: ', $e->getMessage(), PHP_EOL; } ?>
Documentation for API Endpoints
All URIs are relative to https://{customerId}.billabear.cloud/api/v1
Documentation For Models
- Address
- CheckoutBody
- CheckoutItems
- CheckoutSubscriptions
- Customer
- CustomerIdVoucherBody
- Error
- FrontendToken
- InlineResponse200
- InlineResponse2001
- InlineResponse20010
- InlineResponse20011
- InlineResponse2002
- InlineResponse2003
- InlineResponse2004
- InlineResponse2004Data
- InlineResponse2004Lines
- InlineResponse2005
- InlineResponse2006
- InlineResponse2007
- InlineResponse2007Data
- InlineResponse2007Receipts
- InlineResponse2008
- InlineResponse2009
- InlineResponse201
- InlineResponse201BillingAdmin
- InlineResponse201Lines
- InlineResponse400
- PaymentDetails
- PaymentIdRefundBody
- Price
- Product
- SeatsAddBody
- SeatsRemoveBody
- Subscription
- SubscriptionIdCancelBody
- SubscriptionIdPlanBody
- SubscriptionPlan
- SubscriptionStartBody