#rooter

1 messages ยท Page 1 of 1 (latest)

azure patrolBOT
lusty surge
#

Hello ๐Ÿ‘‹ what steps are you taking that result in a Transfer being created?

ionic osprey
#

stripeChargeCreateOptions = new ChargeCreateOptions
{
Amount = Decimal.ToInt32(registrationFee.Amount * 100),
Description = registration.Event.EventName + " " + registration.Event.EventStartDate.ToString(),
Capture = capture,
Currency = currency,
Customer = customerPaymentProfile.CustomerProfileId,
Source = customerPaymentProfile.CustomerPaymentProfileId,
Metadata = transactionMetaData(registration),
TransferData = new ChargeTransferDataOptions
{
Amount = Decimal.ToInt32(destinationAmount * 100),
Destination = destination
}
};

lusty surge
#

Gotcha, so you're creating a Charge object directly using a Destination Charge structure.

Can you provide the ID of the Charge that you are looking at where you're not seeing a Transfer associated?

ionic osprey
#

sure

#

ch_3MvQpUDQzp6p2Ds20M8NdDg7

lusty surge
#

Thank you!

#

The response you showed earlier, is that the response from the creation request for the Charge?

ionic osprey
#

yes

lusty surge
#

It looks like you're using our flow that separates the authorization and capture steps of processing a payment, and I'm not readily spotting a request being made to capture the funds from this Charge (please let me know if this is an oversight on my part).

What behavior do you see when you make a request to capture that Charge?
https://stripe.com/docs/api/charges/capture

ionic osprey
#

In this instance, we authorize the CC 4 days before the event and capture the amount on the day of the event. This is just the authorization. I have not done the capture yet. If there is a transactionId on the capture, I can set the metadata there, but when we used an older version of stripe.net, I didn't need to do that.

lusty surge
#

If the funds aren't in Stripe (they aren't if the Charge hasn't been captured), then I don't think we can generate a Transfer object to process moving those funds from one Stripe account to another.

Do you happen to have an example of a Charge that shows the previous behavior you're referring to?

ionic osprey
#

Not, but I can force this one if you give me a minute.

#

ch_3MvRNtDQzp6p2Ds22RU3xB90

#

I do see a transfer in the dashboard now.

#

I'll try moving the code to the second step and see what happens

lusty surge
#

๐Ÿ‘ sounds good, let me know if that still doesn't accomplish what you're trying to do.

azure patrolBOT
ionic osprey
#

That worked. Thanks

lusty surge
#

Awesome, glad to hear!