#arielbo
1 messages · Page 1 of 1 (latest)
hi
Sorry I don't really follow the question. Could you elaborate a bit more?
how PaymentIntent and Invoice are related here
of course
Can you elaborate a bit more?
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?
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
ok and what about a receipt?
However a PaymentIntent, after being confirmed successfully, will send a receipt. You can prevent it by not specifying a receipt_email
https://stripe.com/docs/receipts#automatically-send-receipts-when-payments-are-successful "PaymentIntents API"
I need to send my own receipt, this is the reason
Okie, then just make sure you don't specify the receipt_email here
$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']
]
thank you, can I save meta-data in paymentintents ? maybe
Yes you can save metadata on almost every object
Its not necesary create a customer in stripe to use and work with paymentintents right ?
Yep if you only do transactional payment. If you have a business needs profiliing in example, then it's recommended to have a Customer
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?
Technically yes
ok thank you so much if I have another ask I will be back,
excuse me, related to my previus asks