#sushbhat-pi

1 messages · Page 1 of 1 (latest)

uncut geyser
#

What do you mean by 'payment source name'?

loud lance
#

So we have a generic microservice that creates payment intents for different client applications, when we handle webhook requests we need a way to identify which client application was it to take customized actions

#

I found that there is a field called 'application' in payment intent, but its only on response object

#

looking for something like this 'application' attribute while creating the payment intent to set 'application':'clientName'

uncut geyser
loud lance
#

and then while webhook processing check application == 'clientName'

#

application
string
EXPANDABLE "APPLICATION"
CONNECT ONLY
ID of the Connect application that created the PaymentIntent.

#

just want to know how to set this application while creating paymentIntetn

uncut geyser
#

You don't set that field, it's computed from other parameters you pass when creating the PI (depending on what kind of Connect charges you're making)

#

Do you have an example pi_xxx ID I can look at

loud lance
#

ya pi_3LZVAKJ9HSJXUod01MAsCLvC

#

its null here

uncut geyser
#

Correct, that's expected. You're not using Connect?

loud lance
#

no, what is connect?

uncut geyser
#

It facilitates multi-party payments. The fields you're referencing is only applicable if you're using Connect

loud lance
#

okk..

#

do you know of any other way to handle my usecase?

uncut geyser
loud lance
#

ok got it..

#

also

#

we need to use the charges object inside the payment intent to get metda data?

uncut geyser
#

Nope, it'll be on the Payment Intent object