Coder Social home page Coder Social logo

SSL Error about paystack-android HOT 4 CLOSED

paystackhq avatar paystackhq commented on June 29, 2024
SSL Error

from paystack-android.

Comments (4)

deLTreeTech avatar deLTreeTech commented on June 29, 2024 1

Thanks I will see to that.

from paystack-android.

ibrahimlawal avatar ibrahimlawal commented on June 29, 2024

from paystack-android.

deLTreeTech avatar deLTreeTech commented on June 29, 2024

I have discovered that the problem came from payment verification. Below is my volley request code. Can you tell me what I'm doing wrong. Thanks

private void verifyPayment(final String paymentRef) {
// Tag used to cancel the request
String tag_string_req = "verifyPayStack";
StringRequest strReq = new StringRequest(Request.Method.GET,
"https://api.paystack.co/transaction/verify/" + paymentRef, jsonListener, errorListener) {
@OverRide
public Map<String, String> getHeaders() {
// Posting params to register url
Map<String, String> params = new HashMap<>();
params.put("Authorization", "Bearer sk_test_myskkey");
return params;
}
};

    // Adding request to request queue
    AppController.getInstance().addToRequestQueue(strReq, tag_string_req);
}

from paystack-android.

ibrahimlawal avatar ibrahimlawal commented on June 29, 2024

Hello @deLTreeTech this would mean that you are adding your secret key to your app. Please don't do that. Rather do the verification on your app server so your app communicates with your server and your server verifies from our server.

from paystack-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.