I need to migrate to another PayPal account and start receiving payments there. The previous setup is working great but I cant see to figure out how to migrate to the new account.
The existing PayPal configuration is as follows:
test:
paypal_email: email#fake.com
paypal_secret: xxxxxxxxxx
paypal_cert_id: ASLJKDLA334LJ
paypal_url: "https://www.sandbox.paypal.com/cgi-bin/webscr"
key_pass: 0000
In my PayPal account I go to "Business Setup" -> "Get your API Credentials" -> "View API Signature" and I see some different information that looks like this:
API Username: somename.butnotemail
API Password: ALKSDFLADSJLKAJSDASDALKSDJ
Signature: afalksdjfal.asdflkjalsdfjalksfjqwefasdfaksdf.aksdjfhaksdfha
First of all they do not seem to match and if I try to replace them the payment is leading to "Sorry — your last action could not be completed" page.
Can you please give me some insight on this? Am I looking at the wrong place? Where can I find the credentials I need?
Any help would be really appreciated
Thanks, in advance
From reading around, it sounds like the API key isn't what you're looking for in Ruby On Rails. I found this on Kestrel Blackmore's site -- it's to do with what happens when your credentials expire, but hopefully you can turn it to your ends as well.
http://www.kestrelblackmore.com/blog/rails-paypal-certificate-expiration
Perhaps the data in your configuration is referring to a PayPal REST API App? Check the following link (while logged in) in your old account, or create an app with your new account and use the generated credentials
https://developer.paypal.com/developer/applications
Related
I'm working with the PayPal API and am trying to create an account as shown here.
The request is made to https://svcs.sandbox.paypal.com/AdaptiveAccounts/CreateAccount.
I'm able to send a valid request and get a response indicating success back but the redirect URL that's also returned as part of the response payload (which according to their docs is supposed to take the user to a PayPal sign up/registration page) is directing them to the following:
I've been unable to find anything on Stackoverflow or Google regarding this. Has anyone encountered this before? I'm assuming that even though it's a sandbox environment it should allow me to simulate the workflow somehow. I've tried with both the default sandbox credentials as well as for my own environment.
Looks like the issue was due to the IP address header in the request. The default configuration is:
-H "X-PAYPAL-DEVICE-IPADDRESS: 192.0.2.0"
While testing on localhost, I changed it to:
-H "X-PAYPAL-DEVICE-IPADDRESS: 127.0.0.1"
Also had to ensure that the email address didn't already have an account registered to it - in which case it would lead to a login page instead of the registration page (which is a little poorly designed in my opinion since you can't really test without making new accounts each time).
I am trying to run the sample Google Apps Script Service Account OAuth example taken from here:
https://github.com/googlesamples/apps-script-oauth2/blob/master/samples/GoogleServiceAccount.gs and keep getting a server timed-out error. I copied the exact code and just substituted in the private key, client email, and a user email. The example code looks to be current as there was an update to it on July 30th.
I have authorized https://www.googleapis.com/drive/v2/files through the admin console as well as https://accounts.google.com/o/oauth2/token and have listed these as scopes in the admin settings (and domain-wide delegation is enabled). I am using an admin account to run the script.
I keep getting the ubiquitious "Server Timed Out" error and nothing shows up in the Execution Logs.
What might be the problem? Any help would be appreciated. Thanks in advance.
Thanks, Gerardo, for pointing me in the right direction. It turned out that our organization manages permissions for the Google Developer's Console by Organizations (in the Google Admin console). Somehow a few accounts, including mine, were kicked out of the Organization that had permissions to access the Developer's Console. After adding myself back in, the sample worked without problems.
Problem : I am facing difficulties in getting user's birthday from api calls and I am new to OAuth.
Steps followed : (Have followed all steps required for implementing login with google+)
1. Created an app.
2. Obtained app_id and secret_key.
3. Did not make use of SDK, implemented the process without SDK in php.
4. Obtained "CODE" by calling accounts[dot]google[dot]com/o/oauth2/auth?
5. Using the code from the URL parameters requested for access token by HTTPS POST method to https://accounts.google.com/o/oauth2/token, using CURL
6. When accessing the login page, user is asked for permissions to access the information such as email, profile, DOB etc., but I am not able to find a way to get that date of birth
7. I have tried access www[dot]googleapis[dot]com/plus/v1/people/User_ID?key={THE_API_KEY} . Still no luck
Please guide or suggest me on how to get the DOB. Also let me know if there is any other information I missed to share.
Thanks in advance.
Cheers!
Farhan
Well Well Ofcourse.. It has to be a security thing from google.
I got to know after I did a part of unit testing with different scenarios and missed out on a simple thing that google only responds with the b'day information if the user has allowed to in his profile settings.
all if the birth year is hidden, it will throw 0000 as year in the response of the HTTPS Post method.
If I am wrong in any of the information provided, Please do correct me.
Cheers!
Farhan.
I want to get PayPal reports and for this reason I installed paypal-report gem.
Can someone look are my credentials are correct or for Reporting API usage I need some special account ?
I have verified bussiness account.
Here is my code:
require 'paypal/report'
api = Paypal::Report.new("my secure account MerchantID", "mypassword", "my secure account MerchantID", "PayPalUK")
puts api.daily.inspect
I also tried to enter my email instead of MerchanID, but it didn't work.
and this gives me error:
C:/Ruby193/lib/ruby/gems/1.9.1/gems/paypal-report-0.1.2/lib/paypal/report.rb:141
:in `block in request': Invalid merchant account (RuntimeError)
I tried to inspect api value, by using puts api and here is result:
puts api
//and result:
#<Paypal::Report:0x27a4310>
Can someone help me ?
Seeing 'PayPalUK' in there, I've got a suspicion the gem you're using is for PayPal Payflow services (and when it comes to reporting, that would be XML Reporting).
Seeing as you mention having a regular 'verified business account', I don't think you'd have access to Payflow API calls. Thus, no correct credentials to enter there.
What PayPal API call are you trying to use? Is it TransactionSearch you're looking for?
If so, try the ruby-paypal gem.
(Note, I haven't tested it, but it's the first one a quick Google search for "PayPal TransactionSearch gem" returned.)
I've spent the better part of the afternoon dealing with this issue so any help is appreciated.
I'm using ActiveMerchant with the active_paypal_adaptive_payment gateway and I'm running into some problems. Firstly, I don't have an app ID and I'm not sure where to get one. I'm wondering if this is my problem.
My goal is to send money from one user's PayPal account to another's using the Adaptive API. I've debugged to the point where I'm certain that the ActiveMerchant Gateway is producing the correct XML:
<?xml version="1.0" encoding="UTF-8"?>
<PayRequest>
<requestEnvelope>
<detailLevel>ReturnAll</detailLevel>
<errorLanguage>en_US</errorLanguage>
</requestEnvelope>
<actionType>PAY</actionType>
<cancelUrl>http://localhost:3000/.../</cancelUrl>
<returnUrl>http://localhost:3000/.../</returnUrl>
<ipnNotificationUrl>http://localhost:3000/.../</ipnNotificationUrl>
<currencyCode>USD</currencyCode>
<receiverList>
<receiver>
<email>sandbox_account#gmail.com</email>
<amount>100.0</amount>
</receiver>
</receiverList>
<reverseAllParallelPaymentsOnError>false</reverseAllParallelPaymentsOnError>
</PayRequest>
PayPal responds with:
response_rash: !ruby/hash:Hashie::Rash
response_envelope: !ruby/hash:Hashie::Rash
timestamp: '2012-05-28T15:02:43.381-07:00'
ack: Success
correlation_id: 881baf8e93444
build: '2945555'
pay_key: AP-879734246V2339109
payment_exec_status: CREATED
I then redirect the user to the correct PayPal page. The user logs in, reviews their information, and then hits "Pay," at which point they are hit with this error:
Your payment can't be completed. Please return to the participating website and try again.
I even uploaded to a staging environment to see if the IPN is triggered but it is not, I assume this is because the payment is never actually completed. I wish I could see what's happening on PayPal's end but I don't think they offer any tools to do that.
Has anyone seen a similar error? Any advice as to where to proceed next?
The problem was in fact the lack of an App ID. After some digging I found that the Sandbox Global APP ID is APP-80W284485P519543T. This has it working for now until I get a real App ID.