#arpu_code
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1394671660111626331
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Can you explain more about "receipts are not ready"? What are you expecting to happen vs what are you observing?
hi, when i open the link with /pdf? it should download the receipts as pdf
Can you share the corresponding payment intent ID for one of these test payments?
the ch id ? is id
"ch_3RORTQ2cDKQl67av1XTKfxol"
and
payment_intent
:
"pi_3RORTQ2cDKQl67av1UwvWKNN"
Ok, taking a step back here to make sure w're on the same page. How do tips come into play here? I see a single test payment amount & confirmation via Destination charge, no adjustment to a captured amount etc.
And even there I'm not sure how this relates to the receipt_url availability.
ok what i use is rails ruby api : to get all costumers receipt ( with Stripe::Charge.list(customer: current_user.stripe_customer_id) )
and the respons give me the receipt_url the html link works fine but not linking to the pdf)
the payment ident is ``` tip = Stripe::PaymentIntent.create({
amount:,
currency:,
customer: customer.id,
# payment_method:,
automatic_payment_methods: { enabled: true },
application_fee_amount: platform_fee,
use_stripe_sdk: true,
# setup_future_usage: 'off_session',
transfer_data: {
destination: room_user.stripe_account_id # Connected Account
},
metadata: {
recipient_user_id: recipient_id,
original_user_id: current_user.id,
ahoy_visit_id: current_user.visits.last&.id,
room_id:
}
})
I don't think its expected to be able to load a PDF directly, the spec as far as i know if only for the HTML page
hm ok but this worked some time ago and now i see this does not work anymore for normal payments too
any suggestions how i can deliver the pdf as link to the user in a dashboard?
now i see this does not work anymore for normal payments too
Do you know when this stopped working for you? I can check to see if there something unexpected.
any suggestions how i can deliver the pdf as link to the user in a dashboard?
If its a strong requirement you have, it might be necessary to load those pages yourself and export the PDF, otherwise linking customers to the page to retrieve themselves.
hmm sorry cannot say when this was stopping working
ok chatgpt told me this:
| Stripe Object | PDF Available | How to Get It |
|---|---|---|
| Invoice | โ Yes | invoice.invoice_pdf field |
| Subscription | โ Yes (via Invoice) | Access linked Invoice PDF |
| One-time Charge | โ No PDF | Only receipt_url (HTML) |
Yea that describes the documented behaviour
but would be nice to get the PDF direct on the receipt_url for one time payments too