Announcement

Collapse
No announcement yet.

Need help with my form to sell tickets

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • CnP.Support
    replied
    Good day!

    The form post back does not have any totals. It responds back with the authorized or decline.

    Since you have the values you can simply calculate it or possibly event pass the total using JavaScript as RefID variable. The RefID, which is not really designed with this in mind, is a value that you may post to us and we will post it back to you. It is designed to help with developers passing database reference ID's so they know what to update once we reply back. Since it is a value that also posts back to you it may be used for passing the subtotal.

    Hope that helps.

    Leave a comment:


  • nezzdog
    replied
    Thanks for the note, sorry the post below is old. I have it all figured out now https://jhalliance.org/35thAnnivTicket_JHAlliance2.htm.
    The only thing that I have a question about now, is there a custom field that can be built for "subtotal" ---- the subtotal works on the form but in the authorize test page it doesn't show. Either in the ItemID1, ItemName1, UnitPrice1?

    Leave a comment:


  • CnP.Support
    replied
    Good day!

    Good so you have a solution. Have you tested it?

    All you have to do is to change the link to: https://code.jquery.com/jquery-latest.min.js

    check it - that site is available over a secure channel so you should be fine.

    Have you tested it? As stated before we truly can't debug your code for a large number of reasons.

    Leave a comment:


  • nezzdog
    replied
    I know I am getting annoying with this form and trouble with it but this is what a developer tells me about the 'https' and possible issues on the jquery...thoughts?

    The page at 'https://www.jhalliance.org/35thAnnivTicket_JHAlliance2.htm' was loaded over HTTPS, but ran insecure content from 'http://code.jquery.com/jquery-latest.min.js': this content should also be loaded over HTTPS.

    Which means the JQuery library ISN'T GETTING LOADED! Which means your subtotal will not get calculated!

    Leave a comment:


  • CnP.Support
    replied
    Good day!

    The RefID and Tracker are optional and not needed.

    RefID = any parameter you wish to see returned to you once a transaction has been processed. Typically developers use this to send the ID of the entry if they are saving the info in their local database. Upon return they can locate the transaction and record the authorization, etc. It is simply a value that once posted we will return to you in the post back URL.

    Tracker = any text that you wish to save with the transaction. Typical use case is a newsletter where you may wish to save a text representing the email. Developers typically pass this as a variable in the URL so they can read it and post it with the transaction. Imagine an email newsletter having a link in the body of the email. The link has a tracker value so when the reader clicks on the button the tracker appears with the URL. The form will read the URL and send it with transaction.

    The other issue with the ticket pricing, etc. were addressed in the office hours and based on the result at the end of the office hours it seems like all is in order.

    Please let us know if we can be of any further assistance.

    Leave a comment:


  • nezzdog
    replied
    Well it looks like I have these fields still needing info...can you tell me where to find the RefID and Tracker?

    - <input type="hidden" name="RefID" id="RefID" value="Example-003" /> <input type="hidden" name="Tracker" id="Tracker" value="FaaS-Example-003" />

    Also I added a javascript to calculate ticket prices and wonder if that is why I get an error now instead of decline... UGH!
    Last edited by nezzdog; 07-17-2014, 01:49 PM.

    Leave a comment:


  • CnP.Support
    replied
    Good day!

    Please note that what you call Decline may not be right.

    Please post the URL that is being used on the page. The URL tells you everything you need to know.

    Do one transaction and post the URL to this page.

    Leave a comment:


  • nezzdog
    replied
    That is the url that is in the form (on line 268-270 of the source code). We have tried several credit cards on several machines and transactions are just being declined and pointed to the decline page.

    ?q=authorized
    ?q=declined
    ?q=error

    Leave a comment:


  • CnP.Support
    replied
    Great..

    So that is your page URL.

    Simply use https://jhalliance.org/?q=authorized for OnSuccessURL

    The OnSuccessURL is simply the URL to a page that our system can post back to when a transaction authorizes. The same goes for the decline & error.

    Let me know how that works.

    Leave a comment:


  • nezzdog
    replied
    Any page that is created becomes www.yourdomain.com/?=contact (for example) So just having an html or htm extension won't work...however I have a page for the authorized that works @ https://jhalliance.org/?q=authorized

    Leave a comment:


  • CnP.Support
    replied
    Good day!

    You don't need to do anything - just note that the page has to exist and that you should be able to get to it.

    Not knowing Drupal may I suggest that you create a page and simply write: "Hello World"

    Can you visit that page through any URL? What will the URL for that page be?

    Leave a comment:


  • nezzdog
    replied
    Our site is in the framework of Drupal so the authorized page is https://jhalliance.org/?q=authorized and I have that reflected in the form code. Do I need to create a simple authorize page outside of drupal that is authorized.html? Also I noticed in the source code on line 268-270 the color identifiers for code are weird for each line... red and blue but the code seems correct. Thanks also for the javascript advice...working on that now. Thanks!

    Leave a comment:


  • CnP.Support
    replied
    Good day.

    We just did a test transaction on that page and the following is the URL: The URL shows you everything so always double check the URL first before the page.

    HTML Code:
    https://jhalliance.org/authorized.html?on=1407170801397571111&vg=13192d7e-4399-4273-9c51-98d87f5e1692&au=bbb5
    As you see the test was forwarded to the authorized.html page and it was authorized. You are showing a 404 error since that page does not exist on your site.

    Your website does not have a page for: https://jhalliance.org/authorized.html (please go to this page & you will see that the page does not exist - your site returns a 404 error which simply means page not found)

    As for the total and sub-total - please note that you are using the API and the API has no control over your UI - the form is what you are building and as such we have no control. You need to write a Javascript to do the total for you since that is the interface and form.

    I hope the above helps you with the error.

    Please let us know if we can be of any further assistance.

    Leave a comment:


  • nezzdog
    replied
    SO I have all the information from Sales Force into the form and added the decline/ authorize / error pages but all cards are getting declined. Also is there a way for when someone wants 2 tickets or however many, it shows a subtotal before they hit purchase tickets? Thanks a ton!

    https://jhalliance.org/35thAnnivTicket_JHAlliance.htm

    Leave a comment:


  • CnP.Support
    replied
    Good day @nezzdog.

    Once you have made the updates please let us know so we can review your code.

    All you need to change is the account information per Account Info > Profile > API

    The tab in the portal has all the info you need.

    You may want to set up a checkout page and use it as a reference by using the WID of the page.

    We have daily office hours which you may join and we can answer any questions you may have.

    Leave a comment:

Working...
X