Hi
I am having a payment website which needs to be integrated, i am having the
following code which is not working fine.
I am having the following script and my notifyurl is not working i don't
know why can guys please help me up
<%
if SIGNUP_PRICE > 0 then
%>
<form name="_xclick"
action="http://www.paypal.com/cgi-bin/webscr" method="post">
<%
else
%>
<form action="admin_paypal_confirmation.asp" method="post">
<%
end if
%>
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" va********@a.com>
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="item_name" value="ADMIN/RE-SELLER Signup
Fees">
<input type="hidden" name="item_number" value=1>
<input type="hidden" name="amount" value=11>
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="rm" value="2">
<input type="hidden" name="return" value="http://
mywebsite.com/login.asp?msg=You have Successfully Paid Signup Fee.">
<input type="hidden" name="cancel_return"
value="http://mywebsite.com/login.asp?msg=You have canceled the Payment
Process.">
<input type="hidden" name="notify_url"
value="http://mywebsite.com/admin_paypal_confirmation.asp">
admin_paypal_confirmation.asp
==========================
Dim Item_name, Item_number, Payment_status, Payment_amount
Dim Txn_id, Receiver_email, Payer_email
Dim objHttp, str
str = Request.Form & "&cmd=_notify-validate"
set objHttp = Server.CreateObject("Msxml2.ServerXMLHTTP")
objHttp.open "POST", "https://www.paypal.com/cgi-bin/webscr", false
objHttp.setRequestHeader "Content-type", "application/x-www-form-urlencoded"
objHttp.Send str
Item_name = Request.Form("item_name")
Item_number = Request.Form("item_number")
Payment_status = Request.Form("payment_status")
Payment_amount = Request.Form("mc_gross")
Payment_currency = Request.Form("mc_currency")
Txn_id = Request.Form("txn_id")
Receiver_email = Request.Form("receiver_email")
Payer_email = Request.Form("payer_email")
PhysicalPath=server.MapPath("/")&"\mywebsite\testpaypal.txt"
dim fs,fname
set fs=Server.CreateObject("Scripting.FileSystemObject ")
set fname=fs.CreateTextFile(PhysicalPath)
fname.WriteLine objHttp.status
fname.WriteLine objHttp.responseText
fname.Close
set fname=nothing
set fs=nothing
if (objHttp.status <> 200 ) then
elseif (objHttp.responseText = "VERIFIED") then
ABC()
'This function will do the database operations
elseif (objHttp.responseText = "INVALID") then
else
end if
set objHttp = nothing
In the admin_paypal_confirmation.asp i added a filesystemobject so that i
could see whether the data or is this file being called.
To my surprise i find that it is not created also.If i run this file alone
directly it will create the file.but thru paypal its not creating
Any help will be of great use
Regards
Vinod 5 4748
Your question is a little fuzzy. Are you saying that paypal rejects the
request when you send it through xmlhttp but not when it is a direct post?
If so, I would create a test script to call instead of paypal and just log
request.form. Then see if it is different between the two methods.
Also, is paypal expecting any headers (like http-referer) or cookies?
--
--Mark Schupp
Head of Development
Integrity eLearning www.ielearning.com
"Vinod" <vi***@erivasystems.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl... Hi
I am having a payment website which needs to be integrated, i am having the following code which is not working fine.
I am having the following script and my notifyurl is not working i don't know why can guys please help me up
<% if SIGNUP_PRICE > 0 then %> <form name="_xclick" action="http://www.paypal.com/cgi-bin/webscr" method="post"> <% else %> <form action="admin_paypal_confirmation.asp" method="post">
<% end if %>
<input type="hidden" name="cmd" value="_xclick"> <input type="hidden" name="business" va********@a.com> <input type="hidden" name="currency_code" value="USD"> <input type="hidden" name="item_name" value="ADMIN/RE-SELLER Signup Fees"> <input type="hidden" name="item_number" value=1> <input type="hidden" name="amount" value=11> <input type="hidden" name="no_shipping" value="1"> <input type="hidden" name="no_note" value="1"> <input type="hidden" name="rm" value="2">
<input type="hidden" name="return" value="http:// mywebsite.com/login.asp?msg=You have Successfully Paid Signup Fee."> <input type="hidden" name="cancel_return" value="http://mywebsite.com/login.asp?msg=You have canceled the Payment Process."> <input type="hidden" name="notify_url" value="http://mywebsite.com/admin_paypal_confirmation.asp">
admin_paypal_confirmation.asp ========================== Dim Item_name, Item_number, Payment_status, Payment_amount Dim Txn_id, Receiver_email, Payer_email Dim objHttp, str
str = Request.Form & "&cmd=_notify-validate" set objHttp = Server.CreateObject("Msxml2.ServerXMLHTTP") objHttp.open "POST", "https://www.paypal.com/cgi-bin/webscr", false objHttp.setRequestHeader "Content-type", "application/x-www-form-urlencoded" objHttp.Send str
Item_name = Request.Form("item_name") Item_number = Request.Form("item_number") Payment_status = Request.Form("payment_status") Payment_amount = Request.Form("mc_gross") Payment_currency = Request.Form("mc_currency") Txn_id = Request.Form("txn_id") Receiver_email = Request.Form("receiver_email") Payer_email = Request.Form("payer_email")
PhysicalPath=server.MapPath("/")&"\mywebsite\testpaypal.txt" dim fs,fname set fs=Server.CreateObject("Scripting.FileSystemObject ") set fname=fs.CreateTextFile(PhysicalPath) fname.WriteLine objHttp.status fname.WriteLine objHttp.responseText fname.Close set fname=nothing set fs=nothing
if (objHttp.status <> 200 ) then
elseif (objHttp.responseText = "VERIFIED") then ABC()
'This function will do the database operations elseif (objHttp.responseText = "INVALID") then else end if set objHttp = nothing
In the admin_paypal_confirmation.asp i added a filesystemobject so that i could see whether the data or is this file being called. To my surprise i find that it is not created also.If i run this file alone directly it will create the file.but thru paypal its not creating
Any help will be of great use
Regards Vinod
Hi,
I am saying it not even coming to that page.
Regards
Vinod
"Mark Schupp" <no******@email.net> wrote in message
news:Og**************@TK2MSFTNGP15.phx.gbl... Your question is a little fuzzy. Are you saying that paypal rejects the request when you send it through xmlhttp but not when it is a direct post?
If so, I would create a test script to call instead of paypal and just log request.form. Then see if it is different between the two methods.
Also, is paypal expecting any headers (like http-referer) or cookies?
-- --Mark Schupp Head of Development Integrity eLearning www.ielearning.com
"Vinod" <vi***@erivasystems.com> wrote in message news:%2****************@TK2MSFTNGP12.phx.gbl... Hi
I am having a payment website which needs to be integrated, i am having the following code which is not working fine.
I am having the following script and my notifyurl is not working i don't know why can guys please help me up
<% if SIGNUP_PRICE > 0 then %> <form name="_xclick" action="http://www.paypal.com/cgi-bin/webscr" method="post"> <% else %> <form action="admin_paypal_confirmation.asp" method="post">
<% end if %>
<input type="hidden" name="cmd" value="_xclick"> <input type="hidden" name="business" va********@a.com> <input type="hidden" name="currency_code" value="USD"> <input type="hidden" name="item_name" value="ADMIN/RE-SELLER Signup Fees"> <input type="hidden" name="item_number" value=1> <input type="hidden" name="amount" value=11> <input type="hidden" name="no_shipping" value="1"> <input type="hidden" name="no_note" value="1"> <input type="hidden" name="rm" value="2">
<input type="hidden" name="return" value="http:// mywebsite.com/login.asp?msg=You have Successfully Paid Signup Fee."> <input type="hidden" name="cancel_return" value="http://mywebsite.com/login.asp?msg=You have canceled the Payment Process."> <input type="hidden" name="notify_url" value="http://mywebsite.com/admin_paypal_confirmation.asp">
admin_paypal_confirmation.asp ========================== Dim Item_name, Item_number, Payment_status, Payment_amount Dim Txn_id, Receiver_email, Payer_email Dim objHttp, str
str = Request.Form & "&cmd=_notify-validate" set objHttp = Server.CreateObject("Msxml2.ServerXMLHTTP") objHttp.open "POST", "https://www.paypal.com/cgi-bin/webscr", false objHttp.setRequestHeader "Content-type", "application/x-www-form-urlencoded" objHttp.Send str
Item_name = Request.Form("item_name") Item_number = Request.Form("item_number") Payment_status = Request.Form("payment_status") Payment_amount = Request.Form("mc_gross") Payment_currency = Request.Form("mc_currency") Txn_id = Request.Form("txn_id") Receiver_email = Request.Form("receiver_email") Payer_email = Request.Form("payer_email")
PhysicalPath=server.MapPath("/")&"\mywebsite\testpaypal.txt" dim fs,fname set fs=Server.CreateObject("Scripting.FileSystemObject ") set fname=fs.CreateTextFile(PhysicalPath) fname.WriteLine objHttp.status fname.WriteLine objHttp.responseText fname.Close set fname=nothing set fs=nothing
if (objHttp.status <> 200 ) then
elseif (objHttp.responseText = "VERIFIED") then ABC()
'This function will do the database operations elseif (objHttp.responseText = "INVALID") then else end if set objHttp = nothing
In the admin_paypal_confirmation.asp i added a filesystemobject so that
i could see whether the data or is this file being called. To my surprise i find that it is not created also.If i run this file
alone directly it will create the file.but thru paypal its not creating
Any help will be of great use
Regards Vinod
Are you testing against the PayPal Sandbox?
Is your payment transaction completing?
Is your return URL being called?
"Vinod" <vi***@erivasystems.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl... Hi
I am having a payment website which needs to be integrated, i am having
the following code which is not working fine.
I am having the following script and my notifyurl is not working i don't know why can guys please help me up
<% if SIGNUP_PRICE > 0 then %> <form name="_xclick" action="http://www.paypal.com/cgi-bin/webscr" method="post"> <% else %> <form action="admin_paypal_confirmation.asp" method="post">
<% end if %>
<input type="hidden" name="cmd" value="_xclick"> <input type="hidden" name="business" va********@a.com> <input type="hidden" name="currency_code" value="USD"> <input type="hidden" name="item_name" value="ADMIN/RE-SELLER Signup Fees"> <input type="hidden" name="item_number" value=1> <input type="hidden" name="amount" value=11> <input type="hidden" name="no_shipping" value="1"> <input type="hidden" name="no_note" value="1"> <input type="hidden" name="rm" value="2">
<input type="hidden" name="return" value="http:// mywebsite.com/login.asp?msg=You have Successfully Paid Signup Fee."> <input type="hidden" name="cancel_return" value="http://mywebsite.com/login.asp?msg=You have canceled the Payment Process."> <input type="hidden" name="notify_url" value="http://mywebsite.com/admin_paypal_confirmation.asp">
admin_paypal_confirmation.asp ========================== Dim Item_name, Item_number, Payment_status, Payment_amount Dim Txn_id, Receiver_email, Payer_email Dim objHttp, str
str = Request.Form & "&cmd=_notify-validate" set objHttp = Server.CreateObject("Msxml2.ServerXMLHTTP") objHttp.open "POST", "https://www.paypal.com/cgi-bin/webscr", false objHttp.setRequestHeader "Content-type",
"application/x-www-form-urlencoded" objHttp.Send str
Item_name = Request.Form("item_name") Item_number = Request.Form("item_number") Payment_status = Request.Form("payment_status") Payment_amount = Request.Form("mc_gross") Payment_currency = Request.Form("mc_currency") Txn_id = Request.Form("txn_id") Receiver_email = Request.Form("receiver_email") Payer_email = Request.Form("payer_email")
PhysicalPath=server.MapPath("/")&"\mywebsite\testpaypal.txt" dim fs,fname set fs=Server.CreateObject("Scripting.FileSystemObject ") set fname=fs.CreateTextFile(PhysicalPath) fname.WriteLine objHttp.status fname.WriteLine objHttp.responseText fname.Close set fname=nothing set fs=nothing
if (objHttp.status <> 200 ) then
elseif (objHttp.responseText = "VERIFIED") then ABC()
'This function will do the database operations elseif (objHttp.responseText = "INVALID") then else end if set objHttp = nothing
In the admin_paypal_confirmation.asp i added a filesystemobject so that i could see whether the data or is this file being called. To my surprise i find that it is not created also.If i run this file alone directly it will create the file.but thru paypal its not creating
Any help will be of great use
Regards Vinod
I am testing it in live paypal.
My return URL is being called too
and my payment transcation is also getting completed.
But the path to my notify url has a update statement which should be done in
the paypal its not being processed.
regards
vinod
"Jonathan Dodds" <NO_REPLY> wrote in message
news:ek**************@TK2MSFTNGP14.phx.gbl... Are you testing against the PayPal Sandbox? Is your payment transaction completing? Is your return URL being called?
"Vinod" <vi***@erivasystems.com> wrote in message news:%2****************@TK2MSFTNGP12.phx.gbl... Hi
I am having a payment website which needs to be integrated, i am having the following code which is not working fine.
I am having the following script and my notifyurl is not working i don't know why can guys please help me up
<% if SIGNUP_PRICE > 0 then %> <form name="_xclick" action="http://www.paypal.com/cgi-bin/webscr" method="post"> <% else %> <form action="admin_paypal_confirmation.asp" method="post">
<% end if %>
<input type="hidden" name="cmd" value="_xclick"> <input type="hidden" name="business" va********@a.com> <input type="hidden" name="currency_code" value="USD"> <input type="hidden" name="item_name" value="ADMIN/RE-SELLER Signup Fees"> <input type="hidden" name="item_number" value=1> <input type="hidden" name="amount" value=11> <input type="hidden" name="no_shipping" value="1"> <input type="hidden" name="no_note" value="1"> <input type="hidden" name="rm" value="2">
<input type="hidden" name="return" value="http:// mywebsite.com/login.asp?msg=You have Successfully Paid Signup Fee."> <input type="hidden" name="cancel_return" value="http://mywebsite.com/login.asp?msg=You have canceled the Payment Process."> <input type="hidden" name="notify_url" value="http://mywebsite.com/admin_paypal_confirmation.asp">
admin_paypal_confirmation.asp ========================== Dim Item_name, Item_number, Payment_status, Payment_amount Dim Txn_id, Receiver_email, Payer_email Dim objHttp, str
str = Request.Form & "&cmd=_notify-validate" set objHttp = Server.CreateObject("Msxml2.ServerXMLHTTP") objHttp.open "POST", "https://www.paypal.com/cgi-bin/webscr", false objHttp.setRequestHeader "Content-type", "application/x-www-form-urlencoded" objHttp.Send str
Item_name = Request.Form("item_name") Item_number = Request.Form("item_number") Payment_status = Request.Form("payment_status") Payment_amount = Request.Form("mc_gross") Payment_currency = Request.Form("mc_currency") Txn_id = Request.Form("txn_id") Receiver_email = Request.Form("receiver_email") Payer_email = Request.Form("payer_email")
PhysicalPath=server.MapPath("/")&"\mywebsite\testpaypal.txt" dim fs,fname set fs=Server.CreateObject("Scripting.FileSystemObject ") set fname=fs.CreateTextFile(PhysicalPath) fname.WriteLine objHttp.status fname.WriteLine objHttp.responseText fname.Close set fname=nothing set fs=nothing
if (objHttp.status <> 200 ) then
elseif (objHttp.responseText = "VERIFIED") then ABC()
'This function will do the database operations elseif (objHttp.responseText = "INVALID") then else end if set objHttp = nothing
In the admin_paypal_confirmation.asp i added a filesystemobject so that
i could see whether the data or is this file being called. To my surprise i find that it is not created also.If i run this file
alone directly it will create the file.but thru paypal its not creating
Any help will be of great use
Regards Vinod
http://www.cjwsoft.com/paypal_ipn_fulfill.asp
"Vinod" <vi***@erivasystems.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl... Hi
I am having a payment website which needs to be integrated, i am having the following code which is not working fine.
I am having the following script and my notifyurl is not working i don't know why can guys please help me up
<% if SIGNUP_PRICE > 0 then %> <form name="_xclick" action="http://www.paypal.com/cgi-bin/webscr" method="post"> <% else %> <form action="admin_paypal_confirmation.asp" method="post">
<% end if %>
<input type="hidden" name="cmd" value="_xclick"> <input type="hidden" name="business" va********@a.com> <input type="hidden" name="currency_code" value="USD"> <input type="hidden" name="item_name" value="ADMIN/RE-SELLER Signup Fees"> <input type="hidden" name="item_number" value=1> <input type="hidden" name="amount" value=11> <input type="hidden" name="no_shipping" value="1"> <input type="hidden" name="no_note" value="1"> <input type="hidden" name="rm" value="2">
<input type="hidden" name="return" value="http:// mywebsite.com/login.asp?msg=You have Successfully Paid Signup Fee."> <input type="hidden" name="cancel_return" value="http://mywebsite.com/login.asp?msg=You have canceled the Payment Process."> <input type="hidden" name="notify_url" value="http://mywebsite.com/admin_paypal_confirmation.asp">
admin_paypal_confirmation.asp ========================== Dim Item_name, Item_number, Payment_status, Payment_amount Dim Txn_id, Receiver_email, Payer_email Dim objHttp, str
str = Request.Form & "&cmd=_notify-validate" set objHttp = Server.CreateObject("Msxml2.ServerXMLHTTP") objHttp.open "POST", "https://www.paypal.com/cgi-bin/webscr", false objHttp.setRequestHeader "Content-type", "application/x-www-form-urlencoded" objHttp.Send str
Item_name = Request.Form("item_name") Item_number = Request.Form("item_number") Payment_status = Request.Form("payment_status") Payment_amount = Request.Form("mc_gross") Payment_currency = Request.Form("mc_currency") Txn_id = Request.Form("txn_id") Receiver_email = Request.Form("receiver_email") Payer_email = Request.Form("payer_email")
PhysicalPath=server.MapPath("/")&"\mywebsite\testpaypal.txt" dim fs,fname set fs=Server.CreateObject("Scripting.FileSystemObject ") set fname=fs.CreateTextFile(PhysicalPath) fname.WriteLine objHttp.status fname.WriteLine objHttp.responseText fname.Close set fname=nothing set fs=nothing
if (objHttp.status <> 200 ) then
elseif (objHttp.responseText = "VERIFIED") then ABC()
'This function will do the database operations elseif (objHttp.responseText = "INVALID") then else end if set objHttp = nothing
In the admin_paypal_confirmation.asp i added a filesystemobject so that i could see whether the data or is this file being called. To my surprise i find that it is not created also.If i run this file alone directly it will create the file.but thru paypal its not creating
Any help will be of great use
Regards Vinod This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Adam King |
last post by:
Hey,
I'm trying to set-up a PayPal Instant Payment Notification backend to a
site. The problem is that I cannot post back to PayPal using
"fsockopen()" since my service provider (1and1.co.uk)...
|
by: Sanju Joseph |
last post by:
Dear friends,
We are working on a website which will enable the
users to place orders from restaurants. The payments are
to be directed through Paypal.com. Can anyone provide us
necessary...
|
by: rgparkins |
last post by:
HI
I have 2 problems, 1 of which is tied to PHP and 1 loosely tied, so
I'll put this out there.
Got a problem that I have been working on for a while now which
involves implementing the...
|
by: Mark |
last post by:
Hi all, I have an ASP.NET application which I use to call paypal.
I pass in the success URL as
http://www.somedomain.com/success.aspx
I go right through the paypal process and I finally get...
|
by: Greg |
last post by:
I have code (below) that was working a year ago that I'm trying to use again
and it's now not working. The response is always invalid. Anyone know why?
Code:
Function GetPayPal() As Boolean...
|
by: #2pencil |
last post by:
After some google'n & looking through some PayPal pdfs I'm starting a
post here.
What I'm trying to find is the method of changing (upgrading or
downgrading) members subscription services...
|
by: Samuel Shulman |
last post by:
I look for source code to implement Paypal standard payment system in my
ASP.NET website
Thanks,
Samuel
|
by: t0m66 |
last post by:
I've got a setup for my online game for upgraded accounts. However, I'm unable to communicate with Paypal's IPN sandbox server. Does anyone have any experience with Paypal's IPN and, if so, can...
|
by: adamjblakey |
last post by:
Hi,
I have just signed up to paypal pro payments and want to get this set-up on my site.
What i want to do is have a form where the customer can fill in their credit card details and when the...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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...
| |