API to interact with Tebex checkout API
useshimmer/laravel-tebex-checkout is a Laravel package for api to interact with tebex checkout api.
It currently has 1 GitHub stars and 24 downloads on Packagist (latest version v0.2).
Install it with composer require useshimmer/laravel-tebex-checkout.
Discover more Laravel packages by useshimmer
or browse all Laravel packages to compare alternatives.
Last updated
This package is currently for internal use, do not expect support.
composer require useshimmer/laravel-tebex-checkout
$connector = new TebexCheckout('foo', 'bar');
$request = new CreateCheckoutRequest(
basket: [
'return_url' => 'http://foo.com',
'complete_url' => 'http://bar.com',
'custom' => [
'baz' => 'buzz',
],
],
items: [
[
'package' => [
'name' => 'foobar',
'price' => 12.34,
],
],
]
);
$response = $connector->send($request);
$connector = new TebexCheckout('foo', 'bar');
$response = $connector->checkout()->create(
basket: [
'return_url' => 'http://foo.com',
'complete_url' => 'http://bar.com',
'custom' => [
'baz' => 'buzz',
],
],
items: [
[
'package' => [
'name' => 'foobar',
'price' => 12.34,
],
],
]
);