#Suraj-Transfer

1 messages ยท Page 1 of 1 (latest)

dull bay
#

Sure

bold halo
#

how can get status(success,failed etc.) from object when make transfer from platform to connect ..?

#

??

#

are you there ..?

dull bay
#

Sorry, back

#

what object do you mean?

#

When you created a Transfer, you should receive the response of the request as well. It should tell you if the call was succeed

bold halo
#

var options = new TransferCreateOptions
{
Amount = 400,
Currency = "usd",
Destination = "acct_1HdqgIGOBPjZ1Bk2",
TransferGroup = "ORDER_95",
};
var service = new TransferService();
service.Create(options);

#

it does'nt have status ..??

dull bay
#

how does the response look like?

#

if you assign a variable, like

var result = service.Create(options);
#

then print out result, how does it look like?

bold halo
#

i gives only "StatusCode" which is understandable, which is httpcode type

#

what about "SourceTransaction" in transfer object, it has status in that ..??

dull bay
#

Do you see only an ID?

#

It should be an Id, you would need to "expand" the API call to get the full object

bold halo
#

yes, i am following the same thing.

#

i have found StatusCode which in transferobject, and Status which in transfer.SourceTransaction.Status ..?

lyric grotto
#

are you referring to the status of the Transfer object? whether it's successful or failed?

bold halo
#

yes, right

lyric grotto
#

the transfer doesn't have a status because if the request to create it succeeds - the transfer is successful. If the request to create it fails - the transfer fails

bold halo
#

so, how to know if it failed or succeed ..?

lyric grotto
#

if the request errors, you'll know that it failed. Does this make sense?

bold halo
#

so it raise Exception , this is what you mean ..?

#

what about "SourceTransaction" in transfer object, it has status in that, what is that ..??

lyric grotto
bold halo
bold halo
#

which charge it belongs to, customer charge or charge that made on platfrom when making transfer ..?

lyric grotto
#

the customer charge and the charge made on the platform should the same. Can you give me an example object id of each that makes you think they are different?

bold halo
#

i am using a separate charge and transfer

#

my charge id is "pi_3KQWB2GOBPjZ1Bk20K1tPUDl"

#

when transfering the amount to connect from platfrom i need to make transfer, right

lyric grotto
#

yep

bold halo
#

so, when i create transfer then it doen't have same charge object which i have created(pi_3KQWB2GOBPjZ1Bk20K1tPUDl), right ..?

#

it should have id like "py_*********", like that

#

i am right

lyric grotto
#

when a PaymentIntent succeeds, there will be a Charge created i.e. ch_ object (assuming we're only talking about card payments here)

bold halo
#

hmm,

#

so, that means there is no way to get status when making transfer ..??

lyric grotto
#

Were you asking about another object status? You asked about the Transfer status before and I mentioned that as long there no exception thrown when creating the Transfer, the Transfer is successful

#

the Transfer object itself doesn't have a status parameter if that's what you're asking

bold halo
lyric grotto
#

what's your definition of exception / errors? cause to me an error is a more general term that encompasses exceptions

#

i would suggest you try to create a transfer with a source transaction that doesn't exist or create a transfer that is more than the amount you have in your balance, then you'll be able to better understand what i mean

bold halo
#

ok i will check.

#

thanks

bold halo
#

if i am using separate charge and transfer, from where stripe take fee ..??

#

from charge or platform ..?

lyric grotto
#

from the platform

bold halo
#

ok thanks, so when i want to transfer, on that time i need to transfer less to get platfrom fee from them, right ..?

lyric grotto
#

yep, you would need to transfer less to the connected account to account for the Stripe fee

bold halo
#

๐Ÿ‘

#

thanks