Skip to content

JSON Response error #9

@hammas1993

Description

@hammas1993

im calling api https://api.quickpay.net/payments/Payment ID. Before using call back the response was perfectly decoding.After using callback url "callback_response_code": "200", is coming as Int whereas QPOperation callback_response_code is Int? and i cant modify code in SPM what should i do???
public class QPOperation : Codable {

// MARK: - Properties

public var id: Int
public var type: String?
public var amount: Int?
public var pending: Bool?
public var qp_status_code: String?
public var qp_status_msg: String?
public var aq_status_msg: String?
public var aqStatusMsg: String?
public var data: Dictionary<String, String>?
public var callback_url: String?
public var callback_success: Bool?
public var callback_response_code: Int?
public var callback_duration: Int?
public var acquirer: String?
public var callback_at: String?
public var created_at: String?

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions