- REST APIs
- Welcome
- Cards
- 3D Secure 2
- Vault
- Getting Started
- Using the API
- Typical API Calls
- Verify That the Service Is Accessible
- Create a Profile for a Customer
- Add an Address to a Profile
- Add a Card to a Profile
- Add a Bank Account to a Profile
- Create an Apple Pay Single-Use Token
- Create a Google Pay Single-Use Token
- Create a Mobile Single-Use Token
- Create a Direct Debit Single-Use Token
- Process a Transaction Using a Payment Token
- API Reference
- Test and Go Live
- Direct Debit
- Alternate Payments
- Platforms
- Overview
- Account Management
- Getting Started
- Using the API
- Typical API Calls
- Verify That the Service Is Accessible
- Create a New Merchant
- Create a New Merchant Account
- Create a New User
- Add an Address
- Create a Business Owner
- Add a Business Owner Address
- Add a Business Owner Identity Document
- Add a Merchant Bank Account
- Accept Our Terms and Conditions
- Activate the New Merchant Account
- Validate the Bank Account
- Enable Webhooks to Receive Application Statuses
- Test and Go Live
- Subaccounts
- Split Payouts
- Balance Transfers
- Reference Information
- SDKs
- Server Side
- Paysafe.js
- Paysafe Checkout
- Paysafe Request
- Mobile
- Mobile SDKs
- iOS
- Android
- Additional Documentation
- Resources and Support
- Shopping Carts
- Classic APIs
- Glossary
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.