gohighlevel-php-sdk

Payments API

$client = GoHighLevel::client($access_token,'2021-07-28')->payments();

Integrations


    $integrations = $client->integration();

Create White-label Integration Provider


    $data = $integrations->create([
        //params
    ]);

Create White-label Integration Provider


    $data = $integrations->list($altId, $altType, [
        //params
    ]);

Orders


    $orders = $client->order();

List Orders


    $data = $orders->list($altId, $altType, [
        //params
    ]);

Get Order by ID


    $data = $orders->get($orderId, [
        //params
    ]);

Order Fulfillments


    $fulfillment = $client->orderFulfillment();

Create order fulfillment


    $data = $fulfillment->create($orderId, [
        //params
    ]);

list order fulfillment


    $data = $fulfillment->list($orderId, [
        //params
    ]);

Transactions


    $transaction = $client->transaction();

List Transactions


    $data = $transaction->list($altId, $altType, [
        //params
    ]);

Get Transaction by ID


    $data = $transaction->get($transactionId, $altId, $altType, [
        //params
    ]);

Subscriptions


    $subscription = $client->subscription();

List Subscriptions


    $data = $subscription->list($altId, $altType, [
        //params
    ]);

Get Subscription by ID


    $data = $subscription->get($subscriptionId, $altId, $altType, [
        //params
    ]);

Custom Provider


    $customProvider = $client->customProvider();

Create new integration


    $data = $customProvider->create($locationId, [
        //params
    ]);

Deleting an existing integration


    $data = $customProvider->delete($locationId);

Fetch given provider config


    $data = $customProvider->getConfig($locationId);

Create new provider config


    $data = $customProvider->createConfig($locationId,[
        //parameters
    ]);

Disconnect existing provider config


    $data = $customProvider->disconnectConfig($locationId, $liveMode);

or


    $data = $customProvider->deleteConfig($locationId, $liveMode);