#arielbo

1 messages · Page 1 of 1 (latest)

tepid trailBOT
ripe iris
#

hi

hidden tangle
#

Sorry I don't really follow the question. Could you elaborate a bit more?

#

how PaymentIntent and Invoice are related here

ripe iris
#

of course

hidden tangle
#

Can you elaborate a bit more?

ripe iris
#

maybe my ask is some obvious, I'm implement one flow with payment intent (Custom payment flow - https://stripe.com/docs/payments/quickstart) with php stripe api, and I had a question related to invoice and receipts, specifically I want to know if when the payment is processed with Custom payment flow, an invoice and receipts are automatically generated, and if these are sent to the customer automatically by email? If the answer is affirmative, how can I prevent these shipments from being made automatically?

hidden tangle
#

if when the payment is processed with Custom payment flow, an invoice and receipts are automatically generated, and if these are sent to the customer automatically by email
No a PaymentIntent won't generate an Invoice. It's the other way around actually, when you create an Invoice it will generate a PaymentIntent

ripe iris
#

ok and what about a receipt?

hidden tangle
#

However a PaymentIntent, after being confirmed successfully, will send a receipt. You can prevent it by not specifying a receipt_email

ripe iris
#

I need to send my own receipt, this is the reason

hidden tangle
#

Okie, then just make sure you don't specify the receipt_email here

ripe iris
#

$stripe->paymentIntents->create(
[
'amount' => 1099,
'currency' => 'usd',
'payment_method_types' => ['card'],
'receipt_email' => 'jenny.rosen@example.com', (THIS DELETE right?
]

#

Just this:
$stripe->paymentIntents->create(
[
'amount' => 1099,
'currency' => 'usd',
'payment_method_types' => ['card']
]

hidden tangle
#

Yep

#

correct

ripe iris
#

thank you, can I save meta-data in paymentintents ? maybe

hidden tangle
#

Yes you can save metadata on almost every object

ripe iris
#

Its not necesary create a customer in stripe to use and work with paymentintents right ?

hidden tangle
#

Yep if you only do transactional payment. If you have a business needs profiliing in example, then it's recommended to have a Customer

ripe iris
#

when I m to using paymentintenst exist some minimal customer data to process every to process each payment?

#

although I think you already answered me that it is not necessary to create a customer in stripe to process payments with paymentintent

#

Well, despite the fact that charges are made without creating a customer in stripe, could you save that data in the metadata of paymentintent right?

hidden tangle
#

Technically yes

ripe iris
#

ok thank you so much if I have another ask I will be back,

ripe iris
#

excuse me, related to my previus asks