plugin development guideline is not properly followed
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/
need more info with code reference
- 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./
- Example and Plugin code directory should be different
- All naming convention should be followed according to documentation
- Request payload should be smaller, please checkout other examples
- getToken, makePayment, verifyPayment functions should be publicly available