NetTalk Central

Author Topic: Link to credit card API  (Read 4454 times)

rupertvz

  • Sr. Member
  • ****
  • Posts: 326
    • View Profile
    • Email
Link to credit card API
« on: January 12, 2012, 05:26:46 AM »
Hi Guys,

I have a NetWebForm(wizard) with a FINISH(proceed to payment) button at the end.
According to the credit-card company I have to pass some values to their system, and call an HTML form from the FINISH button on my NetTalk wizard form.

Below is an example of some of the form fields they require.  

How do I pass these values to their system via an HTML form from the FINISH button of my NetWebForm(Wizard) procedure?

<form method="POST" action="https://their_url/ccform.asp">
<input type="hidden" name="p1" value="a">
<input type="hidden" name="p2" value="b">
<input type="hidden" name="Budget" value="n">
<input type="hidden" name="NextOccurDate" value="o">
<input type="hidden" name="m_7" value="z">
<input type="hidden" name="m_10" value="z">
<input type="submit" value="Proceed to Payment">
</form>

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Link to credit card API
« Reply #1 on: January 12, 2012, 05:42:01 AM »
URL on Save: 'https://their_url/ccform.asp'
plus lots of hidden fields on your form. (there is a form-field-type called Hidden)

cheers
Bruce



rupertvz

  • Sr. Member
  • ****
  • Posts: 326
    • View Profile
    • Email
Re: Link to credit card API
« Reply #2 on: January 12, 2012, 05:50:29 AM »
Thanks Bruce,

I entered the URL on save.

Where do I create and call the form with the hidden fields?

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Link to credit card API
« Reply #3 on: January 12, 2012, 07:13:39 AM »
Ok, I think you want to back up a bit Rupert.
What I thought you wanted to do was send the Wizard form to the provider. That's what the Save URL will do.

However I think what you want to do is communicate from your server to the CC API, transparently.
In which case I think you should make a new _window_ procedure, and put a web client procedure in it. Use AddValue to add values to the object, then do a POST.

So, if you haven't done a Webclient before watch the webinar on that, then build a little test app with a web client window, then plug that window into your web server app. You can call it from the AfterInsert embed.

cheers
Bruce


Johandpl

  • Newbie
  • *
  • Posts: 6
    • View Profile
    • Email
Re: Link to credit card API
« Reply #4 on: January 13, 2012, 01:21:06 AM »
Hi Rupert,
Johan here...did you get your posting to work?

Please help.

Warm regards,
Johan

rupertvz

  • Sr. Member
  • ****
  • Posts: 326
    • View Profile
    • Email
Re: Link to credit card API
« Reply #5 on: February 07, 2012, 04:27:06 AM »
Hi Johan,

Sorry, I only opened this topic again today.
Only saw your post now ... didn't see any notification.

No, it's not yet working, but I think I am on the right track :-)

Will start a new topic with the latest info and questions.

Regards
Rupert