Closed keepsecretly closed 1 week ago
The API request should be sent to the https://api.omise.co
Ref: https://docs.opn.ooo/duitnow-obw#creating-a-source
The API request to https://vault.omise.co on SDK version 5.0.0 (and the latest version 5.2.0)
https://github.com/omise/omise-ios/blob/v5.0.0/OmiseSDK/Sources/OmiseAPI/OmiseAPI.swift
https://github.com/omise/omise-ios/blob/v4.27.1/OmiseSDK/Configuration.swift
duitnow_obw
let jsonString = "{\"amount\":\(amount),\"currency\":\"\(currencyCode)\",\"platform_type\":\"IOS\",\"bank\":\"\(bankCode)\",\"type\":\"duitnow_obw\"}" let payload: CreateSourcePayload? = parse(jsonString: jsonString) guard let payload else { // return error } client.createSource(payload: payload) { result in switch result { case .failure(let error): // return error case .success(let token): // return success } }
omise-source-request-4.27.1.txt omise-source-request-5.2.0.txt
No response
XCode version 15.2 Omise-iOS version 5.2.0 (SwiftPM) iOS version 17.6.1
@keepsecretly Thanks for reaching out. We will look into this and let you know about our findings.
The bank transaction is working fine on version 5.2.1. Thank you. 👍
Expected behavior
The API request should be sent to the https://api.omise.co
Ref: https://docs.opn.ooo/duitnow-obw#creating-a-source
Actual behavior
The API request to https://vault.omise.co on SDK version 5.0.0 (and the latest version 5.2.0)
https://github.com/omise/omise-ios/blob/v5.0.0/OmiseSDK/Sources/OmiseAPI/OmiseAPI.swift
https://github.com/omise/omise-ios/blob/v4.27.1/OmiseSDK/Configuration.swift
Steps to reproduce the issue
duitnow_obw
Logs
omise-source-request-4.27.1.txt omise-source-request-5.2.0.txt
Screenshots
No response
Name and version information
XCode version 15.2 Omise-iOS version 5.2.0 (SwiftPM) iOS version 17.6.1