Re: [w3c/payment-request] Pay method for testing environment (#613)

Now the payment flow is **show method** -> **paymentResponse**.
`
var paymentRequest = new PaymentRequest( methodData, details, options );
paymentRequest.show().then(function(paymentResponse) {
 paymentResponse.complete('success');
})
`

It should add the paymentRequest show event so the test_pay method can apply.
Something like this

`
paymentRequest.addEventListener('shown', function(){
 test_pay()
})
`


-- 
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-request/issues/613#issuecomment-329695652

Received on Friday, 15 September 2017 06:40:05 UTC