SDKLess PG UPI Intent request feature for iOS.
## Steps to Integrate SDKLess Solution
To support SDKLess integration, **deviceContext** has to be added to the request body of the pg/v1/pay API call.
## Sample Request for PG UPI Open Intent
Redirection after Payment Completion (For PhonePe App )
The **merchantCallBackScheme** can be passed only for the PhonePe App ("openIntentWithApp": "PHONEPE") that helps to open the merchant app after the completion of the Payment.
Redirection after Payment Completion (Other UPI Apps)
For GPay and Paytm, the redirection will be manual after the completion of the payment.
## Sample Response for PG UPI Open Intent
Handling UPI Apps on the Checkout Page
Merchants should display only the list of the UPI Apps installed on the user's device.
## Integration Steps
### iOS PG SDKLess App Side Implementation
##### Step 1. In your Info.plist, create or append a new Array type node **LSApplicationQueriesSchemes** to append the following values:
##### Step 2. Create DeepLink Schema
Create a URLType for your app (Deeplink), if not already present. For example, we have used: **iOSIntentIntegration**. (You can create your own identifier for your app)
URLScheme should match the below conditions
Only Alphabets (lower and upper case) and numbers are allowed.
We can allow special characters only like dot and Hyphen
The name should always start with alphabets.
The schema should be correct to redirect the app otherwise it will not redirect back to the merchant app.
## Code Snippet to Generate "deviceContext"
To find **appSupportedSchema + isPPAppPresent** value, the below code snippet has to be used to check it or to generate **deviceContext**. **Usage:** PhonePeContextGenerator(callbackSchema: "demoAppSchema").getDeviceContext()