j3k0 / cordova-plugin-purchase

In-App Purchase for Cordova on iOS, Android and Windows
https://purchase.cordova.fovea.cc
1.29k stars 529 forks source link

Is there a way to trigger a refund request ? #1472

Open berenger-germain-sams opened 8 months ago

berenger-germain-sams commented 8 months ago

Hi,

I implemented consumable in-app purchase with your plugin. First thanks a lot for it and its documentation ;)

My application is now able to proceed purchase on android and iOS and I now want to handle refunds.

On the Google side, no problem, I can access all the test purchases from the developer console. But on Apple (dark) side, it's a little bit more confuse to me...

As described here https://developer.apple.com/documentation/storekit/transaction/testing_refund_requests, an app can trigger refund request by calling some native functions. Is there a way to do so with this plugin ?

If the response is no, how can I test REFUND app store server notification ? I already configured my environment and I receive TEST notification type. I looked for the purchase history of the sandbox user I have created but I only can "clear the purchase history". It seems there is no way to see this history and simulate a refund request.

Please, can you give me some advise on that point ?