@peak steeple pressed the π‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:
Question
1- Styling the Card component in React: I am using the CardElement component in React from @stripe/react-stripe-js. I want to style it so that the border color changes (e.g., to primary) when the component is focused. Adding className directly doesnβt work as expected.
2- Custom Receipt URLs: After I capture a payment, when I retrieve the charge in the webhook, the receipt_url points to pay.stripe.com, even though I added and had my domain name approved for both emails and URLs. How can I make the receipt URL use pay.mydomainname.com instead?
3- Receipt emails not sent after payment capture
Related Request ID(s)
CardElement, PaymentIntent, Charge
What have you already attempted?
1- For Card Component Styling: I looked into the Stripe documentation and tried adding className directly to the CardElement, but it didnβt work. It seems the focus styling must be handled differently since it's 2 layers of div before the input.
2- For Custom Receipt URLs: I added my domain name to the Stripe settings for both emails and hosted URLs, and both were approved. However, the receipt URL still defaults to Stripe's domain.
3- For receipt emails: I verified that the customer object is created with a valid email field, but no receipt email is sent after the payment is captured.
What are you working on?
Iβm building a community platform where users subscribe to communities. Users provide payment info and complete a form set by the community creator. Admission depends on the creatorβs approval