Re: [w3c/browser-payment-api] WIP: move+rework examples (#553)

This is a work in progress (DON'T MERGE)... It also assumes #551 will land. 

It attempts to give more detailed examples of how to actually use the API. 

It still needs to be made more clear in the examples that the payment sheet is somewhat stateless. So if you call, `.updateWith()` and you don't re-provide *all the things*, then the whole thing changes. This was quite unexpected the first time I saw it - but makes sense - but will likely catch people out. 

Basically, developers need to build a state machine to track total, possible shipping options, and how that affects the total, etc. 


 

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/browser-payment-api/pull/553#issuecomment-309362376

Received on Monday, 19 June 2017 07:39:33 UTC