Need help connecting to Paradata Inc's Hostpay gateway

Get help with nopcart's interaction with payment provider gateways like Authorize.net, Worldpay, etc.

Moderators: Koibito, Stefko, Randy

Need help connecting to Paradata Inc's Hostpay gateway

Postby Will » Fri Aug 13, 2004 10:31 pm

I am trying to get NOPCART hooked up with Paradata Inc's Hostpay system. It it pretty much like alot of other payment gateways (and I have added to the NOPCART javascript to get the charge_total to pass correctly) and I think I have a handle on it mostly...but for one thing.

I can not get the other parameters to pass, such as product id, product description etc.

Paradata require the passing of ALL optional parameters to get any of them to work. One of their parameters is a "subtotal" for each product, which means that I have to calculate the "subtotal" for each product...ie the quantity of the product x product price.

please see excerpt below or at (http://www.paradata.com/tech/html_doc/h ... lhost.html):

---------------------------------------

Optional Parameter - Product Information
"N" --- represents the item number (must begin at "0")

Note: In order to have product details appear on your confirmation page/email you must pass all 5 parameters.

Parameter Name-Type- Description
idN - hidden - Your internal Id for item n.
descriptionN - hidden - A description of item n.
quantityN - hidden - The quantity of item n being purchased.
priceN - hidden - The unit price of item n.
subtotalN - hidden - The subtotal for item n (quantityn x pricen).[/code]

---------------------------------------

Now, I think I know how to pass everything else, it is just a matter of doing this and the end of the script:

Code: Select all
//begin Modification****************************************************************************************************************
document.forms[0].charge_total.value = moneyFormat((fTotal + fShipping + fTax));
document.forms[0].description.value = OutputItemName;
document.forms[0].id.value = OutputItemId;
document.forms[0].quantity.value = OutputItemQuantity;
document.forms[0].price.value = OutputItemPrice;
document.forms[0].subtotal.value = PROBLEM;


      //End Modification*******************************************************************************************************************






   document.write(strOutput);
   document.close();
}

//=====================================================================||
//               END NOP Design SmartPost Shopping Cart                ||
//=====================================================================||



Now, I know the the first line works by itself (when I comment out everything else), because with that alone I can pass the amount to be charged. Paradata calls that "charge_total". I don't know if the rest will work.

The problem line is the last, that has the parameter "PROBLEM". Basically I think I need to replace that with a calculation of the product quantity x the product price. Here is the rub - I don't how to do that, or even if this is something I can do here.

I have seen the solutions such as are built into the version 4.4.0 that work for Linkpoint, AuthorizeNet and others...and seen the job that Webster did for ITransact and I think I could do this if it were not for the annoying "subtotal" for each product that Paradata asks for.

I would switch over to Linkpoint but my company has already signed up for Paradata.

Any help would be appreciated. Basically I need help figuring out if I can do the calculation at the bottom of the script at the kind of place Marbil adds code at http://www.marlbil.com/nopcart.js or if I need to do what Webster does at http://www.recouleur.com/store/nopcart.js where he basically replaces the presets for World pay etc with a newly written preset for ITransact.

Will
Will
 
Posts: 2
Joined: Thu Jul 08, 2004 8:40 pm

Return to Help: Payment Gateways

Who is online

Users browsing this forum: No registered users and 1 guest

cron