How do I get my Nopcart linked to 2checkout.

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

Moderators: Koibito, Stefko, Randy

How do I get my Nopcart linked to 2checkout.

Postby dutchie2 » Wed Mar 10, 2004 12:31 pm

Hi all,

I’m busy to get my nopcart working with 2checkout, but before I come up with ‘of how I think to do it, it’s maybe better to come forward with their specifications and inns/outs to this forum and place some questions first.

First ‘and if I understand it well, there are two options I can chose from.
And this are them (what are a copies of 2checkout),
Option1
Shopping Cart Payment Routine Specifications
This page covers the specifications for the cart payment routine on the 2Checkout.com system. It is provided for clients that want to use their own shopping cart or other specialized program and have sufficient knowledge to code the procedures. If you have the 2Checkout.com free shopping cart you do not need to concern yourself with this specification, it is handled automatically.

Payment Routine: https://www.2checkout.com/cgi-bin/sbuye ... urchase.2c

The following parameters must be passed from your shopping cart or other program to cartpurchase.2c.

Note: This routine also accept in authorize.net parameters ( see below ), and linkpt parameters.

sid - your 2Checkout.com account number
total - total amount to be billed (in decimal form with no dollar sign)
cart_order_id - unique order id from your cart or other program (where do I find that?)

Example:
https://www.2checkout.com/cgi-bin/sbuye ... id=1234567

The following parameters can be passed in and will be passed back to your routine. Optionally a confirmation email with your order number and ours will be sent to you and the buyer when the credit card transaction is approved.

order_number - 2Checkout.com order number
card_holder_name - Card holders name
street_address - Card holders address
city- Card holders address
state - Card holders address
zip - Card holders address
country - Card holders address
email - Card holders email
phone- Card holders phone number
cart_order_id - Your order number passed back
cart_id - Your order number passed back (same as cart_order_id)
credit_card_processed - "Y" if successful
total - Total billed to credit card after handling charges if any
ship_name - Shipping Info
ship_street_address - Shipping Info
ship_city - Shipping Info
ship_state - Shipping Info
ship_zip - Shipping Info
ship_country - Shipping Info
Make sure and set up your Cart/Program Details in our database.
If you wish to take down a separate shipping and billing address you must indicate it here Shipping Details.
You should send your customer a sales confirmation email containing the details of what was ordered. The confirmation email should contain the follow text:

Option2
Shopping Cart Payment Routine Specifications (Authorize.net)
In addition the above routine, the following routine will ALSO accept in Authorize.net parameters.
https://www.2checkout.com/cgi-bin/Abuyers/purchase.2c

In most cases just find in the shopping cart ( maybe in a code file ) the authorize.net payment url
https://secure.authorize.net/gateway/transact.dll

and change it to
https://www.2checkout.com/cgi-bin/Abuyers/purchase.2c

Then just set everything else up as if you had an authorize.net account.
The parameters that should be passed into the ./Abuyers/purchase.2c routine are as follows:

x_login - 2Checkout.com Seller id
x_amount - Amount to bill.
x_invoice_num - Order number from your system

The payment routine will ask for the following buyers information if you do not send it in

x_First_Name
x_Last_Name
x_Phone
x_Email
x_Address
x_City
x_State
x_Zip
x_Country
x_Exp_Date
x_Card_Num - You must have an SSL server to send the credit card # in. If you do not, a warning will be printed letting the buyer know that their credit card number was transmitted over an insecure channel.

Other Optional Parameters Accepted:

x_Ship_To_First_Name
x_Ship_To_Last_Name
x_Ship_To_Address
x_Ship_To_City
x_Ship_To_State
x_Ship_To_Zip
x_Ship_To_Country

You can set up this payment routine to do an HTML post back to your shopping cart after the payment by setting the return here - Cart/Program Details.

Note: Any parameters sent into the routine will be passed back to your routine after the sale is complete.


Then this is about inns/outs. and that’s going about the product details. And this is of what they say about it
(also copied from their site)

Question:
Why are we not getting the product details that the customer ordered on your email confirmation or in the order details?

Answer:
When using a 3rd Party Shopping cart or the Perl cart (cartpurchase or abuyers routines), you are actually only sending in to our service the Sales information and the dollar amount. The cart is responsible for handling the details of the sale. Most carts would be setup so that after the sale was completed on our end, the buyer gets sent back to a specific page of the cart to complete the order. Please check with the cart maker for details.

