Paypal
This operation helps the merchant to redirect user to the Paypal, complete payment and link the wallet for repeat payments.
PayPal does not require a separate process for wallet creation and linking. The wallet setup is integrated with the transaction process.
During the transaction call to the SDK, the parameters shouldLink should be set to true, and sdkPresent should be set to ANDROID_PAYPAL. Upon successful completion of the transaction, a wallet will be automatically created on our end.
For subsequent transactions, when users return, merchants can call Refresh Wallet API to retrieve the wallet token, which can then be used to complete the transaction.
Unique uuid-v4 string
Example: abcd-12345-abcd-12345
Value: in.juspay.hyperapi
Parameters required to call Hyper SDK API
Must be walletTxn for Wallet Process calls.
order id pertaining to the order for which the payment is started.
Required for client side authentication
Must be PAYPAL
To show a loader for the processing state.
sdkPresent is Required only if the PayPal’s SDK is being used and value must be IOS_PAYPAL
shouldLink should be set to true if you want to save/link the the customers wallet so that next time payments can be deducted without any extra step or redirection.
preAuthEnabled should be set to true when you want to do Auth and Capture payments separately.
If this flag is true, the payment will only be Authorized , and a separate /capture call will be required to move it to Charged state

