Coder Social home page Coder Social logo

html error response about frames-ios HOT 7 CLOSED

ViktorAmelin avatar ViktorAmelin commented on July 24, 2024
html error response

from frames-ios.

Comments (7)

nicolas-maalouf-cko avatar nicolas-maalouf-cko commented on July 24, 2024

Hi @ViktorAmelin

It seems you are mixing 2 endpoints here:

  1. https://sandbox.checkout.com/api2/v2/tokens which is the only URL that can be called directly from mobile SDKS with the API public key
  2. https://api.sandbox.checkout.com/payments which is to be used from a backend server with the API secret key along with the temporary card token obtained in 1)

Please make sure to never use any endpoints involving the secret key from a mobile app. This would be breaching PCI compliance

The flow with mobile SDKs should be as follows:

mobileFlow

from frames-ios.

ViktorAmelin avatar ViktorAmelin commented on July 24, 2024

Hello. I've talked with our backend developer, and he told that the chain above is correct and we don't mix endpoints.
This is what we are getting from you. Can you check what's going on there?

checkout.rtf.zip

from frames-ios.

nicolas-maalouf-cko avatar nicolas-maalouf-cko commented on July 24, 2024

Hi @ViktorAmelin
This would happen if you call https://sandbox.checkout.com/api2/v2/payments which is an invalid URL

https://sandbox.checkout.com/api2/v2/tokens is the URL that needs to be called from the app and
https://api.sandbox.checkout.com/payments the one from your backend server

from frames-ios.

ViktorAmelin avatar ViktorAmelin commented on July 24, 2024

@nicolas-maalouf-cko Hello. Are the links in your framework are correct:
var urlApi: String {
switch self {
case .live:
return "https://api2.checkout.com/v2/"
case .sandbox:
return "https://sandbox.checkout.com/api2/v2/"
}
}

var urlPaymentApi: String {
    switch self {
    case .live:
        return "https://api.checkout.com/"
    case .sandbox:
        return "https://sandbox.checkout.com/api2/"
    }
}

from frames-ios.

nicolas-maalouf-cko avatar nicolas-maalouf-cko commented on July 24, 2024

These work, but we are releasing an updated SDK soon with the latest URLs

from frames-ios.

nicolas-maalouf-cko avatar nicolas-maalouf-cko commented on July 24, 2024

Hi @ViktorAmelin 3.0.1 is now released

from frames-ios.

nunepradeepkumar avatar nunepradeepkumar commented on July 24, 2024

Hi ,
How to change the pay button position in default frame.

from frames-ios.

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.