Git Product home page Git Product logo

sslcommerz-java's Introduction

SSLCommerz - JAVA

  1. First create your Sanbox(Test Environment) store account from below url. After registration you will get two mail. One for Store_id and Store_password. Another one for Report panel access. https://developer.sslcommerz.com/registration/ Note: For live store id or account you have to communicate with us. Our mail address: [email protected]

  2. Then give the store_id and store_password in TransactionInitiator.java and TransactionResponseValidator.java page.

  3. To send a Payment request using this java code snippet, User need to construct a Map<String,String>, as shown in com.ssl.commerz.Utility.ParameterBuilder.constructRequestParameters method.

  4. After constructing this Java Map, com.ssl.commerz.SSLCommerz Class is instantiated with user store Id and password. Then com.ssl.commerz.SSLCommerz.initiateTransaction Method is called which will return a URL or JSON list depending on user choice of receiving Gateway list or not.

  5. User will hit that URL returned by previous com.ssl.commerz.SSLCommerz.initiateTransaction method call. That will prompt user to choose payment option and perform payment procedures. After completing payment, SSL Commerz page will redirect user to “success_url” defined by user during initial parameter Map construction in previous Call to com.ssl.commerz.SSLCommerz.initiateTransaction method.

  6. User should extract all query parameters returned in his Success Page and pass those query parameters as key value pair Map into this method: com.ssl.commerz.TransactionResponseValidator.receiveSuccessResponse This will validate those query parameters returned by payment success redirect, and return true if successful transaction and false otherwise.

In case of false, user should check status in that first returned response.

Note: In test environment or Sandbox, if you want to change the default store id and store password, you have to set the new store id and store password in page SSLCommerz.java file at Line number:66 also.

Help URL

  1. https://developer.sslcommerz.com/docs.html :URL to start integrate SSLCOMMERZ as a Developer
  2. https://developer.sslcommerz.com/registration/: URL to Create Account in Sandbox

Check List After Making the site Live or Connect with Live SSLCOMMERZ

Customer need to do a live transaction to check the full process. After the transaction below things need to ensure

  1. Transaction is showing successful in SSLCOMMERZ Panel (https://report.sslcommerz.com)
  2. Transaction details are same in SSLCOMMERZ Panel (https://report.sslcommerz.com) and Customer site admin Panel.
  3. Transaction amount is same in Issuer bank end.
  4. In Transaction Details API Validated by Merchant is YES.

Note: In the gateway you may not found Banks. After getting live store id, it takes 10 to 15 working days to enable these. You may follow up your KAM(Key Account Manager).

sslcommerz-java's People

Contributors

nayemsayed avatar prabalsslw avatar rkbi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.