Processing_fee null in sandbox payment

I’m creating a sandbox payment and the response has a null processing_fee field. However, when I go to my dashboard, the payment shows a processing fee amount.

What’s the right way to obtain the processing fee that was charged? If I need to follow up with a call to Get payment, how much delay is there before the processing fee shows up?


Processing fees are populated asynchronously, so they can take up to 5 minutes or so depending on overall traffic. Generally they should be ready in < 1 minute.

The other way you can handle this is by using the payment.updated webhook, and then updating the processing fee whenever that webhook fires.

Hope that helps!

That’s perfect! Thanks.

1 Like