#ahsanetics
1 messages · Page 1 of 1 (latest)
Stripe doesn't support angular officially. ngx-stripe is the community library for Stripe integration. I'd recommend checking their doc here: https://ngx-stripe.dev/docs/introduction
I did and got tons of error with it.
I can look at it again. There is another option I looked at but got a message that it is legacy
If you don't mind, are you able to explain me the workflow of payment through stripe regarding one time payment
From my understanding, when user click pay , website should communicate with stripe to create a session. Once session is is generated then website initiates a charge with stripe
This channel is for technical integration using official Stripe library. For questions related to community library like ngx-stripe, their Support will be able to help
From my understanding, when user click pay , website should communicate with stripe to create a session. Once session is is generated then website initiates a charge with stripe
Do you use Checkout Session (Stripe hosted payment page) or Payment Element (embedded payment form in your website)?
Ok thanks mate. I will try them. Appreciate your help. Will jump in if I get stuck somewhere
I am confused as what what solution is for what. I just wanted a simple checkout but the info on the site is not slear
I was looking for stripe hosted page but I tell them to charge this amount
If you're looking at Checkout Session (Stripe hosted payment page), I'd recommend checking the guide here: https://stripe.com/docs/checkout/quickstart
The steps will be:
- Use PHP backend to create the a Checkout Session that will return the payment page URL
- Either your client or server redirects customer to the URL
If you performs server redirects at step 2, there shouldn't be angular needed
So I initiated this process. I have been getting 500 error on the backend php script
Have tried try and catch to locate the issue but unable to get it. Keep in my mind, I am using godaddy at the backend so can't configure php much interest of installing library
I will try again and then I can post the error. I know it is late now. Will round up tomm
Appreciate your time
I have been getting 500 error on the backend php script
If the 500 error was returned from Stripe, can you share the request ID (req_xxx)? Here’s how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
If it's not, I'd recommend checking why your server returned 500 to your client
Ok I will look in to it