From 63df36f902ad0d68330786f03b42adbce367f1c6 Mon Sep 17 00:00:00 2001 From: codetrotter <36199671+ctsrc@users.noreply.github.com> Date: Fri, 30 Jul 2021 01:50:08 +0200 Subject: [PATCH] Remove checkout cancel URL which should not be included for integration type embedded checkout With the checkout cancel URL set, embedded checkout fails as described in issue #11. This change fixes the problem described in said issue. --- MiaSample/MiaSample/Managers/RequestManager.swift | 1 - 1 file changed, 1 deletion(-) diff --git a/MiaSample/MiaSample/Managers/RequestManager.swift b/MiaSample/MiaSample/Managers/RequestManager.swift index b38318f..5c105c3 100644 --- a/MiaSample/MiaSample/Managers/RequestManager.swift +++ b/MiaSample/MiaSample/Managers/RequestManager.swift @@ -67,7 +67,6 @@ public class RequestManager { case .embeddedCheckout: checkoutDict.setValue(IntegrationType.embeddedCheckout.rawValue, forKey: "integrationType") checkoutDict.setValue(ipAddress, forKey: "url") - checkoutDict.setValue(constant.testCancelUrl, forKey: "cancelURL") case .hostedPaymentWindow: checkoutDict.setValue(IntegrationType.hostedPaymentWindow.rawValue, forKey: "integrationType") checkoutDict.setValue(constant.testReturnUrl, forKey: "returnURL")