#battbot
1 messages · Page 1 of 1 (latest)
An example of such a payment intent is:
pi_3Lhjf4J93KfFVesb0SOSaEFY
Taking a look now
You should be looking under the Payment Intent object instead. It's receipt_url
Which is a URL you can visit to view or download the receipt
Please check this one out:
pm_1LhjfVJ93KfFVesbwy2E5lfk
we do look under the payment intent object
most payments have the information, but some doesn't. Like the example I gave
we are not talking about online receipts
we are talking about the EMV information which allows us to print a physical receipt because it's a physical card interaction with the payment terminal at a store
Did you follow a tutorial to do this? Do you have an example of a Charge object that does contain the receipt info?
Yes
https://stripe.com/docs/terminal/features/receipts
Under the Custom receipts section
pm_1Lilv6J93KfFVesblzRDDWQO
This one has the "receipt" information under the card present object
@shrewd iron please be patient. The server is busy
There's no reference in that tutorial to using the Payment Method instead of the Payment Intent to get the receipt information. Where are you doing that? What does the code look like?
we are using the PaymentIntent to get this information
i'm just saying most of the time information is there, but sometimes it's not
I can give you the payment intent id for one that's missing the information:
pi_3Lhjf4J93KfFVesb0SOSaEFY
The normal one is:
pi_3LiluvJ93KfFVesb1ihVtwhe
Digging now. Will circle back in a few
https://stripe.com/docs/api/charges/object#charge_object-payment_method_details-card_present-receipt
It says “Only required for EMV transactions” which lines up with the behavior you're seeing:
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Example where it is null: pi_3Lhjf4J93KfFVesb0SOSaEFY -> this is a magstripe swipe
Example where it is not null: pi_3LiluvJ93KfFVesb1ihVtwhe -> this is an emv transaction
ok thanks. but didn't think mag swipe is possible on my WisePOS-E
since I thought it's only tap and chip on there