Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Apple Pay in 5 minutes

laiso
November 15, 2016

Apple Pay in 5 minutes

laiso

November 15, 2016
Tweet

More Decks by laiso

Other Decks in Technology

Transcript

  1. τʔΫϯૹ৴ϑϩʔ let apiClient = PAYJP.APIClient(publicKey: PAYJPPublicKey) apiClient.createToken(with: payment.token) { (result)

    in switch result { case .success(let token): // tokenΛαʔόʔ΁ૹ৴ܾͯ͠ࡁॲཧ // https://pay.jp/docs/charge completion(.success) case .failure(let error): completion(.failure) } }