Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possibility to see CB images #233

Closed
rudyhadoux opened this issue Nov 15, 2023 · 15 comments
Closed

Possibility to see CB images #233

rudyhadoux opened this issue Nov 15, 2023 · 15 comments

Comments

@rudyhadoux
Copy link

rudyhadoux commented Nov 15, 2023

Hi,

With Stripe Elements for a payment (and Angular 17), is it possible to display the bank cards pictures in the numbers input ?

@richnologies
Copy link
Owner

Hey @rudyhadoux, can you be more specific, are you talking about the payment element? or the any of the other Bank Elements?

@rudyhadoux
Copy link
Author

Hi.
Those bank cards pictures.
Capture d’écran 2023-11-16 à 18 00 19

@richnologies
Copy link
Owner

Yeah, Stripe itself takes care of that. Ngx Stripe is just a wrapper around it. Should work fine

@rudyhadoux
Copy link
Author

rudyhadoux commented Nov 16, 2023

With ngx-stripe and @stripe/stripe-js.
No pictures...

@richnologies
Copy link
Owner

May I have the link to the example where they did work?

@rudyhadoux
Copy link
Author

Sorry, what do you mean ?

@richnologies
Copy link
Owner

The first example where the logs where actually displayed, is that an Stripe example?

@rudyhadoux
Copy link
Author

It is my own example with ngx-stripe and @stripe/stripe-js.

@richnologies
Copy link
Owner

richnologies commented Nov 16, 2023

Hi. Those bank cards pictures. Capture d’écran 2023-11-16 à 18 00 19

So, this example is with ngx-stripe too??

The thing is, I see no way to do it. https://stripe.com/docs/js/elements_object/create_element?type=card the only options in the card element I can see are iconStyle and hideIcon. But the icon appears on the left. So I don't know what to tell you. If you have a working example using Stripe, I can see what I'm missing

@rudyhadoux
Copy link
Author

rudyhadoux commented Nov 16, 2023

The picture is from a web site with Stripe Elements.
I am waiting for a reply from Stripe Support.
I do not understand why Stripe does not develop an embedded solution for Angular.

@richnologies
Copy link
Owner

Great! I would appreciate if you could share what they tell you, so other can benefit

@rudyhadoux
Copy link
Author

I found myself. I just integrated html client in Angular from :
https://github.com/stripe-samples/accept-a-payment/tree/main/payment-element/client

@richnologies
Copy link
Owner

Oh! but that is the Payment Element, not the Card Element, right?

@richnologies
Copy link
Owner

Sorry about that, we have support for that too: https://stackblitz.com/edit/ngx-stripe-live?file=src%2Fmain.ts

Anyway, happy you find your way

@rudyhadoux
Copy link
Author

rudyhadoux commented Nov 17, 2023

I do not use Material.

Form id="payment-form" is the form to pay.
That gives me that :

Capture d’écran 2023-11-17 à 15 28 27

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants