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

Apple Pay in 5 minutes

D107509659b6f023aa60e77aef1db237?s=47 laiso
November 15, 2016

Apple Pay in 5 minutes

D107509659b6f023aa60e77aef1db237?s=128

laiso

November 15, 2016
Tweet

Transcript

  1. Apple Pay in 5 minutes with PAY.JP

  2. PAY.JP? • ΦϯϥΠϯܾࡁͷͨΊͷAPIΛఏڙ • ถStripe΍WebPayΈ͍ͨͳ΋ͷ • Apple PayΛ࢖ܾͬͨࡁʹରԠ

  3. Payment Solution Provider(PSP) https://developer.apple.com/apple-pay/

  4. Apple Pay with ඇର໘ • ঎඼΍αʔϏε΁ͷࢧ෷͍ • ECαΠτ΍ग़લɺλΫγʔɺ
 өըνέοτ •

    iOS App, Safari(Web)
  5. BASEγϣοϓ30ສళ΁ಋೖ

  6. େ·͔ͳ࡞ۀखॱ 1. developer.apple.comͰϚʔνϟϯτIDΛ ొ࿥ 2. PAY.JPͰূ໌ॻॺ໊ཁٻΛμ΢ϯϩʔυ 3. developer.apple.comͰূ໌ॻΛ࡞੒ 4. PAY.JP΁ূ໌ॻΛΞοϓϩʔυ

  7. iOSΞϓϦ࣮૷ 1. PassKitͷAPIͰߪೖϘλϯΛදࣔ 2. ࢧ෷͍ϦΫΤετɾΞΠςϜΛ࡞੒ͯ͠ϖΠ ϝϯτγʔτΛදࣔ 3. delegateϝιουͰऔಘͰ͖ΔApple PayτʔΫ ϯ͔ΒPAY.JPτʔΫϯΛൃߦ

    4. PAY.JPτʔΫϯΛαʔόʔ΁ૹ৴ܾͯ͠ࡁॲཧ Λߦ͏
  8. υΩϡϝϯτ https://pay.jp/docs/apple-pay

  9. PAY.JP iOS SDK beta # Cartfile github "payjp/payjp-ios" # Podfile

    pod 'PAYJP', git: 'git@github.com:payjp/payjp-ios.git'
  10. τʔΫϯૹ৴ϑϩʔ 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) } }
  11. ಈ࡞֬ೝ • ܾࡁ෦෼͸࣮ػͰ࣮ߦ • iTunes ConnectͰαϯυϘοΫεApple ID௥Ճ • ςετΧʔυΛWalletʹొ࿥ •

    https://developer.apple.com/support/ apple-pay-sandbox/
  12. ࢀߟʹͳΔ৘ใ • Apple PayϓϩάϥϛϯάΨΠυ (ެࣜυ Ωϡϝϯτ) • https://developer.apple.com/jp/documentation/ ApplePay_Guide/ •

    Developers.IO಺ͷApple Payؔ࿈هࣄ • http://dev.classmethod.jp/tag/apple-pay/
  13. Appendix • SDKͷ։ൃͷ࿩ • Swift3.0Ͱ։ൃ • Objective-C޲͚ͷϝιουΛఆٛ • ֎෦ґଘͷͳ͍Result, Himotoki

    ΛϞ δϡʔϧ಺ʹ૊ࠐΈ • MITϥΠηϯεͰެ։
  14. ·ͱΊ • PAY.JPͰApple PayରԠΛ࢝ΊΔͷ͸؆୯ • ͓໰͍߹Θͤෆཁ • SDK͕ެ։͞Ε͍ͯΔ • αϯυϘοΫε؀ڥͰςετՄೳ