Comments (7)
It seems you are mixing 2 endpoints here:
- 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
- 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:
from frames-ios.
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?
from frames-ios.
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.
@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.
These work, but we are releasing an updated SDK soon with the latest URLs
from frames-ios.
Hi @ViktorAmelin 3.0.1 is now released
from frames-ios.
Hi ,
How to change the pay button position in default frame.
from frames-ios.
Related Issues (20)
- Back Button and Accepted Cards not showing on TestFlight Build HOT 5
- Does headless mode have been removed in 4.0 ? HOT 4
- Support of alternative payment methods HOT 1
- Text color in Text fields isn't updated after changing Light/Dark mode HOT 4
- 3ds redirection not working HOT 2
- Remove Billing Info (name , address etc) from form.
- PhoneNumberKit dependency update HOT 5
- Expiry date textfield doesn't append '/' which lead to invalid date format error - Frames 4.0.4, Xcode 14.3 HOT 2
- Expiry date textfield doesn't append '/' which lead to invalid date format error - Frames 4.0.4, Xcode 14.3 HOT 1
- Users can submit the Pay button twice before 3DS view pops up HOT 4
- Support for app extension HOT 7
- Crash when use payment view HOT 15
- Problem with customisation. HOT 18
- Payment page alignment or text based on language switching is not updating HOT 6
- apple pay token got card_expired error HOT 1
- Crash with Apple Pay and version 4.3.3 of Frames and 2.0.3 of Risk SDKs HOT 19
- Issue with Cardholder Name validation
- Form scrolling to the top and navigation bar not hiding HOT 8
- RTL is updating for Arabic language but string are not translated. HOT 2
- CheckoutAPIService.createToken result block never called HOT 12
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 frames-ios.