ankio / vpay-sdk
Vpay sdk
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/ankio/vpay-sdk
This package is auto-updated.
Last update: 2025-10-18 08:56:47 UTC
README
Vpay接入SDK
引入SDK
作为子模块使用
git add submodule https://github.com/Vpay-Colloction/vpay-sdk git submodule init git submodule update --remote
通过Composer调用
composer require ankio/vpay-sdk
- 创建订单
$order = new \Ankio\objects\PayCreateObject(); $order->app_item = "商品名称"; $order->appid = $config->id; $order->param = json_encode(array_merge(arg(),["item"=>$item->toArray()])); $order->price = $item->item_price; $order->pay_type =$pay_type; $order->notify_url = url("api_shop","main","notify"); $order->return_url = url("shop","main","return"); $crateObject-> (new \Ankio\Vpay(new \Ankio\PayConfig($config)))->create();
- 关闭订单
- 查询订单状态