#Jesus
1 messages · Page 1 of 1 (latest)
Hi there
Could you please share more details, like screenshot or the complete stacktrace ?
Yes of course!
You are using what key when you load Stripe ? this.stripePublicKey
I use test key starting with pk_test_***
I don't know if I can place the whole key here 😅
In the browser console, is there more stacktrace ?
just this...
IntegrationError: The paymentRequestButton Element is not available in the current environment. at e.value ((índice):1:231438) at t.value ((índice):1:318777) at t.value ((índice):1:318501) at t.<anonymous> ((índice):1:314458) at t.mount ((índice):1:150141) at CheckoutPageComponent.<anonymous> (checkout-page.component.ts:299:23) at step (tslib.es6.js:102:1) at Object.next (tslib.es6.js:83:45) at tslib.es6.js:76:1 at new ZoneAwarePromise (zone.js:913:33)
where does you account based in ?
We are in Spain, I have tried to change the information of the country and type of currency. But I understand that these are the correct ones: country: 'ES', currency: 'eur',
Can you share your account Id please ?
acct_175djaJsUeQ031Zd
thanks for sharing let me check
would you have a link to a page I can visit that reproduces this error?
@flat cargo No, sorry... I have local development
is this using Vue or something similar or Angular or something? I'm not sure what this 'nativeElement refers to, and for instance we do not support Vue or Shadow DOMs in stripe.js
Yes, the development is in Angular. I use nativeElement to refer to the object that will contain the element, in the same way that I do with cards type elements that are displayed correctly
hmm I'm not sure we really support Angular.
I'd suggest using a third party wrapper like https://www.npmjs.com/package/ngx-stripe and seeing if that works instead
I understand that if they have it in their documentation it can be used, in the end Angular is a JavaScript framework written in TypeScript
https://stripe.com/docs/js/elements_object/create_element?type=paymentRequestButton
I'm going to test with ngx-stripe anyway