I am trying to integrate Easypaisa payment into my app. I have a merchant account.
here is my code
const requestBody = 'storeId=xxxx&amount=xx&postBackURL=xxx&orderRefNum=xx';
const requestHeader = {
'Accept': 'application/json',
'Content-Type': 'application/x-www-form-urlencoded',
};
Here is react-native-webview
<WebView
source={{
uri: 'https://easypay.easypaisa.com.pk/easypay/Index.jsf',
headers: requestHeader,
body: requestBody,
method: 'POST',
}}
/>
here is an error that I'm facing
I have tried many solutions that didn't get any success and didn't find any solution or proper documentation related to Easypaisa.
