Coder Social home page Coder Social logo

Comments (21)

RaziaSandhu avatar RaziaSandhu commented on July 4, 2024 4

Pass source null and you will get URL of payment and open in web view.This will collect card detail

from gosellsdk-android.

RaziaSandhu avatar RaziaSandhu commented on July 4, 2024 1

Yes i solved this

from gosellsdk-android.

RaziaSandhu avatar RaziaSandhu commented on July 4, 2024 1

and use
GoSellAPI.getInstance(AUTH_TOKEN).createCharge(
new CreateChargeRequest ................................

from gosellsdk-android.

RaziaSandhu avatar RaziaSandhu commented on July 4, 2024 1

Let me know when you done

from gosellsdk-android.

RaziaSandhu avatar RaziaSandhu commented on July 4, 2024 1

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.

RaziaSandhu avatar RaziaSandhu commented on July 4, 2024 1

I did not face issue you explained.

from gosellsdk-android.

RaziaSandhu avatar RaziaSandhu commented on July 4, 2024 1

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.

srikanthguttula avatar srikanthguttula commented on July 4, 2024 1

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.

AliElDerawi avatar AliElDerawi commented on July 4, 2024

Hi @RaziaSandhu ,

I have the same error,
did you find a way to fix it?

Regards,
Ali

from gosellsdk-android.

AliElDerawi avatar AliElDerawi commented on July 4, 2024

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.

AliElDerawi avatar AliElDerawi commented on July 4, 2024

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.

AliElDerawi avatar AliElDerawi commented on July 4, 2024

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.

srikanthguttula avatar srikanthguttula commented on July 4, 2024

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.

om4rezz avatar om4rezz commented on July 4, 2024

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.

AliElDerawi avatar AliElDerawi commented on July 4, 2024

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.

AliElDerawi avatar AliElDerawi commented on July 4, 2024

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.

00AhmedMokhtar00 avatar 00AhmedMokhtar00 commented on July 4, 2024

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.

muhammadessam avatar muhammadessam commented on July 4, 2024

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.

HaithamSheshtawy avatar HaithamSheshtawy commented on July 4, 2024

from gosellsdk-android.

USAMA-R-Y avatar USAMA-R-Y commented on July 4, 2024

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.

zain148 avatar zain148 commented on July 4, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.