simpleuser
simpleuser

Reputation: 479

Paypal php API: setting up credentials

This is a simple question. I am using the Paypal php api (https://www.x.com/sites/default/files/merchant-php-2.0.96.zip). I found my api keys (Api username, password and signature). But I cannot find where to specify them in express check out in the PHP SDK( I am using the Express checkout from the Samples).

Any help is appreciated.

Upvotes: 2

Views: 1275

Answers (2)

danjfoley
danjfoley

Reputation: 808

Use the sandbox api credentials as follows:

use the business account created as one of your sandbox account. (applications tab, sandbox accounts). Click on the account, then on "profile" under it, then on the "API Credentials" tab.

edit the sdk_config.ini in the php sdk (under the config folder), and use those credintials with an app_id of APP-80W284485P519543T

Make sure mode is set to sandbox under [Service] in the ini file.

When you make the service call use the account username you entered in the ini file as follows:

$setECResponse = $paypalService->SetExpressCheckout($setECReq,"API_USERNAME");

Upvotes: 0

knightrider
knightrider

Reputation: 2143

Modify this file config/sdk_config.ini

Upvotes: 2

Related Questions