StoreKit beginRefundRequest issue

I'm developing storekitV2, my app is providing the way to refund some product, and I use method below.

func beginRefundRequest(in scene: UIWindowScene) async throws -> Transaction.RefundRequestStatus

however when i call the method, the modal view presented but the view shows error with message 'cannot connect'. when I select retry button, something done with indicator and get same result.

how can I solve this problem?

i have the same problem

I recommend to start by trying to run Apple's food truck example. Does it work when you run it?

https://developer.apple.com/documentation/swiftui/food_truck_building_a_swiftui_multiplatform_app

Although the example does not use beginRefundRequest, but instead use refundRequestSheet, if it does not work as well you can deduce the issue is with your environment and not with the code you wrote.

StoreKit beginRefundRequest issue
 
 
Q