Skip to content

Commit

Permalink
Custom Credit Card form dismiss is fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei Solovev committed Mar 20, 2024
1 parent d6b071f commit 5f270ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ExampleApp/Views/ProductDetailViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ extension ProductDetailViewController: AuthorizingPaymentViewControllerDelegate

extension ProductDetailViewController: CustomCreditCardPaymentControllerDelegate {
func creditCardFormViewController(_ controller: CustomCreditCardPaymentController, didSucceedWithToken token: Token) {
omiseSDK.dismiss {
dismissForm {
let alertController = UIAlertController(
title: "Token Created",
message: "A token with id of \(token.id) was successfully created. Please send this id to server to create a charge.",
Expand All @@ -98,7 +98,7 @@ extension ProductDetailViewController: CustomCreditCardPaymentControllerDelegate
}

func creditCardFormViewController(_ controller: CustomCreditCardPaymentController, didFailWithError error: Error) {
omiseSDK.dismiss {
dismissForm {
let alertController = UIAlertController(
title: "Error",
message: error.localizedDescription,
Expand Down

0 comments on commit 5f270ee

Please sign in to comment.