0

当我使用 un:user_good 和 pw:pass_good 时,我得到了附加的屏幕

而且它不返回 accessToken 我已经在我的 AppDelegate 中添加了我的公钥

   [![@IBAction fu][1]][1]nc plaidConnectButton(_ sender: Any) {
    let plaidLink = PLDLinkNavigationViewController(environment: .tartan, product: .connect)!

    plaidLink.linkDelegate = self
    plaidLink.providesPresentationContextTransitionStyle = true
    plaidLink.definesPresentationContext = true
    plaidLink.modalPresentationStyle = .custom

    self.present(plaidLink, animated: true, completion: nil)
}


func linkNavigationContoller(_ navigationController: PLDLinkNavigationViewController!, didFinishWithAccessToken accessToken: String!) {
    print("success \(accessToken)")
    myAPIClient.connectAddBank(bankToken: accessToken, completion:{
        (error) in
        if(error != nil) {
            print(error.debugDescription)
        } else {
            print("successfully added bank")
            self.dismiss(animated: true, completion: nil)
        }
    })

}

func linkNavigationControllerDidFinish(withBankNotListed navigationController: PLDLinkNavigationViewController!) {
    print("Manually enter bank info?")
    self.performSegue(withIdentifier: "unlistedBankSegue", sender: self)
}

func linkNavigationControllerDidCancel(_ navigationController: PLDLinkNavigationViewController!) {
    self.dismiss(animated: true, completion: nil)
}

请帮忙

4

1 回答 1

0

在初始化过程中将您的环境设置为.sandbox 。

格子支持链接:https ://github.com/plaid/link/issues/140

于 2017-06-28T11:45:30.820 回答