Developer Center

cost_prices() - Extension Cost Info

It is used to withdraw the amount of the domain name extension, you can optionally delete the function. You can also use this function to drag all extensions available on the API.

public function cost_prices($type='domain'){
    if(!$this->config["settings"]["adp"]) return false;

    $prices    = $this->api->cost_prices();
    if(!$prices){
        $this->error = $this->api->error;
        return false;
    }

    $result = [];

    if($type == "domain"){
        foreach($prices AS $name=>$val){
            $result[$name] = [
                'register' => $val["register"],
                'transfer' => $val["transfer"],
                'renewal'  => $val["renewal"],
            ];
        }
    }
    
    return $result;
}

Retrieval Value;

Array
(
    [com] => Array
        (
            [register] => 9.99
            [renewal] => 10.99
            [transfer] => 9.99
        )

    [net] => Array
        (
            [register] => 10.99
            [renewal] => 11.99
            [transfer] => 10.99
        )

    [org] => Array
        (
            [register] => 11.99
            [renewal] => 12.99
            [transfer] => 11.99
        )

)
renewal() - Domain Name Renewal NsDetails() - Nameserver Information

Do you have any questions?

Feel free to contact us
Contact Us
Copyright © 2024. All Rights Reserved.
Join Our Discord Channel
Top

New Year's Special Discount

"Startup Lifetime" and "Professional Lifetime" licenses are 30% off!

Coupon Code:
HAPPYYEARS30 Copied!
Discount Rate 30%
Expiration Date December 31, 2024