How to Integrate Paymentech Payment Processing Solution on Your eCommerce Shop
- Sign up with paymentech. Get approval from them. Get an account with them
- Determine, how your software/application will verify with their API: Username/Password (preferred) or IP address
- Get the Username/Password for them for verification with their API. You will also be assigned a Merchant ID, a Terminal ID, a Gateway URL, a bin number
- Remember, I am talking about writing custom code to integrate. I am not talking about Hosted Solutions (Hosted: buyers are taken on paymentech web-site to pay)
- Before the production system (actual implementation and deployment), you have to go through a certification (test phase) process. You will be given sample credit card transactions to be executed from your application as tests. If everything seems alright, you can move to production
- So how to implement
- As usual, you will have a credit card information collection form; yes, the amount to be charged has to be calculated/determined
- You have to connect to Paymentech Gateway using their APIs such as XML API and SOAP API
- I am talking about ecommerce transactions/online payments
- Yes, other than providing the APIs, paymentech also provides SDKs. Third party companies also have modules for the purpose. These modules can be handy, else you have to implement many functionality from ground up
- So, you connect to the Gateway (through a Gateway URL), send the credit card information and the amount. To send the request, you will usually create a NewOrderRequestElement and pass it to the gateway
- Remember, I am talking about using SOAP for the purpose
- In SOAP, before being able to connect and send requests to their Gateway, you will need a reference to their web-services (to the wsdl file/service)
- Now, foreach type of transaction, you have to send a separate type of request. The gateway will give you back some response using some codes (key value pairs). The codes will provide information such as: if the transaction went through, was there any error, if the security code matched or not, the transaction reference number and similar
- Transaction Request Types: New Order, Reversal, Capture, Inquiry
- To send a order/purchase request, you have to create and send NewOrderRequestElement (as defined in the SOAP API), the server will get back to you with NewOrderResponseElement object
- How do you know about the objects, what to send and what you will receive in return? when to send what type of request? what are the fields for each request and response?
- To know, download and read SOAP API documentation from http://download.chasepaymentech.com/ more specifically from http://download.chasepaymentech.com/docs/orbital/orbital_gateway_web_service_specification.pdf
- Know about the objects such as NewOrderRequestElement, NewOrderResponseElement, ReversalElement (to request a refund), ReversalResponseElement, EndOfDayElement (request to clear all transactions), EndofDayResponseElement
- A list of the Objects Available. You will need to know when to send these types of requests and what the fields inside the object indicate NewOrderRequestElement, NewOrderResponseElements, MarkforCaptureRequestElements, MarkforCaptureResponseElements, ReversalRequestElements, ReversalResponseElements EndofDayRequestElements, EndofDayResponseElements, ProfileAddRequestElements, ProfileUpdateRequestElements, ProfileDeleteRequestElements ProfileRetrievalRequestElements, ProfileResponseElements, GiftCardRequestElements, GiftCardResponseElements, InquiryRequestElements InquiryResponseElements, AccountUpdaterRequestElements, AccountUpdaterResponseElements, FraudAnalysisRequestElements, FraudAnalysisResponseElements
- Steps in your code for a Purchase Request
- Get a reference to the wsdl (https://wsvar.paymentech.net/PaymentechGateway/wsdl/PaymentechGateway.wsdl). in Visual studio use Add Web Reference
- Add the library in your code (in c#, using ….)
- Create a PaymentGateway object. Specify the gateway URL to the PaymentechGateway object obj.url = “https://wsvar.paymentech.net/PaymentechGateway”;
- Create a NewOrderRequestElement. Provide information such as orbitalConnectionUserName, orbitalConnectionPassword, orderID, transType, bin, merchantID, terminalID, amount, industryType, ccAccountNum, expiryDate with the object
- call the NewOrder method of a NewOrderResponseElement. Grab the response from the gateway and process the responses
- A sample c# code for a order/purchase request is given below
- get a web reference to https://wsvar.paymentech.net/PaymentechGateway/wsdl/PaymentechGateway.wsdl
protected void btnSubmitOrder_click(object sender, EventArgs e){ PaymentechGateway gatewayObj = new PaymentechGateway(); gatewayObj.Url = "https://wsvar.paymentech.net/PaymentechGateway"; //Create a request Object NewOrderRequestElement orderRequest = new NewOrderRequestElement(); //must supply if you use username/password combination to authenticate against API orderRequest.orbitalConnectionUsername = ""; orderRequest.orbitalConnectionPassword = ""; //in real life, you will grab these values from a web form and assign to the orderRequest object orderRequest.orderID = "500"; orderRequest.transType = "A"; //auth only orderRequest.bin = "000001"; //you will be assigned a bin orderRequest.merchantID = "3452"; //you will be assigned a merchant id orderRequest.terminalID = "001"; //you will be given a termina ID orderRequest.amount = "100"; //amount to be charged orderRequest.industryType = "EC"; //ecommerce orderRequest.ccAccountNum = "2727272727272727"; //credit card number orderRequest.ccExp = "201509"; //credit card expiry date try { NewOrderResponseElement responseElement = gatewayObj.NewOrder(orderRequest); txtResponse.Text = "Response Status" + ":" +responseElement.approvalStatus +":"+responseElement.txRefNum; } catch (System.Web.Services.Protocols.SoapException ex) { txtResponse.Text = "Error Occured:"+ex.Message; } }
From: http://sitestree.com/?p=5301
Categories:17
Tags:
Post Data:2010-11-21 14:11:58
Shop Online: <a href='https://www.ShopForSoul.com/' target='new' rel="noopener">https://www.ShopForSoul.com/</a>
(Big Data, Cloud, Security, Machine Learning): Courses: <a href='http://Training.SitesTree.com' target='new' rel="noopener"> http://Training.SitesTree.com</a>
In Bengali: <a href='http://Bangla.SaLearningSchool.com' target='new' rel="noopener">http://Bangla.SaLearningSchool.com</a>
<a href='http://SitesTree.com' target='new' rel="noopener">http://SitesTree.com</a>
8112223 Canada Inc./JustEtc: <a href='http://JustEtc.net' target='new' rel="noopener">http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning) </a>
Shop Online: <a href='https://www.ShopForSoul.com'> https://www.ShopForSoul.com/</a>
Medium: <a href='https://medium.com/@SayedAhmedCanada' target='new' rel="noopener"> https://medium.com/@SayedAhmedCanada </a>