Then my questions
1. Where do I find ‘cart_order_id’ ?
2. About sending back to complete the order, is that possible with the nopcart?
3. Then they give an example for passing a routine to them, Example:https://www.2checkout.com/cgi-bin/sbuyers/cartpurchase.2c?sid=124&total=23.00&cart_order_id=1234567
Is it maybe better to put that in the nopcart.js, anyhow I’ve made some editions for that in the nopcart already. And this is originally the ‘authorize.net’ option

if ( PaymentProcessor == '2c') {
//Process this for 2checkout
strOutput += "<input type=hidden name=\"x_Version\" value=\"3.0\">";
strOutput += "<input type=hidden name=\"x_Show_Form\" value=\"PAYMENT_FORM\">";
strOutput += "<input type=hidden name=\"x_sid\" value=\"123456\">" //--for sure this is not my real 'sid' number!--||
strOutput += "<input type=hidden name=\"x_Description\" value=\""+ strPP + "\">";
strOutput += "<input type=hidden name=\"x_cart_order_id\" value=\"\">" //--and I have left ‘value’ open because Idon’t know--||
strOutput += "<input type=hidden name=\"x_amount\" value=\""+ moneyFormat((fTotal + fShipping + fTax)) + "\">";

So what I’ve added is ‘x_sid’ and ‘x_card_order_id’
Is that a good step?
Where I’ve also tought on, is to put those values straight in the ‘checkout’ page?

Ok, awaiting for any help advice,
Greetings,
Dutchie2
dutchie2
 
Posts: 16
Joined: Mon Nov 03, 2003 11:30 am
Location: Thailand

I just found some more info and it might be useful?

Postby dutchie2 » Thu Mar 11, 2004 10:43 am

Hi all,

I just found some other information ‘it was stowen on a complete differend place!.
What differs, is that in this description, there is a field for product information?

(product_description - Merchant Product Description for Item Purchased)

Now I’m completely lost, I really don’t know of in how/what direction to go.
Anyhow this is a complete copy of it.

This page covers the specifications for the database payment routine on the 2Checkout.com system. It is provided for clients that want to use their own specialized program and have sufficient knowledge to code the procedures.

Payment Routines:

https://www.2checkout.com/cgi-bin/sbuyers/purchase.2c (Example)
https://www.2checkout.com/cgi-bin/ccbuyers/purchase.2c (Example)

The following parameters must be passed from your routine to purchase.2c.

sid - your 2Checkout.com account number

product_id - Product ID of the product/service from the 2Checkout system to be billed. If sending a second product/service to be billed product_id1, third product_id2, etc..

quantity - Quantity of the product/service from the 2Checkout system to be billed. If sending a second product/service to be billed quantity1, third quantity2, etc..

Optional Parameters

merchant_order_id - order id from your system that you would like recorded and passed back.
demo - set to Y for testing or set the purchase button/link routine to demo mode here.
DO NOT PASS DEMO IN OR LEAVE IT BLANK FOR LIVE PROCESSING.

Example of total string:
https://www.2checkout.com/cgi-bin/ccbuy ... st1&demo=Y

Hint: You can build the above string in a routine if you wanted and then use the following directive (written in perl) to pass control to 2Checkout for payment.

print "Location: https://www.2checkout.com/cgi-bin/ccbuy ... e.2c....... ";

The following parameters will be passed back to your routine. Optionally a confirmation email with your merchant order number and ours will be sent to you and the buyer when the credit card transaction is approved.

order_number - 2Checkout.com order number
card_holder_name - Card holders name
street_address - Card holders address
city- Card holders address
state - Card holders address
zip - Card holders address
country - Card holders address
email - Card holders email
phone- Card holders phone number
merchant_order_id - Your order number passed back
credit_card_processed - "Y" or "K" : "Y" if successful, "K" indicates a check, which will take 2-3 days to verify
total - Total billed to credit card.
ship_name - Shipping Info
ship_street_address - Shipping Info
ship_city - Shipping Info
ship_state - Shipping Info
ship_zip - Shipping Info
ship_country - Shipping Info
product_id - 2Checkout Product ID for Item Purchased
quantity - Quantity Product Purchase
merchant_product_id - Merchant Product ID for Item Purchased
product_description - Merchant Product Description for Item Purchased

If two or more times are purchased the fields product_id, quantity, merchant_product_id, product_description will be followed by a number 1 for second item 2 for third ....

i.e. product_id1,quantity1,merchant_product_id1,product_description1 for purchase item 2.

This time, really in need for help!

Awaiting,
Dutchie2
dutchie2
 
Posts: 16
Joined: Mon Nov 03, 2003 11:30 am
Location: Thailand


Return to Help: Payment Gateways

Who is online

Users browsing this forum: No registered users and 0 guests

cron