locked
C# Based Payment Gateways API RRS feed

  • Question

  • User1231829591 posted

    I have developed a shopping cart using C# and it works as I had planned i.e., a shopper can add items to the shopping cart by selecting the items of his choice and he can then click checkout.

    I now need to interface with a payment gateway that accepts as inputs the shopping cart items and their prices, sales tax, shipping fee, and the shopper's credit card info.

    You might be thinking, why not use Paypal and the answer to that question is it is not very convenient to use Paypal. Most users do not know how to setup Paypal and even if they do it is very tedious. I would like to know if there is any processor company that offers a payment gateway in the form of a web API which takes the list of things that I had mentioned above as inputs. It would be great if I can call such a web API from within my code.

    Sunday, March 11, 2018 6:03 AM

All replies

  • User475983607 posted

    API frameworks like PayPal provide many services including a payment gateway. 

    I would like to know if there is any processor company that offers a payment gateway in the form of a web API which takes the list of things that I had mentioned above as inputs.

    Payment gateways process total payments similar to making a purchase at a brick and mortar shop. You don't pay for each item separately you pay the total owed.   It is up to the register system to tally the total and whatever other administrative feature like decreasing stock etc.  What you are describing above is your shopping cart's responsibility not a payment gateway.  Shopping carts manage shipping options, addresses, user accounts, products, inventory, etc.  PayPal offers these features built-in and secured and takes away your responsibility for managing security which is a not a trivial task. 

    Sunday, March 11, 2018 3:57 PM
  • User379720387 posted

    I simulate a button press "BUY NOW" into a link, when the user clicks on the link it takes them to the paypal site where they can pay with a credit card, without actually having a PayPal account.

    You can have multiple items in this link, currency, shipping, taxes, anything.

    link = String.Format("https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business={0}&lc=US&item_name={1}&item_number={2}&amount={3}&currency_code=USD&button_subtype=services&no_note=0&cn=Add%20special%20instructions%20to%20the%20seller%3a&no_shipping=2&tax_rate=0%2e000&shipping=0%2e00&bn=PP%2dBuyNowBF%3abtn_buynowCC_LG%2egif%3aNonHosted", business, itemname, billno, amount);

    The 'business' variable holds the email address of the paypal account.

    Monday, March 12, 2018 2:54 PM