|
What version of the PayPal API are you using?
There is usually a field you have to populate indicating the full URL of the success page on your website, after a successful payment is made.
Best to use the PayPal forum and have a PayPal tech answer your question.
|
|
|
|
|
I am using version 76.0, my problem is the page is keep loading and didn't return to complete transaction page. I have to click go to back and then click to go forward, and it will only return me the completed transaction page.
|
|
|
|
|
I was referring to the version name of the API, for example PayPal Pro NVP.
Since your referring to a transaction page, I will assume your using the basic entry level service.
You need to post some code if you want help, or use the PayPal forum to get help.
You should have some sort of structure in code behind, in which you setup your payment environment. If not, then I assuming you used the PayPal Programming interface in the sandbox, and you were not able to complete the setup, in which you customize your PayPal interface including the full URL of both the successful and failed transaction web page on your website.
|
|
|
|
|
NVPCallerServices caller = new NVPCallerServices();
IAPIProfile profile = ProfileFactory.createSignatureAPIProfile();
/*WARNING: Do not embed plaintext credentials in your application code.Doing so is insecure and against best practices.Your API credentials must be handled securely. Please considerencrypting them for use in any production environment, and ensurethat only authorized individuals may view or modify them.*/
// Set up your API credentials, PayPal end point, API operation and version.
profile.APIUsername = "xxxxx.hotmail.com";
profile.APIPassword = "xxxxx";
profile.APISignature = "xxxxx";
profile.Environment = "sandbox";
caller.APIProfile = profile;
NVPCodec encoder = new NVPCodec();
encoder["VERSION"] = "76.0";
encoder["METHOD"] = "SetExpressCheckout";
// Add request-specific fields to the request.
encoder["RETURNURL"] = "https://..../return1.aspx";
encoder["CANCELURL"] = "......";
encoder["CURRENCYCODE"] = "USD";
encoder["PAYMENTACTION"] = "SALE";
encoder["PAYMENTREQUEST_0_AMT"] = "150.00";
encoder["PAYMENTREQUEST_0_ITEMAMT"] = "100.00";
encoder["PAYMENTREQUEST_0_DESC"] = "Mobile";
encoder["NOSHIPPING"] = "0";
encoder["REQCONFIRMSHIPPING"] = "1";
encoder["PAYMENTREQUEST_0_SHIPTOSTREET"] = "1 Main St";
encoder["PAYMENTREQUEST_0_SHIPTOCITY"] = "San Jose";
encoder["PAYMENTREQUEST_0_SHIPTOSTATE"] = "CA";
encoder["PAYMENTREQUEST_0_SHIPTOCOUNTRYCODE"] = "US";
encoder["PAYMENTREQUEST_0_SHIPTOZIP"] = "95131";
encoder["PAYMENTREQUEST_0_SHIPTOPHONENUM"] = "408-967-4444";
double totalprice = 0.00;
for (int i = 0; i < cart; ++i)
{
encoder["Name" + i] = from cart;
encoder["L_PAYMENTREQUEST_0_NAME" + i] = from cart;
encoder["L_PAYMENTREQUEST_0_ITEMCATEGORY" + i] = " Digital";
totalprice += from cart;
encoder["L_PAYMENTREQUEST_0_AMT" + i] = from cart;
encoder["L_PAYMENTREQUEST_0_QTY" + i] = from cart;
}
String strtotalprice = string.Format("{0:N2}", totalprice);
encoder["PAYMENTREQUEST_0_AMT"] = strtotalprice ;
encoder["PAYMENTREQUEST_0_ITEMAMT"] = strtotalprice;
string pStrrequestforNvp = encoder.Encode();
string pStresponsenvp = caller.Call(pStrrequestforNvp);
NVPCodec decoder = new NVPCodec();
decoder.Decode(pStresponsenvp);
Token = decoder["TOKEN"];
Response.Redirect("https://www.sandbox.paypal.com/incontext?useraction=continue&token=" + Token );
|
|
|
|
|
awakepoh wrote: encoder["RETURNURL"] = "https://..../return1.aspx";
encoder["CANCELURL"] = "......";
It's good practice to hardcode the entire URL for safe measure, but in your case since your developing, you need to hardcode the http://localhost:4987, the url of your web dev in order for the page to return. Or perhaps try a partial url like
/return1.aspx.
Don't forget to set a cancel url for the cancel action. 4987 is just a port number I made up. Use the port number your web dev is using.
The web dev does not support https protocol, so you will have to use http
|
|
|
|
|
Hi friend,
I am working with Client Server windows(VC++ and MFC) project which is connceted via TCP IP concept. it is working fine with in a organization(LAN).but my requierment, server in one location, client in another location.
How to connect Client and Server.
Can i use virualiztion concept?
I do not know how to start.
Do you have any virualiztion concept reference website link?
Please teach me.
|
|
|
|
|
This was originally posted in C# forum but (on advise) I reposted it here and edited the original to direct readers to this new post. Please do not flag as a repost - it isn't! (Unless of course you submit a suggestion for being able to shift posts around to CP suggestions forum too.)
So every new website launched (revamped or whatever) these days ought to have good Bug Tracking/Reporting systems in place as no website is perfect first time. However, I have not recently come across a system that actually works well and would apply to my websites situation. I am trying to make a cloud app where users access stuff entirely online through my site but obviously as I have written the (primitive) access program to them myself, it is going to have bugs. I therefore need a system to allow bug reporting/viewing/tracking or whatever you want to call it.
So what do people think is the best way of doing it?
Obviously the basic requirements are:
A list of existing bug reports (including which are being worked on)
Some method of submitting a bug report
A way for me (the developer) to respond effectively to bug reports and tell users that I am doing so.
Could anyone offer any insite/comment/help as to how best to do this?
Thanks very much,
Ed
|
|
|
|
|
|
please i want replay for: how i can store and retrive swf in and from asp.net database
|
|
|
|
|
A swf file is a binary file just like an image or document. If you do a search for storing/retrieving images you'll find plenty of resources.
Failure is not an option; it's the default selection.
|
|
|
|
|
Good Day
i am using a AsyncUpload(telerik), i am in a point where i am supposed to save the File to a certain Folder.
First i check if the directory exist
Dim baseDire As String = Server.MapPath("~/MyFILES/")
If IO.Directory.Exists(baseDire & Request("Req_ID").ToString()) = False Then
IO.Directory.CreateDirectory(baseDire & Request("Req_ID").ToString())
End If
Because i am doing multiple Upload , i will have to loop through the items of the Upload control and save to a folder.
For Each file As UploadedFile In UploadPropDoc.UploadedFiles
Dim bytes(file.ContentLength - 1) As Byte
file.InputStream.Read(bytes, 0, file.ContentLength)
file.SaveAs(baseDire + file.GetName())
Next
Now when ever i debug this , when it comes to this line
file.SaveAs(baseDire + file.GetName())
i get an Error
The process cannot access the file because it is being used by another process.
I have removed the Readonly in the Folder that it supposed to write to and gave everyone permission , but still the error persist.
Thanks
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa[at]dotnetfunda.com
http://www.Dotnetfunda.com
|
|
|
|
|
Hi
baseDire + file.GetName()
i guess you need to check the path, you have checked the existence of the directory but not appended to when giving to the file Save AS.
Hope this will help.
|
|
|
|
|
Thanks for the reply
So if i dont append the Path, how will it know where to save the file ?
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa[at]dotnetfunda.com
http://www.Dotnetfunda.com
|
|
|
|
|
Hi ,
i am using page life cycle for AJAX webservice call..
OnPreRenderComplete , i am having result of the first service call in the form of JSON.. before rendering this data to js page.. i want to make a another service call for the one of the json data...and i want to render these information to js finally...
2 service call... with the first service call result i want to make a another call...the full data i want to render back...
kindly suggest best way to do so..
thanks in advance..
|
|
|
|
|
If you can call the second service call on the first service's callback, you should be able to synchronize your service calls.
|
|
|
|
|
I want to upload an website created in asp.net on sharepoint.
Is it possible to upload the site created in asp.net directly on the sharepoint server( or a link from a virtual server is to be provided) . I have been suggested to upload the existing as a sanbox solution. But I want to avoid the overhead to created a sandbox solution.
|
|
|
|
|
Don't cross post, you have already asked this in the SharePoint forum
No comment
|
|
|
|
|
Hi fri
How to display text object vertically in crystal report.
|
|
|
|
|
You can rotate your text by choosing format Text -> Common -> text rotation -> choose 90.
Please do not repose your question in the future.
|
|
|
|
|
I have a rater control that insert votes into table as 1,2,3,4,5.
table Structure
Colid int
Userid int
infraPoints int
infraPoints can be 1,2,3,4,5.
Now I want to show chart as
x-axis 1,2,3,4,5.
y-axis No of votes for 1,No of votes for 2,No of votes for 3,No of votes for 4,No of votes for 5 respectively.
I am creating chart by using td and div.(div height increases as no of votes).
Now how i fetch No of votes for 1,No of votes for 2,No of votes for 3,No of votes for 4,No of votes for 5 respectively.in single query.
or
share any other way to achive this.....
|
|
|
|
|
Hi,
I have added one gridview inside the Update panel,I want to fire the textchanged event on gridview with update panel.
please help me on this.
Thanks in advance.
Raaj
|
|
|
|
|
Make sure AutoPostBack="true" .
|
|
|
|
|
when calling a Nusoap php web service from ASP.NET proxy class the response ends up containing crap characters in place of persian(arabic) characters. The owner of web service says it has changed the encoding for the web service to UTF-8. I have tried some changes in my code but non helped:
1-I tried RequestEncoding of SoapHttpClientProtocol.(set to Encoding.UTF8)
2-<globalization fileEncoding="utf-8" requestEncoding="utf-8" responseEncoding="utf-8" />
3-tried
string.Normalize(System.Text.NormalizationForm.FormC),
string.Normalize(System.Text.NormalizationForm.FormD),
string.Normalize(System.Text.NormalizationForm.FormKC)
string.Normalize(System.Text.NormalizationForm.FormKD) on response string
|
|
|
|
|
Have you used both Razor and traditional ASP.Net?
Any issues with either - preferences, etc.?
I'm liking the look of MVC, and Razor - but wonder if I might find any hiccoughs along the way!
|
|
|
|
|
hi friends
I have a problem in crystal report viewer; i can do report viewer with vertical format; that is use in official report;
so plz do help me in this issue
Myat Su<a href=""></a>
|
|
|
|