Skip to content

Commit

Permalink
Renamed presentAuthorizingPayment
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei Solovev committed Mar 13, 2024
1 parent 7b19f49 commit 3acee03
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ExampleApp/Views/ProductDetailViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class ProductDetailViewController: BaseViewController {
let url = URL(string: text),
let expectedReturnURL = URLComponents(string: "https://opn.ooo/") else { return }

self.omiseSDK.presentAuthorizedController(
self.omiseSDK.presentAuthorizingPayment(
from: self,
authorizeURL: url,
expectedReturnURLPatterns: [expectedReturnURL],
Expand Down
2 changes: 1 addition & 1 deletion OmiseSDK/Sources/OmiseSDK.swift
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public class OmiseSDK {
/// - expectedReturnURLPatterns: The expected return URL patterns.
/// - delegate: A delegate object that will recieved authorizing payment events.
@available(iOSApplicationExtension, unavailable)
public func presentAuthorizedController(
public func presentAuthorizingPayment(
from topViewController: UIViewController,
animated: Bool = true,
authorizeURL: URL,
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ You can use the built-in authorizing payment view controller with the `authorize

```swift

omiseSDK.presentAuthorizedController(
omiseSDK.presentAuthorizingPayment(
from: self,
authorizeURL: url,
expectedReturnURLPatterns: [expectedReturnURL],
Expand Down

0 comments on commit 3acee03

Please sign in to comment.