Skip to content

Commit

Permalink
Clean up ChoosePaymentMethodDelegate param names
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei Solovev committed May 2, 2024
1 parent 5f6b083 commit 2f43083
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions ExampleApp/Views/ProductDetailViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,12 @@ extension ProductDetailViewController: ChoosePaymentMethodDelegate {
omiseSDK.dismiss()
}

func choosePaymentMethodDidComplete(with whiteLabelInstallmentSource: Source, token: Token) {
print("White-label installment payment Token is created with id '\(token.id)', Source id: '\(whiteLabelInstallmentSource.id)'")
func choosePaymentMethodDidComplete(with source: Source, token: Token) {
print("White-label installment payment Token is created with id '\(token.id)', Source id: '\(source.id)'")
omiseSDK.dismiss {
let alertController = UIAlertController(
title: "Token & Source Created",
message: "A token with id of \(token.id) and source with id of \(whiteLabelInstallmentSource.id) was successfully created. Please send this id to server to create a charge.",
message: "A token with id of \(token.id) and source with id of \(source.id) was successfully created. Please send this id to server to create a charge.",
preferredStyle: .alert
)
let okAction = UIAlertAction(title: "OK", style: .cancel, handler: nil)
Expand Down
2 changes: 1 addition & 1 deletion OmiseSDK/Sources/ChoosePaymentMethodDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Foundation
public protocol ChoosePaymentMethodDelegate: AnyObject {
func choosePaymentMethodDidComplete(with source: Source)
func choosePaymentMethodDidComplete(with token: Token)
func choosePaymentMethodDidComplete(with whiteLabelInstallmentSource: Source, token: Token)
func choosePaymentMethodDidComplete(with source: Source, token: Token)
func choosePaymentMethodDidComplete(with error: Error)
func choosePaymentMethodDidCancel()
}

0 comments on commit 2f43083

Please sign in to comment.