src/Client.php
/**
     * Generate the XML payload based on the given options.
     *
     * @param  string  $action
     * @param  array  $options
     * @return string
     */
Generate the XML payload based on the given options.
@param  string  $action
@param  array  $options
@return string
Generate the XML payload based on the given options . @param string $action @param array $options @return string
protected function generatePayload(string $action, array $options = []): string
    {
        return Str::after($this->toXml(array_merge([
            'ssl_merchant_id' => $this->id,
            'ssl_user_id' => $this->user,
            'ssl_pin' => $this->pin,
            'ssl_transaction_type' => $action,
        ], $options)), "\n");
    }
protected function generatePayload ( string $ action , array $ options = [ ] ) : string { return Str :: after ( $ this -> toXml ( array_merge ( [ 'ssl_merchant_id' => $ this -> id , 'ssl_user_id' => $ this -> user , 'ssl_pin' => $ this -> pin , 'ssl_transaction_type' => $ action , ] , $ options ) ) , " \n " ) ; }
Generate the XML payload based on the given options.
Generate the XML payload based on the given options .