Skip to content

Commit

Permalink
Adding Saudi region(KSA) URL and updating test certificates.
Browse files Browse the repository at this point in the history
  • Loading branch information
aditighatode committed Feb 12, 2024
1 parent cfb4990 commit 5107cfb
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Release Notes

## [Unreleased]
## [1.1.7] - 2024-02-12
### Added
- Saudi region (KSA) URL

## [1.1.6]
### Changed
Expand Down
2 changes: 1 addition & 1 deletion Configs/MPGSDK.plist
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.1.6</string>
<string>1.1.7</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2017 Mastercard Payment Gateway Services. All rights reserved.</string>
<key>NSPrincipalClass</key>
Expand Down
2 changes: 1 addition & 1 deletion Configs/MPGSDKTests.plist
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.1.6</string>
<string>1.1.7</string>
</dict>
</plist>
2 changes: 1 addition & 1 deletion Sources/GatewayRegion.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ extension GatewayRegion {
public static let mtf: GatewayRegion = GatewayRegion(id: "mtf", name: "Test (MTF)", baseURL: "mtf.gateway.mastercard.com")
public static let india: GatewayRegion = GatewayRegion(id: "in", name: "India", baseURL: "in.gateway.mastercard.com")
public static let china: GatewayRegion = GatewayRegion(id: "cn", name: "China", baseURL: "cn.gateway.mastercard.com")

public static let saudiArabia: GatewayRegion = GatewayRegion(id: "ksa", name: "Saudi Arabia", baseURL: "ksa.gateway.mastercard.com")

/// Create a region not already defined by the SDK
/// - Parameters:
Expand Down
2 changes: 1 addition & 1 deletion Tests/MGPSDKTests/TestCertificates.swift
Original file line number Diff line number Diff line change
Expand Up @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4IBAQC5eqpR7c8kSN4kLNIHsGp1ZAcLfJTob/DsyjavZg9bia8bYNJ4FbiHY2AVLl5mwN5e8C7iTpQtu/6z7km0o54RGJKQNG35tWrxvHjzy1DzCrlM/5Rz9p+CQQlprOFqBL1ISBMVDDzuH1q34alYG5MlTbpZvhIYJqbNr85SDA32VdOxFcpiO9G2DpFKkZ9l0xP0DTr2aF2UMfkWyM13fqixbqw2VgGAzF56+9XXWKtK3LZ2ICALv4xJ8Qw9/pdcrLnezWBwCVwScGqsVcBevJOe")
)

static let untrusted = Chain(
Expand Down

0 comments on commit 5107cfb

Please sign in to comment.