#arielbo

1 messages · Page 1 of 1 (latest)

rain knotBOT
steady mauve
#

Hello

jaunty haven
#

Hi there 👋

I'm not sure what you're asking, can you be more specific?

steady mauve
#

Let me explain a bit, I am creating a payment page to sell courses but the client would not have an account (cus) previously created in stripe, is it possible to build the paymentintent without the client having a cus?

#

Im using php stripe for my flow

jaunty haven
steady mauve
#

and in Custom payment flow ? is possible ?

jaunty haven
#

You can create a custom flow to accomplish making payments via Payment Intents, but you would have to create Customer objects for all your Customers

steady mauve
#

// Create a PaymentIntent with amount and currency
$paymentIntent = \Stripe\PaymentIntent::create([
'amount' => calculateOrderAmount($jsonObj->items),
'currency' => 'usd',
'automatic_payment_methods' => [
'enabled' => true,
],
]);

#

I would have to create the client in stripe, but after the payment has been made, correct?

jaunty haven
#

I'm not sure. The term "client" here is ambiguous, so can you be more specific?

steady mauve
#

customer

#

client = customer object

granite mirage
#

Hi there, stepping in as two-shoes has to step away. Let me catch up here

steady mauve
#

in your example Custom payment flow , in which moment you can create the customer in stripe

#

Im analice this https://stripe.com/docs/payments/quickstart example of Custom payment flow , I see that you are get the email of the customer, but in your code I can't see the need to previously create the customer, in this case it's not necessary, right?

granite mirage
steady mauve
#

of course, now we are in the same thought

#

well, in this case the payment_intents not require product created right?

granite mirage
#

Can you clarify what you mean with 'require product created right'? If you're referring to https://stripe.com/docs/api/products, then no.. You can just pass the amount and currency.

steady mauve
#

its the same like a customer object I understand that to create one Payment intent Im need only amount and currency

#

please another ask could you help me in delete one product?

#

prod_N2hjnu0uhMAk8U I cant delete this

#

I dont have any order with this product but I cant delete

granite mirage
steady mauve
#

Im trying delete in my web panel

#

but I cant just I see the option archived

candid badger
#

that's the right option, archive the product if you don't plan to use it

steady mauve
#

but why I cant delete? please

#

maybe you have an error

candid badger
#

because we discourage deletion and so you need to archive and that's all. No need to do anything else

steady mauve
#

I understand but it's really annoying to have archived products if they've never been used, I understand that we can archive them if they have associated sales but if they don't, I don't see it as practical, actually when I created a product it duplicated itself

#

Well, then I'm going to leave it in archived and thank you for your help, another question, is it possible to calculate the tax in paymentintents, possibly?

candid badger
#

No, there's no tax calculation support on PaymentIntent today. You'd have to use Checkout or Invoicing instead

steady mauve
#

but is in planning right ? to september 2023 in replace of orders

candid badger
#

it might, but for now no such thing exists

steady mauve
#

In checkout I need to pre created always the product and prices ids ? or maybe can I to use like a paymentintents with price arbitrary without a product predefined

candid badger
#

For tax calculation to work, we need to know exactly what is being sold, otherwise you can't calculate tax. That's why it requires Products and Prices yes

steady mauve
#

now I understand so good

candid badger
#

awesome!

steady mauve
#

in my case all my clients when created his courses can put the own prices and maybe I need to created this price inline by api stripe, but exist some limit to create multiple prices in one product ?

candid badger
#

there's no such limit, so yes you can create those in line as needed

steady mauve
#

maybe is the best option checkout to my case, in checkout I have automatic tax calculation and the customer will be created automattly right?

#

all products have checkout code right ?

candid badger
#

I don't understand what those sentences could mean. But yes using Checkout is likely the best option

steady mauve
#

When I use Prebuilt Checkout page, is enabled by default tax calculation?

candid badger
steady mauve
#

After the payment in the Prebuilt Checkout page, will the customer be automatically created in stripe?

candid badger
#

please take some time to read our docs first. We're happy to help when you're blocked

steady mauve
#

thank you I will be reading

candid badger
#

awesome!

steady mauve
#

can I duplicate the same price and amount? in some case

#

if every client can create his price id, is possible that exist duplicates amounts

candid badger
#

it doesn't really matter, that's up to you if you want duplicate Prices or not, it just works