473,626 Members | 3,304 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Paypal pro integration ERROR

3 New Member
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
4 5152
ak1dnar
1,584 Recognized Expert Top Contributor
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
lalith369100
3 New Member
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 QFZCWN5HZM8VBG7 Q
API Signature A-IzJhZZjhg29XQ2q nhapuwxIDzyAZQ9 2FRP5dqBzVesOkz bdUONzmOU

Called by CallerService.p hp.
*************** *************** *************** *******/

/**
# 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_USE RNAME', 'sdk-three_api1.sdk. com');

define('API_USE RNAME', 'aamir_api1.the smartcalorie.co m');

/**
# 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_PAS SWORD', 'QFZCWN5HZM8VBG 7Q');
define('API_PAS SWORD', 'QGNKZTDQSPH8DP TK');

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

//define('API_SIG NATURE', 'A.d9eRKfd1yVkR rtmMfCFLTqa6M9A yodL0SJkhYztxUi 8W9pCXF6.4NI');
define('API_SIG NATURE', 'AfypLWgLkb5AQF 5hXAu-Wh1orAjfA2RLVjW CXc6HGJHPXqshz-jPvb5e');

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

//define('API_END POINT', 'https://api-3t.sandbox.payp al.com/nvp');
//define('API_END POINT', 'https://api.paypal.com/nvp');
define('API_END POINT', 'https://api-3t.paypal.com/nvp');
/**
USE_PROXY: Set this variable to TRUE to route all the API requests through proxy.
like define('USE_PRO XY',TRUE);
*/
define('USE_PRO XY',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_H OST', '127.0.0.1');
define('PROXY_P ORT', '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.pay pal.com/webscr&cmd=_exp ress-checkout&token=
For the live site, the URL is
https://www.paypal.com/webscr&cmd=_exp ress-checkout&token=
*/
//define('PAYPAL_ URL', 'https://www.sandbox.pay pal.com/webscr&cmd=_exp ress-checkout&token= ');
define('PAYPAL_ URL', ' https://www.paypal.com/webscr&cmd=_exp ress-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
1,584 Recognized Expert Top Contributor
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
lalith369100
3 New Member
OK Thank's for Your Responce
Aug 9 '07 #5

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

Similar topics

4
1724
by: Lunchbox G4 | last post by:
I am working on a site, and the people its for are asking about a way of collecting money online. Doing an onsite shopping cart is not a possibility right now, so I'm looking towards PayPal (or similar) integration. I've read up on PayPal's site about integrating their API and suck, but as of yet no practical experience. Has anyone out there had experience doing this? Is it the best bet? Successes, failures, anything would be appreciated....
1
2094
by: Vahehoo | last post by:
Hi, I have an ASP .Net e-business site that is built using DNN 2.0. I am having troubles passing my shopping cart items to PayPal. I implemented a total paynow button, but it was not good enough for my customer. I found some PayPal ASP.Net controls to be used with .net studio. Basically, I want the user to be able to shop on my website, add items to my shopping cart and at the checkout to be taken to the PayPal website. I would like...
4
1588
by: ykhamitkar | last post by:
Hi There, I have created one website with paypal link integration. I dont know Ihow do i test paypal account. I dont want to use my credit card for testing. . Can somebody help me with this Thanks,
6
4901
by: Tony M | last post by:
VS 2005 - vb .net - web forms I'm looking for some SDK and samples of how to interact with PayPal. I'm very confused with the search's I'm finding on Google and most are more then 2 years old! When I go to MSDN Visual Basic SDK downloads (http://msdn2.microsoft.com/en-us/vbasic/ms789080.aspx) I see starter kit for PayPal but when you read and start to download it's C# not VB. Anyone know where I can find some samples and components?
2
1695
by: sree | last post by:
Hi, I am using Paypal in my site. The problem is the phone number is not displayed in the paypal page, but am sending the phone number in a hidden value with the name "H_PhoneNumber". Can anyone tell what could be the problem? Why am not getting Phone number in the paypal page. Thanks in advance.
1
2411
by: MehtabKhan | last post by:
Any one who tell me what’s wrong with this code. When I pass values to pay pal by using www.sandbox.paypal.com/cgi-bin/webscr all the code are working well. The orders are generating accurately. The code after returning from paypal is as follows. <!--#include file="../includes/connection1.asp"--> <!--#include file="Cart_Include.asp"--> <% ' read post from PayPal system and add 'cmd' str ="cmd=_notify-validate&"& Request.QueryString '...
2
1321
by: cityman007 | last post by:
Hi Any one can help with paypal integration HOw to get only successful payment notification email with customers info? I have two products and buy now button from paypal. What i need is once the payment is success then only the "success notification email" will go to the administrator with customers info. Is it possible?
2
7390
by: huhuhujujuju | last post by:
Ok, for better explanation i better describe a situation: A user starts my program c# windows application He fills out whatever information he has to and clicks a "donate" button that makes his paypal account transfer the ammount specified to another paypal account specified by the program Thats the program i want to create but i dont know how to connect paypal with may app Any solutions, codes or programs you know that can accomplish...
0
8269
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8203
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8711
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8642
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8512
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5576
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4094
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4206
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1515
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.