dafle9296
<@!781134406680838216>
Boa tarde
estou tentando obter o paymentToken no iOS e estou com o seguinte erro
sh
Error Domain=GNErrorApiDomain Code=404 "(null)"
Implementação
swift
let config = GNConfig.init(accountCode: "__ACCOUNT_CODE__", sandbox: false)
guard let gnAPI = GNApiEndpoints.init(config: config) else {
return
}
let gnCreditCard = GNCreditCard(
number: "hidden",
brand: "hidden",
expirationMonth: "hidden",
expirationYear: "hidden",
cvv: "hidden"
)
gnAPI
.paymentToken(for: gnCreditCard)
.then({ res in
print("SUCCESSFULL", res ?? "")
}, { err in
print("ERROR", err ?? "")
})
SDK
sh
pod 'GNApi-Sdk-iOS', '~> 0.3'
(SANDBOX funciona)