By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,934 Members | 1,352 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,934 IT Pros & Developers. It's quick & easy.

Paypal pro integration ERROR

P: 3
Iam almost completed my project Now iam integrating paypal pro But While running sample programs it was showing error Message like this

Error Number: 56
Error Message: Received error code 404 from proxy

if i use turn proxy to false then it was showing another error like this

The PayPal API has returned an error!
Error Number: 18
Error Message: transfer closed with -1 bytes remaining to read

Pls Help i will Thankfull to you
Aug 7 '07 #1
Share this Question
Share on Google+
4 Replies


ak1dnar
Expert 100+
P: 1,584
Hi There,
welcome to the TSDN !

Could you please tell us more about your sample program.
From where did you get these samples?
Aug 7 '07 #2

P: 3
HI,

I got these examples from paypal tech support

in that constant.php file code was as follows


[PHP] <?php
/************************************************** **
constants.php

This is the configuration file for the samples.This file
defines the parameters needed to make an API call.

PayPal includes the following API Signature for making API
calls to the PayPal sandbox:

API Username sdk-three_api1.sdk.com
API Password QFZCWN5HZM8VBG7Q
API Signature A-IzJhZZjhg29XQ2qnhapuwxIDzyAZQ92FRP5dqBzVesOkzbdUON zmOU

Called by CallerService.php.
************************************************** **/

/**
# API user: The user that is identified as making the call. you can
# also use your own API username that you created on PayPalís sandbox
# or the PayPal live site
*/

//define('API_USERNAME', 'sdk-three_api1.sdk.com');

define('API_USERNAME', 'aamir_api1.thesmartcalorie.com');

/**
# API_password: The password associated with the API user
# If you are using your own API username, enter the API password that
# was generated by PayPal below
# IMPORTANT - HAVING YOUR API PASSWORD INCLUDED IN THE MANNER IS NOT
# SECURE, AND ITS ONLY BEING SHOWN THIS WAY FOR TESTING PURPOSES
*/

//define('API_PASSWORD', 'QFZCWN5HZM8VBG7Q');
define('API_PASSWORD', 'QGNKZTDQSPH8DPTK');

/**
# API_Signature:The Signature associated with the API user. which is generated by paypal.
*/

//define('API_SIGNATURE', 'A.d9eRKfd1yVkRrtmMfCFLTqa6M9AyodL0SJkhYztxUi8W9pC XF6.4NI');
define('API_SIGNATURE', 'AfypLWgLkb5AQF5hXAu-Wh1orAjfA2RLVjWCXc6HGJHPXqshz-jPvb5e');

/**
# Endpoint: this is the server URL which you have to connect for submitting your API request.
*/

//define('API_ENDPOINT', 'https://api-3t.sandbox.paypal.com/nvp');
//define('API_ENDPOINT', 'https://api.paypal.com/nvp');
define('API_ENDPOINT', 'https://api-3t.paypal.com/nvp');
/**
USE_PROXY: Set this variable to TRUE to route all the API requests through proxy.
like define('USE_PROXY',TRUE);
*/
define('USE_PROXY',FALSE);
/**
PROXY_HOST: Set the host name or the IP address of proxy server.
PROXY_PORT: Set proxy port.

PROXY_HOST and PROXY_PORT will be read only if USE_PROXY is set to TRUE
*/
define('PROXY_HOST', '127.0.0.1');
define('PROXY_PORT', '808');

/* Define the PayPal URL. This is the URL that the buyer is
first sent to to authorize payment with their paypal account
change the URL depending if you are testing on the sandbox
or going to the live PayPal site
For the sandbox, the URL is
https://www.sandbox.paypal.com/webscr&cmd=_express-checkout&token=
For the live site, the URL is
https://www.paypal.com/webscr&cmd=_express-checkout&token=
*/
//define('PAYPAL_URL', 'https://www.sandbox.paypal.com/webscr&cmd=_express-checkout&token=');
define('PAYPAL_URL', ' https://www.paypal.com/webscr&cmd=_express-checkout&token=');

/**
# Version: this is the API version in the request.
# It is a mandatory parameter for each API request.
# The only supported value at this time is 2.3
*/

define('VERSION', '3.0');

?>[/PHP]
Aug 9 '07 #3

ak1dnar
Expert 100+
P: 1,584
Oh Its Website Payments Pro ! I am sorry I have never done a project with this API. you may better to read the manual, to find out more about API. May be takes more time to do that ;)

Additionally I'll try to get some Experts here to take a look at on your problem. Stay in touch.

Thanks!

Aug 9 '07 #4

P: 3
OK Thank's for Your Responce
Aug 9 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.