#PhatBoB

1 messages · Page 1 of 1 (latest)

dull parcelBOT
slender pawn
#

yeah doesn't seem possible, what you want to do is set the description of the PaymentIntent that ends up being created

tropic kindle
#

got it, but i can't understand, PaymentLink does not create a checkout.session as well?
I mean i am in the situation that i have to create a donation paymentlink which i need to have a clear identification on the overview section of my dashboard, i am expecting to get 30/40 donation per day....do i have to get thos payments and edit manually to have a description field?

Is there any batch procedure i can use to edit that field on my dashboard?

slender pawn
#

PaymentLink does not create a checkout.session as well?
It does

#

the PaymentLink is just a URL you give to the customer, and when they visit it, it creates a CheckoutSession and directs them to it. You could just create/redirect yourself directly if you need to/are able to/would like to create the payment information dynamically on a server at the time the customer is in the flow

#

Is there any batch procedure i can use to edit that field on my dashboard?
not that I know of

#

I agree it's a great feature request that we should support a description passthrough here

tropic kindle
#

yes...it's a limitation that i didn't expected to face honestly.

btw the only solution is to create a payment page which i can pass the description to the checkout session or to manually edit the description created using the payment link?

Is that right?

slender pawn
#

right

tropic kindle
#

ok thanks for help

slender pawn
#

Is there any batch procedure i can use to edit that field on my dashboard?
to be clear, you can use the API of course

tropic kindle
#

in which way? can i retrieve a paymentintent from dashboard and edit the description field

slender pawn
#

for example listen to the checkout.session.completed webhook event, and then retrieve the PaymentIntent and update the description

tropic kindle
#

?

slender pawn
#

when I said no I mean, you can't in bulk do this with only the dashboard

tropic kindle
#

yeah is a good idea, but is there a way to know if that paymentintent comes froma paymentlink or not?

slender pawn
#

not easily unfortunately if you only have the PaymentIntent ID and no other context

#

but it works well if you do it from the context of a webhook handler

tropic kindle
#

maybe i have a workaround...i have different payment comes from my backend and all have a description, when i listen to the event checkout.session.completed, is it possible to check if 'description" == 'null' and then proceed accordingly to update or not the field?

#

i mean can i retrive the checkout session data?

slender pawn
tropic kindle
#

super good, i'm going to try that! i have very appreciated your help 🙂