Debugging

To enable logs in the SDK, you need modify the following SDK files:

  • Simulator – modify PaysafeMockApplePayDef.m in the integrated Paysafe code to enable or disable logs.
  • Device – modify PaysafeApplePayDef.m in the integrated Paysafe code to enable or disable logs.

In these files, you need to make the following modifications (in bold):

#define LOG_ON 1 // to enable logs in the SDK

#define LOG_OFF 2 // to disable logs in the SDK

#define IS_LOG_ENABLE LOG_ON //passing value to enable or disable logs in the SDK

Logs will show only response headers, and not full error text.

Did you find this page useful?