#ammsabry-angular-paymentelement
1 messages · Page 1 of 1 (latest)
@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?
whenever i run the project, i'm not getting what i was expecting , the payment element is not appearing at all
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
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
We don't have any docs for Angular unfortunately. But it's really a JS library, so you would need to load/include it.
https://ngx-stripe.dev/docs/payment-element maybe this would help? It's not something we wrote but it seems relevant
I'll check it, thank you so much
of course, let me know if you have more specific questions. If you have a URL I can look at too
I'm afraid it's not yet, but i'll let you know the result of when it's done