ossbrownie/carts-guru
Composer 安装命令:
composer require ossbrownie/carts-guru
包简介
Recover Your Abandoned Carts and Turn Them into Sales.
README 文档
README
Recover Your Abandoned Carts and Turn Them into Sales.
curl
A basic CURL wrapper for PHP (see http://php.net/curl for more information about the libcurl extension for PHP)
Requirements
- PHP >= 5.3
- EXT-CURL = *
Usage
$cartsGuru = new CartsGuru( new HTTPClient( new CurlClient(), new Config(array( 'apiAuthKey' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', )) ), 'site-id-xxxx-xxxx-xxxx-xxxxxxxxxxxx' ); $item = new Item(array( 'id' => 'test-item-0008', 'label' => 'product', 'quantity' => 1, 'totalATI' => 200, 'totalET' => 150, 'url' => 'http://site.com/product/0008', 'imageUrl' => 'http://site.com/product/0008.jpg', )); $cart = new Cart( array( 'id' => 'test-cart-0008', 'totalATI' => 200, 'totalET' => 150, 'accountId' => '3847569834', 'firstname' => 'Tester', 'email' => 'test@site.com', 'country' => 'United States', 'countryCode' => 'USA', ) ); $cart->addItem($item); $status = $cartsGuru->trackCart($cart); $order = new Order( array( 'id' => 'test-order-0008', 'cartId' => 'test-cart-0008', 'totalATI' => 200, 'totalET' => 150, 'state' => 'approved', 'accountId' => '3847569834', 'firstname' => 'Tester', 'email' => 'test@site.com', 'country' => 'United States', 'countryCode' => 'USA', ) ); $order->addItem($item); $status = $cartsGuru->trackOrder($order);
Contact
Problems, comments, and suggestions all welcome: oss.brownie@gmail.com
统计信息
- 总下载量: 225
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-08-15