#GeochiNova

1 messages · Page 1 of 1 (latest)

lone bearBOT
remote otter
#

Hello! I don't know of any existing guide that would walk you through this. I think the most useful thing to do would be to look at the API reference for Products and Prices: https://stripe.com/docs/api/products

#

What are you trying to build exactly?

celest talon
#

The gateway Stripe checkout pulls the description, which you see on the left of the image that I provided

#

I want to mimic that for our product

#

I'm building a custom page

remote otter
#

One thing I want to make sure of is that you're not building a Payment Intents integration, correct? Like you're not planning to create Payment Intents directly?

celest talon
#

I've built a subscription, it creates a user and starts a subscription. But at the moment I have a screen where I'm using the PaymentForm element and the flow is incomplete, as the customer is sent to the page with the credit card field and inputs for name and email, but no description of what they are paying for (like in the image). I'm trying to pull the left side of the image from Stripe, instead of creating it statically in .jsx

#

Hope this is clear enough 🙂

#

Stripe's hosted checkout renders the Product summary part on the left by not just pulling data from Product, does it? As the link you sent me doesn't seem to have JSON for the : Subtotal, Total due today, Tax... where do I find those? @remote otter

remote otter
#

Gotcha.

#

Those values would come from the first Invoice for the Subscription.

celest talon
remote otter
#

Not sure I understand your question?

celest talon
#

@remote otter Can you suggest how to name the values? In the link they have "default_tax_rates": for example. So looking at this code:

<div>
{product ? (
<div>
<h2>{product.name}</h2>
<p>{product.price}</p>
<p>per {product.interval}</p>
<p>{product.description}</p>
<p>{product.billingInfo}</p>
<p>{product.default_price}</p>
<p>{product.subtotal}</p>
<p>{product.tax}</p>
<p>{product.totalDue}</p>
</div>

what would you name the field for taxes?

#

Or Subtotal or Total due today?

#

I think I see...