Paypal Adeptive Response Message - paypal

can anyone please explain me this error message?
i am using paypal adeptive payments but all is properly setup but this error is coming in light box pop up so please explain it for me?
Array
(
[Errors] => Array
(
[0] => Array
(
[Receiver] =>
[Category] => Application
[Domain] => PLATFORM
[ErrorID] => 520003
[ExceptionID] =>
[Message] => Authentication failed. API credentials are incorrect.
[Parameter] =>
[Severity] => Error
[Subdomain] => Application
)
)
)
thank you

This error message is the result of incorrect credentials being passed. You would want to make sure the credentials you are passing are correct. Note, if you are copying them from the PayPal website directly, I would recommend copy and pasting them into a text editor then copy and paste from there to your code to avoid leading or trailing spaces from occurring when pasting the information.
If your credentials are correct I would recommend reviewing your code to ensure that these credentials are not being changed or modified when being passed over to PayPal.
One thing thing you can try is if your using the sandbox for the purpose of this testing, I would recommend attempting to run it in Live mode as there can be issues occasionally with certain functions running on the sandbox environment.

Related

Moodle [errorcode] => errorcoursecontextnotvalid

Hi while connecting Edwise Bridge to moodle i am getting this error:
An issue is detected.
Status :
Connection Failed
URL:
https://fxcursos.entendiendoforex.com//webservice/rest/server.php?wstoken=38546d8b79c6a1b150fb13b6f0e36a76&wsfunction=core_course_get_courses&moodlewsrestformat=json
Response :
stdClass Object ( [exception] => moodle_exception [errorcode] => errorcoursecontextnotvalid [message] => You cannot execute functions in the course context (course id:1). The context error message was: error/forcepasswordchangenotice )
Can anyone help me with this?
I found it. The problem is Force Password Change is activated. I have gone inside the user account & unchecked the Force Password Change checkbox, after performing this change I am able to test the Moodle connection.

PayPal PDT not returning Custom Message url parameter "cm" properly

