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

[Jose Aguinaga] Buy my mixtape: the Payment Req...

[Jose Aguinaga] Buy my mixtape: the Payment Request API in action

Presentation from GDG DevFest Ukraine 2017 - the biggest community-driven Google tech conference in the CEE.

Learn more at: https://devfest.gdg.org.ua

Avatar for Google Developers Group Lviv

Google Developers Group Lviv

October 13, 2017
Tweet

More Decks by Google Developers Group Lviv

Other Decks in Technology

Transcript

  1. Web Payment Request API Buy my mixtape: the Payment Request

    API in action Jose Aguinaga Senior Front End Engineer @ Flynt.io
  2. #dfua Autofill <label for="frmNameCC">Name on card</label> <input name="ccname" autocomplete="cc-name"> <label

    for="frmCCNum">Card Number</label> <input name="cardnumber" autocomplete="cc-number"> <label for="frmCCCVC">CVC</label> <input name="cvc" autocomplete="cc-csc"> <label for="frmCCExp">Expiry</label> <input name="cc-exp" autocomplete="cc-exp">
  3. #dfua new PaymentRequest({ supportedMethods: ["visa", "mastercard"] }, { displayItems: [

    { label: "Sub-total", amount: { currencyCode: "USD", value: "55.00" } } ], total: [{ label: "Total excluding shipping", amount: { currencyCode: "USD", value: "55.00" }, }] })
  4. #dfua new PaymentRequest({ supportedMethods: ["visa", "mastercard"] }, { displayItems: [

    { label: "Sub-total", amount: { currencyCode: "USD", value: "55.00" } } ], total: [{ label: "Total excluding shipping", amount: { currencyCode: "USD", value: "55.00" }, }] })
  5. #dfua new PaymentRequest({ supportedMethods: ["visa", "mastercard"] }, { displayItems: [

    { label: "Sub-total", amount: { currencyCode: "USD", value: "55.00" } } ], total: [{ label: "Total excluding shipping", amount: { currencyCode: "USD", value: "55.00" }, }] })
  6. #dfua new PaymentRequest({ supportedMethods: ["visa", "mastercard"] }, { displayItems: [

    { label: "Sub-total", amount: { currencyCode: "USD", value: "55.00" } } ], total: [{ label: "Total excluding shipping", amount: { currencyCode: "USD", value: "55.00" }, }] })
  7. #dfua The mixtape buying experience in the 70’s Record mixtape

    in multiple cassettes Let people try cassette with a Walkman Sell it them for ca$h
  8. #dfua The mixtape buying experience in 2017 Host song/songs in

    website Let them try it using the Web Audio API Allow purchase with mobile payments
  9. #dfua Mobile Payment Workflow Scan “tape” with musician song Preview

    song and start payment request flow Process payment in the backend and deliver
  10. #dfua Mobile Payment Workflow Scan “tape” with musician song Preview

    song and start payment request flow Process payment in the backend and deliver
  11. #dfua Mobile Payment Workflow Scan “tape” with musician song Preview

    song and start payment request flow Process payment in the backend and deliver
  12. Further research Payment Method ID - https://w3c.github.io/payment-method-id/ Payment Handler API

    - https://w3c.github.io/payment-method-id/ Payment Request API - https://www.w3.org/TR/payment-request/
  13. Resources Google Progressive Web App Training - https://goo.gl/hzbjhP MS Pay

    the Web Forward - https://goo.gl/ZGzFBL Google Chrome Samples - https://goo.gl/xwxi3w