[w3c/payment-handler] Payment Instrument architecture clarification (#381)

Hi all,

The BobPay payment method have two payment instruments - bobpay and basic-card. When the user select basic-card, enter needed data and press pay - we use the BobPay's service worker for handling of the rest of the flow (and same for BobPay instrument). Probably it is due to the fact that basic-card is build in instrument.

I want to create a custom Payment Web App with name (for ex.) CustomPay. I want that this app has two payment instruments, first CustomPay and the second NewPay.

**Q:** What should I do, in order to use NewPay service worker when the user select NewPay payment instrument? Could you please give an example? Or all payment logic (for all payment instruments) should be covered with CustomPay service worker? 

Thank you for your answer.
Roman.

-- 
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/payment-handler/issues/381

Received on Thursday, 10 December 2020 20:22:22 UTC