Skip to content

Commit

Permalink
Merge pull request #303 from omise/fix/CS-3055
Browse files Browse the repository at this point in the history
[CS-3055] fixed invalid api baseUrl
  • Loading branch information
chavalitv-opn authored Oct 22, 2024
2 parents c54d16b + e56bced commit 1348ca1
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
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

0 comments on commit 1348ca1

Please sign in to comment.