sp-plugin-flutter icon indicating copy to clipboard operation
sp-plugin-flutter copied to clipboard

plugin development guideline is not properly followed

Open filelucker opened this issue 3 years ago • 2 comments

According to guideline initializeShurjopay(environment: "sandbox") should not meaningful and there should be valid url not "sandbox". Also the naming convention. e.g. #merchant username and password SP_USER = "" SP_PASS = ""

#shurjoPay API's base path for sandbox SHURJOPAY_API = https://sandbox.shurjopayment.com/api/

filelucker avatar Jan 22 '23 08:01 filelucker

need more info with code reference

imtiaz-rahi avatar Mar 02 '23 10:03 imtiaz-rahi

  1. You configured the environment this way, According to our documentation its wrong approach

initializeShurjopay(environment: "live");

ShurjopayConfigs shurjopayConfigs = ShurjopayConfigs( prefix: "sp", userName: "demo", password: "demowb4&n$6un28$", clientIP: "127.0.0.1", );

proper way will be like this and should be configure from single file or class SP_USER, /** Merchant username provided by shurjopay./ SP_PASS, /** Merchant password provided by shurjopay./ SHURJOPAY_API, /** ShurjoPay base URL for performing a payment cycle./ SP_CALLBACK; /** Callback URL to perform with shurjopay transaction id./

  1. Example and Plugin code directory should be different
  2. All naming convention should be followed according to documentation
  3. Request payload should be smaller, please checkout other examples
  4. getToken, makePayment, verifyPayment functions should be publicly available

filelucker avatar Mar 02 '23 11:03 filelucker