#jamesroper_api

1 messages ¡ Page 1 of 1 (latest)

eager daggerBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1222667205024677918

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

abstract stormBOT
#

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

strong arch
#

To clarify - I only need to allow customers to view their previous purchases, and view and update their billing information

wild warren
#

Hi, taking a look here

#

Are you asking how you can extract the customer billing data to then use it on your app?

strong arch
#

If needs be I can manually extract it and set up my own viewing and editing page, but I was hoping there was a way to embed the formats from Stripe (for example the following for billing details, allowing customers to view and edit them directly on Stripe from within our app):

#

If not, where can I find all the necessary details (such as lists of countries accepted and the country formats, phone number format etc)

#

That I would need to set up my own billing details editor for instance

#

and invoice viewer

#

And if this isn't feasible, how can i allow users to view their invoices and update their billing details?

wild warren
#

You can look at Address Elements, and for invoices, you can use Stripe Customer Portal, https://docs.stripe.com/customer-management as well depending on how you want to build these. Are you able to look at these and let me know what questions you have.

eager daggerBOT
wild warren
#

Ah, from within your app, you likely want to make a retrieve call, https://docs.stripe.com/api/customers/retrieve. You can surface that address and then when they update it, you can use your own UI to then update the address on the customer.

strong arch
#

So in the Customer portal, the example seems to show the customer can only interact with their invoices, can I configure another one which allows customers to interact with their billing details?

  business_profile={
    "headline": "Cactus Practice partners with Stripe for simplified billing.",
  },
  features={"invoice_history": {"enabled": True}},
)```
#

Also, will this open a page separately from the app?

wild warren
strong arch
#

OK I will make my own UI for billing details and figure out the format of the different fields from the documentation.

For viewing invoices on the other hand - how can I embed a table of invoices in my app?

#

Or at least, if I need to make such a table myself, how can I extract the necessary information from a customer's profile? Also, can the invoice for each payment be viewed/downloaded as a pdf?

grizzled karma
#

Hello! I'm taking over and catching up...

strong arch
#

Amazing, thank you

grizzled karma
#

Happy to help!

strong arch
#

Also, given customers will typically only purchase from us once of twice a year (as our product is software), is there a way to create an invoice immediately after each purchase and include this in the confirmation email we send when they make a purchase? Also would make more sense to have the invoice table I make update immediately. I presume automatically invoices are made at the end of each month or similar?

grizzled karma
#

Are you charging them yearly with a Subscription, or are you creating the Invoices manually/directly?

strong arch
#

They will be manually paying each time as it might not be the same date each year (at least that's the plan for now)

#

I have set up embedded payments, and I can see the transactions in test mode and everything appears to be working. But I notice there aren't any invoices available for any of the test customers I've made despite them having transactions

grizzled karma
#

Can you give me the ID of one of those test mode transactions so I can take a look?

strong arch
#

Here is the ID for one of the payments:\

#

\pm_1OyzlwP7FVbVKqazYvTbqWva

grizzled karma
#

That's a Payment Method ID, which represents payment information. It's not specific to a single transaction. Do you have a Payment Intent ID (starts with pi_)?

strong arch
#

pi_3OyzlwP7FVbVKqaz08YjrETw

grizzled karma
strong arch
#

Thanks, will work through that