How to use paypal API credentials with srmklive laravel packege - php

I am using the srmklive package for Laravel and have set up a sandbox account on the Paypal API dashboard and it works. I am trying to port it over to use the customer's live business account on Paypal but I can't map across the API credentials. The sandbox uses the following:
PAYPAL_CLIENT_ID=
PAYPAL_CLIENT_SECRET=
PAYPAL_MODE=
But all I see when I generate the details on Paypal business account is
API Username
API Password
Signature
How I go about using these on the srmklive package?

Go to https://developer.paypal.com and create an app. Then click on the app and you will see client id and secret. It seems like you were going through your normal account page at paypal.com and not the developer portal.

Related

PayPal upgrade from Sandbox to Production, not found error

My application was working fine with paypal sanbox account but when I put my production API credentials and make application to accept real payments it is giving me:
"This webpage is not available" error on this url:
"https://www.live.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-95X1447957597540A".
I am making express checkout and credit card payments using paypal.
And I have my personal paypal account and developer account. And I am currently testing with my personal account API credentials for production purpose.
Does it require to create a new Classic App to go live?
And if yes than can I and my client both create same app?
Thanks.
You don't use live.paypal.com. The live server is just www.paypal.com.

Paypal user to user transaction using php webservice

My Requirement: We have an iphone app which will accept paypal login id and password of user and our web service should authenticate those details and if the user is a valid one, on next web service call will accept the details of second user and amount to transfer and the web service should make the payment automatically (without redirecting to paypal site).
Is there any facility available in paypal for this functionality. I have gone through adaptive payments of paypal but didn't find anything related to authentication. We have written the web service in php. Any sample code/ links would be helpful. Thanks
I believe this is what you're after. Specifically Login with PayPal and Seamless Checkout.
You might also want to look at Adaptive Payments, specifically Preapproval and Pay.

which API to use the paypal adaptive module?

I purchased a PayPal Adaptive module, to make it work I have to enter the LIVE APP ID that was given to me when I activated the application on the PayPal site?
Or should I use the API that I create through my paypal account?
For Adaptive you need your API credentials and your App ID.
I know this question is old, but in case it comes in handy for anyone in the future, you'll need to login to your developers account and click classic APIs

Disable sandbox mode for Paypal Express

I'm using Omnipay with CodeIgniter to allow customers to checkout on Paypal.
I was using test mode during the development on the website, but now the site is done and ready to be put in production.
But I don't know how to setup Omnipay to use live payments and not Sandbox mode.
I tried setting the testMode to false. -> Security header invalid.
I tried creating REST Api credentials -> You can't make this api call.
I know that's probably not the right way to do this, but at least I explored options.
So please, what's the most suitable configuration to do live Payments on PaypalExpress with Omnipay ?
Thanks in advance.
You need to set testMode to false, or just leave it out entirely (false is the default).
Security header invalid
This means that you are trying to use test credentials with the production environment (which it sounds like you were).
You don't want to create REST credentials, you need to create API credentials for the standard PayPal NVP API.
PayPal Express requires an API Username, Password, and Signature. These are different from your PayPal account details. You can obtain your API details by logging in to your (live) PayPal account, and clicking Profile > My Selling Tools > API Access > Request/View API Credentials > Request API Signature.
depending on what type of payments are you using you need to say paypal to activate your account for this types of transactions (this is not necessary in sandbox.
Anyway, is these error returned by omnipay or by paypal api? Copy and paste de full error here for more help.
There are a lot of differences between sandbox and real mode, sandbox usually say ok to any transaction. We had a lot of problems integrating paypal api because of bad practices in sandbox.
In order to try your code in the PayPal sandbox test environment, use the following credentials :
API username : sdk-three_api1.sdk.com
API password : QFZCWN5HZM8VBG7Q
API signature : A‑IzJhZZjhg29XQ2qnhapuwxIDzyAZQ92FRP5dqBzVesOkzbdUONzmOU
P.S: Don't forget to set testMode to true
source : PayPal NVP API Overview

how to test clicknbuy?

I want to test clicknbuy payment gateway like paypal sandbox? Is that possible ? If yes, how ?
You can test Paypal by using different settings for the script. Instead of using the "real" api you create a developer account. That allows you to have a fake account and fake usernames to simulate payments. When you're done with everything you can switch to using the normal api instead of the test server.
Base site: https://developer.paypal.com/
More information at https://www.x.com/community/ppx/testing
Click on "Testing Web Checkout APIs"
Testing Web Checkout APIs PayPal Web
Checkout APIs includes Express
Checkout, Website Payments Pro, Button
Manager, Mass Pay, Recurring Payments,
and all of the Information APIs
Login or sign-up on
developer.paypal.com Create your test
accounts - you can learn more about
this in the Getting Starting Guide.
Get you API Credentials for your
Business Test Account Code and Test
Read the Documents Get Sample Code
Download SDKs
Use the correct endpoint
Go live :)

Categories