Comments (21)
Pass source null and you will get URL of payment and open in web view.This will collect card detail
from gosellsdk-android.
Yes i solved this
from gosellsdk-android.
and use
GoSellAPI.getInstance(AUTH_TOKEN).createCharge(
new CreateChargeRequest ................................
from gosellsdk-android.
Let me know when you done
from gosellsdk-android.
Great @AliElDerawi glad to hear. I want to tell you that this is not trick I have contacted with TAP support team and they explain everything.
from gosellsdk-android.
I did not face issue you explained.
from gosellsdk-android.
Yah sure, there is success message in url, You need to get all parameter with return url and identify that success or failure
from gosellsdk-android.
hi @AliElDerawi ,About using webview, after a transaction has been completed, it will redirect to (return_url) page.did u solve this issue.iam unable catch the succcess to move back to the activity.
from gosellsdk-android.
Hi @RaziaSandhu ,
I have the same error,
did you find a way to fix it?
Regards,
Ali
from gosellsdk-android.
Hi @RaziaSandhu
Nice trick, thank you very much!
I got the URL of payment then I opened it, which directed me to card detail screen.
There's a second issue, I don't know if you had.
I used Secret API key available in the Testing section and the process of the transaction completed successfully, when trying to use my secret from goSell API Credentials (Sandbox or Production) it is always failed (using Test card or real card).
I think I should contact the support team.
from gosellsdk-android.
Thanks very much for the clarification @RaziaSandhu
Could I take a little more of your time?
About using webview, after a transaction has been completed, it will redirect to (return_url) page.
I wonder how you managed to know that the transaction process has completed successfully so you can exit and show specific activity in android.
Thank you.
from gosellsdk-android.
Hi @srikanthguttula ,
You could define a string variable in WebView activity that contains your return_url, then override onPageStarted from your WebViewClinet, and check if the url starts with your return_url, so you're now in return_url page.
Like this:
webView.setWebViewClient(new MyWebViewClient() {
@Override
public void onPageStarted(WebView view, String url, Bitmap favicon) {
super.onPageStarted(view, url, favicon);
findViewById(R.id.internet_progressBar).setVisibility(View.VISIBLE);
if (url.startsWith(returnUrl)) {
// your work here
}
If you would like to extract key-value from the return_url, then might take a look for this link is useful,
https://stackoverflow.com/questions/13592236/parse-a-uri-string-into-name-value-collection
Hope my answer was helpful.
Regards,
Ali.
from gosellsdk-android.
hi @AliElDerawi ,is any backend required to create returnurl (http://return.com/returnurl).what should i replace in this return and posturl, iam getting this error after payment successfull screen.
The webpage at http://return.com/returnurl?chargeid=ch_p1BT2018627Pl011794810&ref=3010172018064254583&result=SUCCESS&payid=TST_10263767220181017&crdtype=MASTERCARD&trackid=Trans%20ref&crd=0008&hash=4cfb9a23210cac4b5f0be8e8d3fdfcd3cb92e1c1a2fa1b2baad849612a314d29 could not be loaded because:
net::ERR_CLEARTEXT_NOT_PERMITTED
Email: [email protected]
from gosellsdk-android.
Pass source null and you will get URL of payment and open in web view.This will collect card detail
where to pass???
from gosellsdk-android.
Hi @srikanthguttula ,
I've just noticed that you've edited your question.
No, you don't have to create a backend for returnurl.
You should exchange it with your own website url, and any page will pass.
from gosellsdk-android.
Hi @om4rezz ,
Pass it here.
GoSellAPI.getInstance(AUTH_TOKEN).createCharge(
new CreateChargeRequest
....
....
.source(new CreateChargeRequest.Source(null))
You will get Url of payment in response > redirect.
from gosellsdk-android.
same issue here when using test key from my account:
{"status":"fail","type":"permission_denied","message":"It is likely that you need to grant has_pci_dss permission","error":null}
from gosellsdk-android.
I have the same problem now to the end point
https://api.tap.company/v2/tokens
here is the response:
{
"status": "fail",
"type": "permission_denied",
"message": "It is likely that you need to grant has_pci_dss permission"
}
and here is the request body:
{
"card": {
"number": 4012000033330026,
"exp_month": 5,
"exp_year": 21,
"cvc": 100,
"name": "Test lasd",
"address": {
"country": "Kuwait",
"line1": "Salmiya, 21",
"city": "Kuwait city",
"street": "Salim",
"avenue": "Gulf"
}
},
"client_ip": "192.168.1.20"
}
i'm testing the API using post man and it's not working
and i'm using my own secrete key
from gosellsdk-android.
from gosellsdk-android.
Pass source null and you will get URL of payment and open in web view.This will collect card detail
are you available? I am facing same issue. need help very urgently.
from gosellsdk-android.
I have the same problem now to the end point
https://api.tap.company/v2/tokens
here is the response:
{
"status": "fail",
"type": "permission_denied",
"message": "It is likely that you need to grant has_pci_dss permission"
}and here is the request body:
{
"card": {
"number": 4012000033330026,
"exp_month": 5,
"exp_year": 21,
"cvc": 100,
"name": "Test lasd",
"address": {
"country": "Kuwait",
"line1": "Salmiya, 21",
"city": "Kuwait city",
"street": "Salim",
"avenue": "Gulf"
}
},
"client_ip": "192.168.1.20"
}i'm testing the API using post man and it's not working
and i'm using my own secrete key
Same error any one here to support?
from gosellsdk-android.
Related Issues (20)
- java.lang.NullPointerException: Attempt to invoke virtual method 'void androidx.appcompat.widget.SearchView.setVisibility(int)' on a null object reference HOT 4
- OTP Page refreshed when came back from the SMS application HOT 3
- [2.4.6] The library doesn't compile HOT 13
- BENEFIT PAY HOT 1
- java.lang.ArrayIndexOutOfBoundsException: HOT 2
- Secret key not working its showing 401 invalid key error HOT 3
- Change the text color of the Cancel button HOT 2
- How to do Payment with already saved cards? in Android and iOS SDK. HOT 3
- Build failed HOT 1
- Card no saved once saved card switch is enable
- I have this error HOT 3
- 401 invalid api key HOT 3
- I have this issue please help
- in android 11 app is crashed HOT 5
- Payment view show automatic when page is load HOT 1
- Fatal Exception: java.lang.NullPointerException HOT 1
- NullPointerException inside CurrenciesActivity
- errorBody{"errors":[{"code":"2104","description":"Invalid API Key"}]} HOT 3
- App getting crash while proceed Payment HOT 1
- fatal: not a git repository (or any of the parent directories): .git
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gosellsdk-android.