Closed nindipuri closed 4 years ago
@nindipuri Sorry for the late reply. 🙇 You can create a request by add type of Generic parameter to be Token
let tokenParameter = Token.CreateParameter(
name: "JOHN DOE",
number: "4242424242424242",
expirationMonth: 11,
expirationYear: 2019,
securityCode: "123"
)
let request = Request<Token>(parameter: tokenParameter)
For tokenizing you can follow this instruction https://github.com/omise/omise-ios#tokenizing-a-credit-card
Hi omise team,
I'm trying to tokenizing credit card and following the documentation as bellow. let tRequest = Request.init(parameter: Token.CreateParameter( name: "JOHN DOE", number: "4242424242424242", expirationMonth: 11, expirationYear: 2019, securityCode: "123" ))
But Request cannot be identified, it gives me error: Generic parameter 'T' could not be [inferred.]