public function createPaymentForm(array $params)
    {
        $params = array_replace_recursive(
            [
                'billId'       => null,
                'publicKey'    => null,
                'amount'       => null,
                'successUrl'   => null,
                'customFields' => [],
            ],
            $params
        );

        $params['amount'] = $this->normalizeAmount($params['amount']);
        $params['customFields']['apiClient']        = CLIENT_NAME;
        $params['customFields']['apiClientVersion'] = CLIENT_VERSION;

        return self::CREATE_URI.'?'.http_build_query($params, '', '&', PHP_QUERY_RFC3986);

    }
public function createPaymentForm(array $params)
    {
        $params = array_replace_recursive(
            [
                'billId'       => null,
                'publicKey'    => null,
                'amount'       => null,
                'successUrl'   => null,
                'customFields' => [],
            ],
            $params
        );

        $params['amount'] = $this->normalizeAmount($params['amount']);
        $params['customFields']['apiClient']        = CLIENT_NAME;
        $params['customFields']['apiClientVersion'] = CLIENT_VERSION;

        return self::CREATE_URI.'?'.http_build_query($params, '', '&', PHP_QUERY_RFC3986);

    }
public function createPaymentForm ( array $ params ) { $ params = array_replace_recursive ( [ 'billId' => null , 'publicKey' => null , 'amount' => null , 'successUrl' => null , 'customFields' => [ ] , ] , $ params ) ; $ params [ 'amount' ] = $ this -> normalizeAmount ( $ params [ 'amount' ] ) ; $ params [ 'customFields' ] [ 'apiClient' ] = CLIENT_NAME ; $ params [ 'customFields' ] [ 'apiClientVersion' ] = CLIENT_VERSION ; return self :: CREATE_URI . '?' . http_build_query ( $ params , '' , '&' , PHP_QUERY_RFC3986 ) ; }
Creating checkout link.

@param array $params The parameters:
+ billId     {string|number} - The bill identifier;
+ publicKey  {string}        - The publicKey;
+ amount     {string|number} - The amount;
+ successUrl {string}        - The success url.

@return string Return result
Creating checkout link .