I'm looking for all the information that ckan api can provide.
This is one of my result
[5] => stdClass Object
(
[cache_last_updated] =>
[package_id] => 86dc2555-0e06-45be-aa2f-911d9431d29a
[webstore_last_updated] =>
[id] => 054d4e12-d07f-41bc-a7d3-3c2d8b2882fe
[size] =>
[state] => active
[last_modified] => 2016-08-15T18:30:53.146250
[hash] =>
[description] => Lista das 4.617 espécies nativas brasileiras avaliadas quanto ao risco de extinção - recorte temporal de 2012.
[format] => PDF
[mimetype_inner] =>
[url_type] => upload
[mimetype] =>
[cache_url] =>
[name] => Lista de espécies avaliadas - Livro Vermelho - 2013 - PDF
[created] => 2016-01-29T11:43:50.555625
[url] => http://ckan.jbrj.gov.br/dataset/86dc2555-0e06-45be-aa2f-911d9431d29a/resource/054d4e12-d07f-41bc-a7d3-3c2d8b2882fe/download/especiesavaliadaslv2013.pdf
[webstore_url] =>
[position] => 0
[revision_id] => c2903e9a-4587-4a1b-9b7f-1702e91d01f3
[resource_type] =>
)
I could not see the author field there, does someone knows how can I get it?
Your data seems to come from a resource. In CKAN, resources don't carry ownership information. Instead, resources are attached to packages (see the package_id field), which in turn are linked to organizations (via their organization field). A package's organization is usually the source of the data, but a package also has information about its maintainer and possibly other people related to the data.
Related
I am currently on a vps from ovh with prestashop 1.7.5. I ordered a CloudDB database.
I would like to know the handling to follow to be able to change the database because I do not find a solution to my problem.
thank you so much
PS: I'm a beginner with PrestaShop.
Using your FTP client or file manager open this file:
/app/config/parameters.php
Find the lines with database_host, database_name, database_user and
database_password parameters.
Replace existing values of that params with the new ones.
Save the file and upload it back to the server.
All done! Open your site in the browser and check whether it works.
<?php return array (
'parameters' =>
array (
'database_host' => '127.0.0.1',
'database_port' => '',
'database_name' => 'your_database_name',
'database_user' => 'your_database_user',
'database_password' => 'your_database_password',
'database_prefix' => 'ps_',
'database_engine' => 'InnoDB',
'mailer_transport' => 'smtp',
'mailer_host' => '127.0.0.1',
'mailer_user' => NULL,
'mailer_password' => NULL,
'secret' => 'Vz6rVXVYNWYt7E6Fvfvdfvg34MCdc97h3IttReewVIxNOu7wHAoS',
'ps_caching' => 'CacheMemcache',
'ps_cache_enable' => false,
'ps_creation_date' => '2017-05-22',
'locale' => 'en-US',
'cookie_key' => 'xduROM3yvjDSym43CvfdvFDVD47YG8zCrVruNFjjZ3NUb7Ut9',
'cookie_iv' => '7kBvdfvgh',
'new_cookie_key' => 'def00000766ffa61aae49b279evfsdvsdfvsfdvfdvwerr324r3frdfveb1afedc8702a964f0a1f6828bf1623ca54efad10ed4bbfb289beec62b01a3062d4c3ce78254157',
),
);
I am trying to invoke the PayPal API in my source code for processing credit-card transaction. It looks to be working perfect on Sandbox, but throwing an error like below on Live in response.
Array
(
[TIMESTAMP] => 2018-03-14T17:42:19Z
[CORRELATIONID] => 8d47b259e776b
[ACK] => Failure
[VERSION] => 3.2
[BUILD] => 39949200
[L_ERRORCODE0] => 10548
[L_SHORTMESSAGE0] => Invalid Configuration
[L_LONGMESSAGE0] => This transaction cannot be processed. The merchant's account is not able to process transactions.
[L_SEVERITYCODE0] => Error
[AMT] => 26.55
[CURRENCYCODE] => USD
)
The parameters being sent in request object appears to be like below.
Array
(
[USER] => <my_username>
[PWD] => <my_password>
[SIGNATURE] => <signature>
[METHOD] => DoDirectPayment
[PAYMENTACTION] => Sale
[IPADDRESS] => <my_server_ip_address>
[VERSION] => 3.2
[AMT] => 26.55
[CREDITCARDTYPE] => Visa
[ACCT] => <credit_card_number>
[STARTDATE] =>
[EXPDATE] => 032023
[CVV2] => 111
[FIRSTNAME] => <acct_first_name>
[LASTNAME] => <acct_last_name>
[STREET] =>
[CITY] =>
[STATE] =>
[COUNTRYCODE] =>
[ZIP] =>
[EMAIL] => <acct_email_id_at_domain.com>
[PHONENUM] =>
[CURRENCYCODE] =>
[BUTTONSOURCE] => osCommerce22_Default_DP
)
I am done with checking it a "Business Account" along with presence of "Home Phone Number" and "Customer Service Phone Number" in the profile, and found everything working.
Any help would be appreciated.
Thanks!
You are trying to process a direct card payment using the API operation DoDirectPayment. In order to process a direct card payment, you will need to have PayPal Business account with PRO. But your Live PayPal account doesn't have PRO, this is the reason for getting an error code 10548.Here you are using Classic API for processing the payment. Please contact PayPal MTS team at https://www.paypal-techsupport.com/ for the suitable latest product in order to process a direct card payment.
I tried to implement paymentwall payment gateway integration with Laravel using omnipay library.After setting setApiType, setPublicKey and setPrivateKey and trying to call the API, its getting the response "Public key is missed or invalid" from payment wall gateway.
Actually this error is happened due to passing parameter public key as public_Key instead of public_key from the omnipay library.
The following is the response
[request:protected] => Omnipay\PaymentWall\Message\PurchaseRequest Object
(
[endPoint:protected] => https://api.paymentwall.com/api
[parameters:protected] => Symfony\Component\HttpFoundation\ParameterBag Object
(
[parameters:protected] => Array
(
[apiType] => 0
[publicKey] => hjghjghsdfsc5464564564e56456
[privateKey] => gfh4567686786787hfjfhgfgfgh
[amount] => 10.00
[currency] => USD
[accountId] =>
[description] => test Pay
[email] => test#gmail.com
[clientIp] => 112.133.236.158
[browserDomain] => test.com
[card] => Omnipay\Common\CreditCard Object
[response:protected] => Omnipay\PaymentWall\Message\Response Object
*RECURSION*
[zeroAmountAllowed:protected] => 1
[negativeAmountAllowed:protected] =>
)
[data:protected] => Array
(
[type] => Error
[object] => Error
[error] => Public key is missed or invalid
[code] => 2111
[log] =>
)
)
Public key is missed or invalid
As I commented in the issue that you raised on github:
This is working for everyone else. Are you sure there isn't really an issue with your keys? Can you check that there are no spurious newlines, etc, in your key as provided to the library?
The correct name for the public key parameter within Omnipay is publicKey. The correct name within the paymentwall library is public_key. A check of the code appears to indicate that the parameter naming is correct. The Omnipay publicKey parameter is correctly passed to the paymentwall library as public_key.
I'm having a problem with CreateRecurringPaymentsProfile call - when I send a request using:
[TOKEN] => EC-0HX47934KS3525414
[DESC] => Enrolment title
[PROFILESTARTDATE] => 2014-08-05T19:20:42+01:00
[AMT] => 98.16
[BILLINGPERIOD] => Month
[BILLINGFREQUENCY] => 1
[TOTALBILLINGCYCLES] => 2
[INITAMT] => 98.16
I get the response:
[PROFILEID] => I-VBR32KNHNXWN
[PROFILESTATUS] => PendingProfile
[TIMESTAMP] => 2014-08-05T18:20:45Z
[CORRELATIONID] => 853de87c95475
[ACK] => Success
[VERSION] => 72.0
[BUILD] => 12194268
Any idea why am I getting PendingProfile instead of ActiveProfile?
EDIT
The solution was to take the initial payment with SetExpressCheckout method - using L_PAYMENTREQUEST_0_NAME0 and L_PAYMENTREQUEST_0_AMT0 instead of INITAMT with CreateRecurringPaymentsProfile - once I've done that - everything works just fine.
When I issue a print_r ($_SESSION) on my local server I receive the following
Array
(
[group] => Rich Primosch
[ok] => 1
[golfer] => Fritz Davis
[uniq] => 38
[fname] => Fritz
[lname] => Davis
[hphone] => 352-487-0597
[cphone] => 352-487-6189
[email] => fritz#hadleyvillage.org
[vid] => 527571
[handicap] => 23
[admin] => 0
[page] => signup.php
)
However when I issue the same print_r ($_SESSION) on the webhost's server I get this response
Array
(
[group] => __PHP_Incomplete_Class Object
(
[__PHP_Incomplete_Class_Name] => window
[curdate] => 1293771600
[datetime] => 1293813211
[monplay] => 1294030800
[wedplay] => 1294203600
[friplay] => 1294376400
[monclose] => 1293750000
[wedclose] => 1293922800
[friclose] => 1294030740
[monopen] => 1293426000
[wedopen] => 1293426000
[friopen] => 1293426000
[ismonopen] =>
[iswedopen] => 1
[isfriopen] => 1
)
[ok] => 1
[golfer] => mysqli_result Object
(
)
[uniq] => 175
[fname] => Fritz
[lname] => Davis
[hphone] => 352-487-0597
[cphone] => 352-487-6189
[email] => fritz#hadleyvillage.org
[vid] => 723234
[handicap] => 23
[admin] => 0
[page] => signup.php
)
Why I even see the incomplete class object, I have no idea. It is never assigned to a $_SESSION variable and yes, the class definition is included before session_start().
There are several differences in the two responses. My question is why? Is there a difference in settings somewhere or is there a programming error.
I have seen many references to the PHP_Incomplete_Class Object but they all say make sure that the class definition proceeds session_start. In my case it does but that should be inconsequential because I only use the object on one page and do not store it in a session.
Suggestions are appreciated.
-dmd-
try var_dump instead in both machines, it may say something interesting, "group" value seems to be an object, of what type? does it have a __sleep() magic method?
ensure your test machine and production server has the same php version to better understand the issue.
#see http://www.php.net/manual/en/language.oop5.serialization.php