Stripeを利用した決済機能をテストする
by
gorou_178
Link
Embed
Share
Beginning
This slide
Copy link URL
Copy link URL
Copy iframe embed code
Copy iframe embed code
Copy javascript embed code
Copy javascript embed code
Share
Tweet
Share
Tweet
Slide 1
Slide 1 text
StripeΛར༻ͨ͠ ܾࡁػೳΛςετ͢Δ JP_Stripes Fukuoka ݀Ҫ ྯ
Slide 2
Slide 2 text
ࣗݾհ • ݀Ҫ ྯ Twitter: @gorou_178 • גࣜձࣾΠϊϕʔλʔɾδϟύϯ • AWS / WordPress / PHP / Laravel / vue.js • ϑΝΠϧసૹαʔϏε tenpu • JP_Stripes Fukuoka ӡӦϝϯόʔ • ίʔώʔ/B’z/ϥϯφʔ
Slide 3
Slide 3 text
JP_Stripes Fukuoka ׆ಈ༰ʮJP_Stripes FukuokaʯͰݕࡧ
Slide 4
Slide 4 text
ࠓ͢͜ͱ
Slide 5
Slide 5 text
Stripeͷςετ
Slide 6
Slide 6 text
ܾࡁαʔϏεͷςετେมͦ͏…
Slide 7
Slide 7 text
ͦΜͳࣄ͋Γ·ͤΜʂ
Slide 8
Slide 8 text
Stripeͷςετ 1. ςετϞʔυͷΓସ͑ 2. ΫϨδοτΧʔυͷςετ 3. ҙ
Slide 9
Slide 9 text
Stripeͷςετ 1. ςετϞʔυͷΓସ͑ 2. ΫϨδοτΧʔυͷςετ 3. ҙ
Slide 10
Slide 10 text
1. ςετϞʔυͷΓସ͑ • ʮςετσʔλΛදࣔʯΛ
Slide 11
Slide 11 text
1. ςετϞʔυͷΓସ͑ • ʮςετσʔλΛදࣔʯΛ • ONʹΓସ͑Δ͚ͩ • ※දࣔσʔλ͕ΓସΘΔ͚ͩͰɺ ຊ൪ڥ௨ৗ௨Γಈ࡞͍ͯ͠Δ
Slide 12
Slide 12 text
APIΩʔςετ༻͕ൃߦ͞ΕΔ
Slide 13
Slide 13 text
Stripeͷςετ 1. ςετϞʔυͷΓସ͑ 2. ΫϨδοτΧʔυͷςετ 3. ҙ
Slide 14
Slide 14 text
2. ΫϨδοτΧʔυͷςετ • Checkoutͱ͍͏ඪ४ͷΧʔυ ೖྗϑΥʔϜ • ςετ༻APIΩʔΛ͏ͱTest ModeʹͳΔʢӈ্ͷදࣔʣ
Slide 15
Slide 15 text
2. ΫϨδοτΧʔυͷςετ • ͏͔ͬΓຊͷΧʔυใΛೖΕ ͯΤϥʔʹͳΔͷͰେৎʂ
Slide 16
Slide 16 text
2. ΫϨδοτΧʔυͷςετ • ֤ΫϨδοτΧʔυձࣾͷςετ ΧʔυΛܾ͑ࡁςετ͕Ͱ͖ Δ
Slide 17
Slide 17 text
ಛఆͷΤϥʔ͕ൃੜ͢ΔΧʔυ https://stripe.com/docs/testing#cards-responses
Slide 18
Slide 18 text
ຊ൪ڥͰςετΧʔυ ͑·ͤΜʢ೦ͷҝʣ
Slide 19
Slide 19 text
Stripeͷςετ 1. ςετϞʔυͷΓସ͑ 2. ςετΧʔυ͔͑͠ͳ͍҆৺ײ 3. ҙ
Slide 20
Slide 20 text
4. ҙ • ʢྉۚϓϥϯʣσʔλຊ൪ͱςετϞʔυͰผʑཧ͞ ΕΔ • Λ࡞ΓΕͳ͍Α͏ʹʢࢲΒ͔͠·ͨ͠…ʣ
Slide 21
Slide 21 text
4. ҙ • ఆظ՝ۚͷαΠΫϧ͕ϦΞϧͳ࣌ؒͰಈ͘ • ఆظ՝ۚ1ϲ݄ͷ߹ɺ࣮ࡍʹ1ϲ݄ͭඞཁ͕͋Δ • ࠶՝ۚͷςετ1ϲ݄ͪ • ՝ۚ෦ͷϞοΫԽΛ͓͢͢Ί͠·͢
Slide 22
Slide 22 text
stripe/stripe-mock Stripe APIͷϞοΫڥ͕࡞Ͱ͖Δ https://github.com/stripe/stripe-mock
Slide 23
Slide 23 text
nijikokun/stripe-mock-webhook Stripe webhook ͷϨεϙϯεΛฦͯ͘͠ΕΔ https://github.com/nijikokun/stripe-mock-webhooks
Slide 24
Slide 24 text
·ͱΊ • StripeͷςετϞʔυͱ͍͍ͯ͢ • มͳ͍ํͰ͖ͳ͍ͷͰ҆৺ͯ͑͠Δ • େͳ՝ۚॲཧΛStripeͰָʹςετ͠·͠ΐ͏
Slide 25
Slide 25 text
͋Γ͕ͱ͏͍͟͝·ͨ͠