I have multiple websites that use PayPal Buy Now buttons and have PDT enabled.
All of the existing customer websites are working, in that after the user makes a purchase, they are redirected back to their site by PayPal with a return URL that includes the 'cm' parameter as specified here.
I have a new client with a brand new Merchant Account who has their PDT configured correctly (I have checked it multiple times to be sure). However, upon return from PayPal payment, we are missing the 'cm' parameter that is necessary to do validation/updates on our website.
I have never seen this before where some of the variables are getting sent back, but not all as defined in the PayPal documentation above.
Here is an example of a working return URL - (some values edited for privacy purposes only)
.../paypal/pdt?redirect=https://journals.myclient.com/view/journals/cssm/4/1/article-p14.xml?PFTxId=4435&offerProvider=DEFAULT&amt=9.95&cc=USD&cm=mJ5v4sm1PUcD0E9vbii0pm6e1ql5GRs/lv+aQuNuves=%7CaccountId=XXXXX%7COffer ID=7|mc_gross=9.95&item_name=ITEM NAME Dilemma&item_number=/journals/cssm/4/1/article-p14.xml&st=Completed&tx=XXXXXXXXXXXX
Here is the example of the newly created Merchant Account where this is not working
.../paypal/pdt?redirect=https://www.nonworkingclient.org/view/journals/tpmd/s1-1/6/article-p331.xml?PFTxId=40&offerProvider=DEFAULT&PayerID=RPUJELM94HEYU&st=Completed&tx=XXXXXXXXXX&cc=USD&amt=0.01
Here you can see in the comparison, PayPal is returning the 'tx' and 'cc' variables in both examples, but 'cm' is missing from the bottom example.
Has anyone else experienced this lately?
Does anyone know of anything more than the PDT setup that needs to be checked to see why this is failing in the Merchant Account?
Thank you for any assistance.
I have an account that has been set up and working for 3+ years. PDT always returned a "cm" parameter which I pass in as "custom". In the last couple weeks it is hit or miss whether I get "cm" back (can't say exactly when it stopped working as the site has not been used since Spring 2020). About 10% of the time it works but the other 90% no "cm". The response is a bit different in the success and failure cases. Here is an example of a successful return with "cm" (the output is the GET array parameters and values)
(
[feepaid] => Y
[amt] => 75.00
[cc] => USD
[cm] => 586
[item_name] => IW***** Fee
[item_number] => g**5
[st] => Completed
[tx] => 9J5******81R
)
and an example of a failure case (no "cm")
(
[feepaid] => Y
[PayerID] => 9J*******YG
[st] => Completed
[tx] => 3D2*****2457
[cc] => USD
[amt] => 75.00
)
The failure has "PayerID" which does not appear as a valid variable in PDT or IPN spec. Success case has no PayerID but has item_name and item_number (which are fixed in the button definition on PayPal merchant account).
Same here! Paypal no longer return cm paramater for some users

Paypal Balance Accounts API - INSUFFICIENT_PRIVILEGES

i'm trying to access paypals accounts using the rest api
i'm making a request to /v2/wallet/balance-accounts/ ( Documentation : https://developer.paypal.com/docs/api/balance-accounts/)
but keep getting the following message:
Array
(
[name] => INSUFFICIENT_PRIVILEGES
[message] => Insufficient privileges for requested resource.
[information_link] =>
[details] => Array
(
[0] => Array
(
[issue] => Insufficient privileges for requested resource.
[code] => INSUFFICIENT_PRIVILEGES
)
)
)
does anyone know from where i can change/add the privileges? i can't find the settings for it
thank you
It says here you must have a business account, and also here (you must be a partner) based on their suggestion here you have an alternative:
https://developer.paypal.com/docs/classic/api/merchant/GetBalance_API_Operation_NVP/
Which is unfortunately not REST
Hope this helps

Laravel 4.1, call error message for specific validation point of one input / possible?

I have a question concerning the Laravel 4.1 validators.
$validator = Validator::make(
array('name' => 'Dayle'),
array('email' => 'required|min:5|unique:users')
);
Is it possible to call a specific validation error for the case when the entered email is not unique? Reading the docs I only saw that one is able to define the error message if the validation for 'email' fails. However, if someone enters an email address but this one is already in the database it would be awesome to show the user exactly that he passed "required" but did not pass "unique".
The third parameter of Validator::make() lets you pass in an array of messages. More on this here: http://laravel.com/docs/validation#custom-error-messages
As it says in the above link, you can specify field-and-rule-specific messages by using the dot syntax email.unique. In your case this would be:
$validator = Validator::make(
array('name' => 'Dayle'),
array('email' => 'required|min:5|unique:users'),
array('email.unique' => 'This email is already being used by another user.'),
);

Register new memer for vBulletin via Mobile API

I'm trying to use the vBulletin REST Mobile API to simply register.
The sourced are installed on my local machine and according the documentation https://www.vbulletin.com/forum/content.php/393-User-Registration-Process-Mobile-API
This procedure should not be so hard, especially without humanity and COPPA authentication.
However I've stacked!
The method definition describes "addnewmember" clear, so I've generated a test link, which should do the job.
https://www.vbulletin.com/forum/content.php/365-User-Related-Methods
The link is:
.../forum/api.php?&api_m=register_addmember&api_c=1&api_s=76ec9eec61e7fdfef2f3feee28d5f392&api_sig=8fe54313b333cc0fef4ddd8e398b5c80&api_v=6&agree=1&username=testuser&email=XXXXXX%40gmail.com&emailconfirm=XXXXX%40gmail.com&password=12345678&passwordconfirm=12345678
As a response I get: register_not_agreed
The Docs: register_not_agreed
The agree parameter should be set to 1.
Which is also clear - agree parameter was not there.
Here comes the funny part - In the API-Log I can see that the 'agree' parameter is correctly passed
*1 test_client Gast 13:23, 18.06.2012 register_addmember Array ( [api_m] => register_addmember [api_c] => 1 [api_s] => 76ec9eec61e7fdfef2f3feee28d5f392 [api_sig] => 8fe54313b333cc0fef4ddd8e398b5c80 [api_v] => 6 [agree] => 1 [username] => testuser [email] => ....*
Is there anybody with experience with the Mobile API that could help?
I don't know why it does not work with a pure GET call but I'm sure it will work (because I'm working on a vBulletin API client in Python and I did it this way) if you:
use GET parameters to send api_c, api_sm, api_m, and api_sig
use POST data for all the rest (username, email, agree, etc)