How to integrate Payseal in ASPNET - asp.net

Anyone, plz, provide me the details of integrating payseal(ICICI) in my website.. They hav given some testing code.. But, I couldn't understand it.. If I get any code sample, it will be useful for me.
Thanks in Advance

Ok..I found the solution.. Just add the dll which is provided by them. They hav given the sample test pages. In that, run the aspx file, "testssl.aspx" by changing the function setmerchantdetails with your information like merchant id,response page etc., like
objMerchant.setMerchantDetails("00001212", "00001212", "00001212", "", transactionid, "Orderno", "http://localhost/SFAClient/SFAResponse.aspx", "POST", "INR", "INVoiceno", "req.Preauthorization", "1550.00", "GMT+05:30", "Ext1", "Ext2", "Ext3", "Ext4", "Ext5");
That will take u to the icici payseal page. From that the customer hav to response. After finishing the payment, it will directly return to the response page designed by you(http://localhost/SFAClient/SFAResponse.aspx).
Hope, it will help others!!!!

Related

How can I get the input value of a text field that has been created with airtable in wordpress?

I am trying to make some further adjustments to an address text field. But the problem is that its made with airtable. I want to get the input of that address and use it to get some data from zillow API for the user. How can I do this? I have viewed the source HTML and I only see the airtable script.
This probably went unanswered for being too vague. I'll try to leave some pointers if anyone stumbles upon this in the future.
Are you the host of the WP page? do you have access to the Airtable base in question? Is the "frontend" viewable? Airtable's API is pretty well-documented, simple as it may be. Whatever you need, if it's from a shared view, it can be fetched with a curl request.
Other than that,if the base is public, or shared publicly, and particularly if you need this data at a steady rate or in larger quantities, you'd be better off requesting access and collecting the information with a script from the Scripting app. Since ES6, this is as trivial as doing something like
let query = await base.getTable
(cursor.activeTableId)
.selectRecordsAsync()
let payload, selectAll = query.records.map(rec => rec.name),
selectAll ?
payload = { records: JSON.stringify(selectAll) }
: console.error('something went wrong')
remoteFetchAsync(('your scraping endpoint', payload)=>
//rock'n'roll past this point
})

Integrating Yahoo Sports API Data

I have been following the code from here, which works until the "yahoo_token" step that yields the following:
yahoo_token<- oauth2.0_token(yahoo, myapp, cache=T, use_oob = T)
Please point your browser to the following url:
https://api.login.yahoo.com/oauth/v2/request_auth?client_id=dj0yJmk9Uk1waEVUSWNhQmF1JmQ9WVdrOVpXNUNTelZDTnpZbWNHbzlNQS0tJnM9Y29uc3VtZXJzZWNyZXQmeD04OA--&scope=&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&response_type=code
Enter authorization code:
I then have no idea what the authorization code is. The link they ask me to point my browser to also asks for a code but none was provided to me at any point during this process.
I was able to solve this after changing my request for authorization to:
yahoo_token<- oauth1.0_token(yahoo, myapp, cache=T)

Twilio access POST data on page .net

I am doing my best to try and get a .net webforms twilio app up and running but I am stuck at one part which I haven't found an answer too throughout all the blog posts and tutorials I have read. I have found numerous stack overflow questions but no real answer yet.
Basically: I have an .aspx page that executes: var call = client.InitiateOutboundCall(options);,
which has the url set as an ashx page that has:
twiml.BeginGather(new {
action = "http://sydheller.com/default.aspx",
numDigits = "1"});
twiml.Say("Please enter your PIN");
twiml.Hangup();
and then on that default.aspx in the Page_Load I have:
if (Request.Form["Digits"] != null)
{
string digits = Request.Form["Digits"];
digitsLabel.Text = digits;
}
When I click the button to make the call, I get the call and complete it and it hangs up but nothing happens on my page. I assume I need to use AJAX somehow but I am not sure how to write an ajax request to get information from something that the twilio api/ashx page is posting back.
Does that make sense?
This is driving me crazy and I have a feeling that it is something not particularly complicated that I just don't know and cant figure out.
I would really appreciate any help anyone could throw my way!
Thank you so much in advance,
Syd

Log in to website using Jsoup

I'm trying to scrap a webpage for data but came across the problem of needing to log in.
Connection.Response loginForm = Jsoup.connect("http://www.rapidnyc.net/users/google_login")
.method(Connection.Method.GET)
.execute();
Document document = Jsoup.connect("http://www.rapidnyc.net/users/google_login")
.data("Email", "testEmail")
.data("Passwd", "testPass")
.... //other form data
.cookies(loginForm.cookies())
.post();
This gives me the org.jsoup.HttpStatusException: HTTP error fetching URL. Status=400
I used chrome developer tool to look at the Form data being posted but nothing I post works.
1. Have you submitted ALL input fields? Including HIDDEN ones.
2. I see the website requires "captcha-box" authentication, which is to prevent web crawlers from logging in. I highly doubt you will be able to log in with your program.
I say the 400 status is coming from your program not being able to provide the value for "captcha" authentication.

what are PayPal CallBack parameters

Update 2:
I have found the right QueryString.
Update 1:
I think, QueryString should be the right type to use in this case.
But I tried to use it and found it's not the ASP.NET WebForm Response.QueryString instead, it is
Microsoft.Owin.QueryString.
Do I need to add some references in order to use the Response.QueryString?
Thank you for any feedback and help
I'm very close to the right direction, but need you help.
I have a PayPal callback method in my ASp.NET MVC controller called: PayPalCallBack(FormCollection form)
The problem is I cannot get any values(e.g. cm(custom), st(payment_status) etc.) from this form variable.
But when the method is finished, I did see the return url came with those values
https://www.mywebsite.net/Event/PayPalCallBack?tx=4KT34448LJ0584918&st=Completed&amt=0%2e11&cc=AUD&cm=3%2f23%2f2014%2011%3a00%3a00%20AM%7c3%2f23%2f2014%2012%3a00%3a00%20PM%7cWinTech%7cmr%7cWinston%7cFan%7cfranva008%40gmail%2ecom%7c0425620666%7c1&item_number=
So, I guess, I am using a wrong type of variable to receive its return values.
My question are
1. what should be the right type of parameter used in my PayPalCallBack( values)?
what parameters can the return_url have?
I am so close to the last step, my friends please help me out.
Note: I am asking the return values/parameters in return_url, not the notify_url which is used in PayPal IPN. Thanks
Thank you!

Resources