Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mismatch arguments of CreateSourcePayload #300

Open
PaperMonster opened this issue Sep 2, 2024 · 1 comment
Open

Mismatch arguments of CreateSourcePayload #300

PaperMonster opened this issue Sep 2, 2024 · 1 comment
Labels

Comments

@PaperMonster
Copy link

PaperMonster commented Sep 2, 2024

Expected behavior

Xcode doesn't mark CreateSourcePayload initialization with Extra arguments at positions #1, #2, #3 in call error.

Actual behavior

Xcode marks CreateSourcePayload initialization with Extra arguments at positions #1, #2, #3 in call error.

Steps to reproduce the issue

  1. Clone omise-ios project
  2. Open ExampleApp.xcodeproj
  3. (optional) Change version of OmiseSDK in package dependencies to 5.2.0
  4. Add following code to ExampleApp > ExampleApp > BaseViewController.swift at line 24
let createSourcePayload = CreateSourcePayload(
    amount: 10000,
    currency: "THB",
    details: SourceType.internetBankingBBL
)

Logs

There are 2 error messages

  1. Extra arguments at positions #1, #2, #3 in call
  2. Missing argument for parameter 'from' in call

Screenshots

Screenshot 2567-09-02 at 13 50 03

Name and version information

  • Xcode Version 15.4 (15F31d)
  • Omise-iOS 5.2.0
  • Package Manager: SwiftPM. The version that shipped with Xcode 15.4
  • Operating System: MacOS 14.3.1 (23D60)
@aashishgurung
Copy link

@PaperMonster Thanks for reaching out. We will look into this and let you know about our findings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants