#ammsabry-angular-paymentelement

1 messages · Page 1 of 1 (latest)

dull pollen
#

@modest aspen Unfortunately I've never used Angular and have no knowledge about this, but PaymentElement is mostly based on a JS library. What's blocking you?

modest aspen
#

whenever i run the project, i'm not getting what i was expecting , the payment element is not appearing at all

dull pollen
#

Okay but that could be anything. There's likely an error raised somewhere, either server-side or client-side. The way PaymentElement works is that you first create a PaymentIntent server-side, get the client_secret back and pass that client-side to Stripe.js to initialize the element.
So you would add logs to your code to figure out which exact part is/isn't working. And you'd also look at the JS console in Chrome or your favourite browser

modest aspen
#

i appreciate that, actually it's working fine for the server side, but it's all from the client side, i think there might be smth needs to be installed, that's why i was asking if there's any documentation showing how to implement it with angulart

dull pollen
#

We don't have any docs for Angular unfortunately. But it's really a JS library, so you would need to load/include it.

modest aspen
#

I'll check it, thank you so much

dull pollen
#

of course, let me know if you have more specific questions. If you have a URL I can look at too

modest aspen
#

I'm afraid it's not yet, but i'll let you know the result of when it's done