Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CS-3055] fixed invalid api baseUrl #303

Merged
merged 1 commit into from
Oct 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ExampleApp.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/omise/omise-ios.git";
requirement = {
branch = "feature/MIT-2470";
branch = master;
kind = branch;
};
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"originHash" : "f131717f980b1b6f5251428da012f188d1eaff4e6fa62f7a3121859345471b87",
"pins" : [
{
"identity" : "omise-ios",
"kind" : "remoteSourceControl",
"location" : "https://github.com/omise/omise-ios.git",
"state" : {
"branch" : "feature/MIT-2470",
"revision" : "4f1bbf9a0f0828c7531664276fc244fd8433a869"
"branch" : "master",
"revision" : "c54d16bd6d8f037c0bcc8da3ce0d140563134944"
}
},
{
Expand All @@ -19,5 +20,5 @@
}
}
],
"version" : 2
"version" : 3
}
2 changes: 1 addition & 1 deletion OmiseSDK/Sources/OmiseAPI/OmiseAPI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ enum OmiseServerType {

extension OmiseServerType {
// swiftlint:disable force_unwrapping
private var apiServerURL: String { "https://vault.omise.co" }
private var apiServerURL: String { "https://api.omise.co" }
private var vaultServerURL: String { "https://vault.omise.co" }

var url: URL {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public struct CreateSourcePayload: Equatable {
/// Current SDK platform type
let platform = "IOS"

init(amount: Int64, currency: String, details: Source.Payment) {
public init(amount: Int64, currency: String, details: Source.Payment) {
self.amount = amount
self.currency = currency
self.details = details
Expand Down
2 changes: 1 addition & 1 deletion OmiseSDK/Sources/OmiseSDK.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ public class OmiseSDK {
public static var shared = OmiseSDK(publicKey: "pkey_")

/// OmiseSDK version
public let version: String = "5.2.0"
public let version: String = "5.2.1"

/// Public Key associated with this instance of OmiseSDK
public let publicKey: String
Expand Down
Loading