If you require to initialise the SDK yourself then follow the steps below
- Add the following to your values.xml file.
- Initialize the SDK yourself before attempting payment.
CFPaymentGatewayService.initialize(getContext()); // Application Context. AnalyticsUtil.sendPaymentEventsToBackend(); // required for error reporting.
Make sure to initialise the SDK in Application class or Activity or Fragment creation to avoid any Runtime issues.
If you are facing trouble while making a payment, you can take a look at the SDK debug logs to try and identify the issue.
To enable SDK logging add the following to your values.xml file.
Following are the Logging levels.
- VERBOSE = 2
- DEBUG = 3
- INFO = 4
- WARN = 5
- ERROR = 6
- ASSERT = 7
Make sure to set the logging level back to value '4' before going live.
If you want to disable quick checkout flow in Drop Payment flow you can add the following to your values.xml file.
Updated about 1 year ago