Open softwaredev927 opened 3 days ago
I've made app with react native. This is my link code:
const paymenturl = "vivapayclient://pay/v1" + "?appId=com.viapp" + "&action=sale" + "&clientTransactionId="+uuidv4() + "&amount="+Number(amount) * 100 + "&tipAmount=0" + "&show_receipt=true" + "&show_transaction_result=true" + "&ISV_amount="+Number(amount) * 0.35 + "&ISV_clientId=" + "&ISV_clientSecret=" + "&ISV_sourceCode=" + "&ISV_currencyCode=978" + "&callback=mycallbackscheme://result" console.log(`Payment URL ${paymenturl}`) Linking.canOpenURL(paymenturl) .then((supported) => { if (!supported) { console.log('Cannot open URL: ' + paymenturl); } else { console.log(`Success`) return Linking.openURL(paymenturl); } }) .catch((err) => console.error('An error occurred', err)); }
And then this is my AndroidManifest file.
<activity android:name="com.viapp.URLResponseActivity" android:label="Payment Result"> <intent-filter> <action android:name="android.intent.action.VIEW" /> <action android:name="com.viapp.URLResponseActivity"/> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> <data android:scheme="vivapayclient" android:host="pay"/> <data android:scheme="mycallbackscheme" android:host="result"/> </intent-filter> </activity>
But not working. How can I solve this? This code worked well before, but it's not working.
I've made app with react native. This is my link code:
And then this is my AndroidManifest file.
But not working. How can I solve this? This code worked well before, but it's not working.