NetTalk Central

Author Topic: NT and credit card processing - need help  (Read 6211 times)

alex.kolaric

  • Full Member
  • ***
  • Posts: 151
  • Do it or do not, there is no try
    • View Profile
    • Email
NT and credit card processing - need help
« on: February 02, 2012, 02:54:07 AM »
Hi,

I was investigating possibility of using XWeb HPF credit processing with NT. I successfully integrated their credit card processing form within web page generated by NT and I am able to use it. The issue I have is the following. Xweb HPF must be included within the web page in an iframe and it automatically includes Submit button which does the actual transaction submitting. In order to determine if the transaction was processed ok or not and show the appropriate page I need to poll the Xweb server for the response and process that response.

I don't know at which point I can add the response polling/checking code in NT. Any ideas? Anyone did something like this before?

Any help is appreciated. Thanks in advance.
Alex

P.S. I'm attaching integration PDF which explains the flow of requests/responses. Maybe someone can find it usefull too

[attachment deleted by admin]

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: NT and credit card processing - need help
« Reply #1 on: February 02, 2012, 05:00:27 PM »

alex.kolaric

  • Full Member
  • ***
  • Posts: 151
  • Do it or do not, there is no try
    • View Profile
    • Email
Re: NT and credit card processing - need help
« Reply #2 on: February 03, 2012, 03:15:05 AM »
Hi Kevin,

thanks for the reply. I already saw this post, however it doesn't help me with what I need to do. The issue is the following. I need to show credit cart processor form within my page in an iframe (which I did without a problem) and upon Subimt button is pressed poll the response from credit card processing company server. Main issue is that Submit button is a part of their form within the iframe so it is not controlled by my code.

Regards,
Alex

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: NT and credit card processing - need help
« Reply #3 on: February 03, 2012, 03:25:13 AM »
OK I'm with you now.

I would think when you load the iframe at the same time you also start the polling on a timer and not when the user clicks the submit button.

alex.kolaric

  • Full Member
  • ***
  • Posts: 151
  • Do it or do not, there is no try
    • View Profile
    • Email
Re: NT and credit card processing - need help
« Reply #4 on: February 03, 2012, 04:09:24 AM »
Thanks Kevin,

Interesting idea. I noticed one more thing. When I click on submit button within iframe my web server executes one GET in the log file. If I could catch that request I would be able to start the polling thread at that point. I suspect that the best place for that would be within WebHandler procedure however I don't have the slightest idea where to put the code. There is ProcessGet method there which is executed after Submit button is clicked but it doesn't have any params which I could use to determine that in which specific case to execute the code.

Regards,
Alex


alex.kolaric

  • Full Member
  • ***
  • Posts: 151
  • Do it or do not, there is no try
    • View Profile
    • Email
Re: NT and credit card processing - need help
« Reply #5 on: February 08, 2012, 01:02:51 PM »
Kevin,

do you have an idea how to redirect to some page from polling procedure after transaction confirmation comes in?

Thanks,
Alex


kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: NT and credit card processing - need help
« Reply #6 on: February 08, 2012, 03:39:24 PM »
Try p_web.script('location.href="&clip(L:RedirectPage)&' " ')

alex.kolaric

  • Full Member
  • ***
  • Posts: 151
  • Do it or do not, there is no try
    • View Profile
    • Email
Re: NT and credit card processing - need help
« Reply #7 on: February 09, 2012, 03:45:44 AM »
Thanks Kevin,

I will try that.

Regards,
Alex