We got problem when integrating foursquare api, when our user try to login by foursquare, it got error like
Array (
[meta] => Array (
[code] => 403
[errorType] => not_authorized
[errorDetail] => Consumer disabled.
[requestId] => 5bcec530dd579757288953cb
)
[response] => Array ( )
)
Related
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.
$shopify = shopify\client( $shop, $app_settings->api_key, $shop_data->access_token, false );
$products = $shopify('GET', '/admin/products.json', array('published_status' => 'published'));`
I am getting the following response by printing the $shopify:
Closure Object
(
[static] => Array
(
[base_uri] => https://4f4b14c3eb5464ae238dd6cf4b88bce6:c2608b7067c5bf96028876023114b68c#pilibaba.myshopify.com/
[oauth_token] => c2608b7067c5bf96028876023114b68c
[private_app] => 2f996f1bd2a0f4fb343703555c89a234
)
[parameter] => Array
(
[$method_uri] =>
[$query] =>
[$payload] =>
[&$response_headers] =>
[$request_headers] =>
[$curl_opts] =>
)
)
after that accessing the $product i am getting the following error.
Fatal error:
Uncaught phpish\shopify\CurlException: [3] malformed in /*****/shopify_app/shopify_app.php on line 36 thrown in /******/shopify_app/shopify.php on line 67
Is it a problem with my access token? as i do have all the store permission while installing the app.
I did research for this error by didnt find any help either from shopify support team.
change keys of your url:
apikey = c2608b7067c5bf96028876023114b68c
access_token = 4f4b14c3eb5464ae238dd6cf4b88bce6
https://c2608b7067c5bf96028876023114b68c:4f4b14c3eb5464ae238dd6cf4b88bce6#pilibaba.myshopify.com/admin/shop.json
I'm having an issue with the access token. Every token I get has a empty scope. Though in my authorize URL, I have set scopes in various combinations. I receive all the token info, but scope is always blank. Below is an example of the authorze URL & output of token.
Auth Url:
https://oauth.mobli.com/authorize?client_id=xxx&response_type=code&state=fa90532ac5dc926609a484b60d9d457e&redirect_uri=http%3A%2F%2Fcontestis.localhost%2Fapis%2Fmobli%2Fweb%2Findex.php&scope=advanced+basic
Token Output:
Array ( [access_token] => xx [token_type] => mobli_user_related [expires_in] => 7776001 [refresh_token] => xx [user] => Array ( [id] => xx13030 [username] => XX [first_name] => XX [last_name] => XX ) [scopes] => )
i am building a fan gate for my site to give out some coupon.
here is my code:
<?php
require_once 'facebook.php';
$app_id = "xxxxxxxxxxxxxxx";
$app_secret = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
$facebook = new Facebook(array(
'appId' => $app_id,
'secret' => $app_secret,
'cookie' => true
));
print_r($_REQUEST);
$signed_request = $facebook->getSignedRequest();
echo "<pre>";
print_r($facebook->getSignedRequest());
echo "</pre>";
$signed_request = $_REQUEST["signed_request"];
list($encoded_sig, $payload) = explode('.', $signed_request, 2);
$data = json_decode(base64_decode(strtr($payload, '-_', '+/')), true);
$like_status = $signed_request["page"]["liked"];
print_r($facebook);
?>
I find that the return value of $facebook->getSignedRequest(); is different when i am visiting my apps via apps.facebook.com/xxxxxxxxxxxxxxxxxxxxxx/ and when i am visiting www.coupon.mysite.com/facebook/index.php
via apps.facebook.com/xxxxxxxxxxxxxxxxxxxxxx/:
Facebook Object ( [appId:protected] => 15255288xxxxxxxx [appSecret:protected] => XXXXXXXXXXXXXXXXXXXX[user:protected] => [signedRequest:protected] => Array ( [algorithm] => HMAC-SHA256 [issued_at] => xxxxxxxxxxxxx[user] => Array ( [country] => hk [locale] => en_US [age] => Array ( [min] => 21 ) ) ) [state:protected] => [accessToken:protected] => [fileUploadSupport:protected] => )
via www.coupon.mysite.com/facebook/index.php:
Facebook Object ( [appId:protected] => xxxxxxxxxxxxxxxxxxx[appSecret:protected] => xxxxxxxxxxxxxxxxxx[user:protected] => [signedRequest:protected] => [state:protected] => [accessToken:protected] => [fileUploadSupport:protected] => )
so the fan gate wont work because $facebook->getSignedRequest(); always return null in my server side. I have do the searching for this problem for some days already and still dont understand what is the problem.
Any help is very much appreciated.
^ ... continue from the comments:
First of all, if you do this, your users will hate you; secondly, that plugin is bit of a scam - all it does is uses cookies to store if user has liked a page - but if you delete your cookies, you will be locked out of the content because you won't be able to like the page again. Furthermore, it won't work without Javascript.
All the plugin does is it hooks into the "like" action when user clicks on the like button via
FB.Event.subscribe('edge.create', function(href, response){});
facebook graph api determine if user likes url