Skip to content

Commit

Permalink
Applied changes from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert-SD committed Dec 1, 2023
1 parent 287d338 commit 863360c
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
1 change: 1 addition & 0 deletions ios/Classes/components/ComponentPlatformApi.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
class ComponentPlatformApi: ComponentPlatformInterface {
//TODO: Group callbacks in a weak delegate
var onUpdateViewHeightCallback: () -> Void = { }
var onActionCallback: ([String?: Any?]) -> Void = { _ in }
var onFinishCallback: (PaymentFlowOutcomeDTO) -> Void = { _ in }
Expand Down
1 change: 0 additions & 1 deletion ios/Classes/components/card/BaseCardComponent.swift
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ class BaseCardComponent: NSObject, FlutterPlatformView, UIScrollViewDelegate {

func finalizeAndDismiss(success: Bool, completion: @escaping (() -> Void)) {
cardComponent?.finalizeIfNeeded(with: success) { [weak self] in
//Is this viewcontroller access correct?
self?.getViewController()?.dismiss(animated: true , completion: {
completion()
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ class CardAdvancedFlowActionComponentDelegate: ActionComponentDelegate {
}

func didComplete(from _: Adyen.ActionComponent) {
print("did complete")
// TODO: Could we discuss when this callback is being triggered and needs to be handled?
//Only for voucher payment method
}

func didFail(with error: Error, from _: Adyen.ActionComponent) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ class CardSessionFlowDelegate: AdyenSessionDelegate {
}

func didOpenExternalApplication(component _: ActionComponent, session _: AdyenSession) {
print("did open external application")
// TODO: Could we discuss when this callback is being triggered and needs to be handled?
// TODO: Add implementation when we support external applications
}
}

0 comments on commit 863360c

Please sign in to comment.