In Paypal developer account I have configured Payment Data Transfer settings and acquired Identity Token. (Return URL is also added)
I am using PayPal PHP SDK.
Which class and where in PHP code I can pass Identity Token?
Related
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.
Using paypal permission sdk, I got token and tokenSecret after granting the permission. Then using the Oauth, I have received the signature key. Now I want to call the Express Checkout call with this signature? How its possible?
This is the step I did in the permission API,
Get the Classic Api credentials from Sandbox with Application ID
Using the Permission API.. Finally i got Access token and token Secret.
Then using paypal OAuth.. received the signature.
Now I am stuck with next step. Even I didn't get the call "GetBasicPersonalData"
I want to create a Web Service in PHP where the client will send cart and other information.
The server (Web Service) then will perform the paypal transaction using Paypal API. After the transaction is complete the service will return the result and all values in JSON encoded format.
Step1: A site creates instance of Client and sends cart information to Service.
Step2: Services processes the information and performs paypal transaction (redirects to paypal site).
Step3: After paypal transaction is complete paypal returns to service.
Step4: Service processes the transaction information (creates JSON) and returns to Client
The Service should be stand alone and can be used for any site.
My PHP class library for PayPal will make this very simple for you, as it basically does everything you're asking for here already.
You would just have to receive the data from your requesting client and then pass it into the library which has templates setup for nearly every API call PayPal offers.
It simply returns a PHP array of all the PayPal response data, so all you'd have to do is pass that into json_encode($paypal_response) to get your JSON string and output that for the requesting client.
You could have the whole thing ready to go in a matter of minutes depending on how much data you're receiving from the client.
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.
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