Questions tagged [payment-request-api]
59 questions
1
vote
2 answers
Use google's PaymentRequest on local site running in Android Emulator
I'm trying to test out Google's PaymentRequest api on a local website running in my android emulator. However, when I do
var paymentRequest = window.PaymentRequest(//some object here//);
I get the following error
"Error: Failed to construct…

whatoncewaslost
- 2,216
- 2
- 17
- 25
1
vote
1 answer
Braintree hosted fields with PaymentRequest API
I'm using braintree and their hosted fields solution to be applicable for the easiest to qualify PCI level of compliance - SAQ A.
Google recently announced their PaymentRequest API which provided a great user experience, however it makes available…

Kazmin
- 1,003
- 1
- 10
- 26
1
vote
1 answer
PaymentRequest API not defined
I am trying to run an example of the Payment request API as shown on https://www.youtube.com/watch?v=yelPlCVZLEE .
I have followed the process as they describe and i Have also run the following code:
function go() {
console.log('Pay');
var…

remind_hill
- 11
- 1
- 4
0
votes
0 answers
how to store critical data on PaymentRequest API
I'm using payment request API, first thing i ask the user to sign-in and enroll, then i give him a token, this token is a very critical data for my payment method, i want to store in just like the card number and cvc.
Im asking if there is a way to…

soma
- 176
- 9
0
votes
0 answers
Hide shipping adress from payment request w3c
I would to hide the shipping address from my payment request w3c.
Any idea please!
const request = new PaymentRequest([{
supportedMethods: 'https://pay
}], {
total: {
label: 'total',
amount: { value: '10', currency: 'USD' }
}
,
…

mimia
- 21
- 4
0
votes
0 answers
registration paymentManager instruments .set 'instrument-key' handler payment
I create a service worker and a payment manager they are well registered on my browser. I made an instrument set but I can't find the instrument to register with the payment methods and when I look at the payment process, the instrument key is…

mimia
- 21
- 4
0
votes
0 answers
Service worker and payment Handlers
I created a service worker for a payment manager. When I checked the server is installed but I do not see the payment methods installed on the browser.
i added the event install fetch and load but i can't show the payment methods register in…

mimia
- 21
- 4
0
votes
0 answers
Facing issues while implementing google API to Angular
I am intergrating google pay api to one of my angular project and trying to add the options into the code. but not be able to do that. error coming is error TS2554: Expected 2 arguments, but got 3.. but in W3C it is code is new…

KARNAV PARGI
- 445
- 1
- 4
- 15
0
votes
1 answer
service.acknowledge is undefined using Digital Goods API with Google Play in TWA
I have an web app in development to which I am trying to add Google Play Billing on Android and Chrome OS. My implementation is basically the same as in Google's own documentation, however it fails at the point of acknowledging the purchase after…

Zachary Yaro
- 196
- 12
0
votes
2 answers
Unable to get any response from the apple pay - This resource came from a local override
I am integrating the apple pay and following the payment request API!
According to the documentation
(https://developer.apple.com/documentation/apple_pay_on_the_web/apple_pay_js_api/requesting_an_apple_pay_payment_session)
cert: merchIdentityCert…

inod wagachchi
- 9
- 6
0
votes
1 answer
how to apple pay through stripe in VJs?
I am trying to follow the guide here ( https://stripe.com/docs/stripe-js/elements/payment-request-button ) to setup Apple Pay for the web and Stripe. The initial steps such as verification of domain and all the pre-setup is done but I am having an…
0
votes
1 answer
TypeError: Object is not a constructor (evaluating 'new PaymentRequest(METHOD_DATA, DETAILS)')
I got an error react-native-payments-reborn library when I tried to implement Apple Pay.
I got the error in the below line
const paymentRequest = new PaymentRequest(METHOD_DATA, DETAILS);
Code is given below. Thanks in advance.
const…

adolf smith
- 23
- 4
0
votes
1 answer
Programmatically add a browser payment method
I was looking at the payment request API for web payments, and was wondering if it's possible to programmatically add a browser payment method.
I can add manually e.g. in Chrome via Settings > Privacy and security > Autofill > Payment methods, but…

Ryan.Bartsch
- 3,698
- 1
- 26
- 52
0
votes
1 answer
Is there any method for PaymentResponse api to check response of payment?
As we can check the status that either payment api is supported or not. Using window object:
window.PaymentRequest
Is there any way to check after payment what is status of PaymentResponse using only window object?
I don't have access to the code of…

Dharmik Raval
- 101
- 10
0
votes
1 answer
How to check if PaymentRequest API is supported by browser within Typescript code
Is there a way to force typescript's window object to resolve PaymentRequest property? Here is code example I have inside my angular component:
if (window.PaymentRequest) {
// This browser supports Payment Request
} else {
// Browser does not…

dim0_0n
- 2,404
- 5
- 27
- 46