j3k0 / cordova-plugin-purchase

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

Server to Server notification #1216

Open MarwaMnafgui opened 3 years ago

MarwaMnafgui commented 3 years ago
Ionic:

    @ionic/cli: "^6.10.0",
    Ionic Framework               : "@ionic/angular": "^5.1.1"
    @angular-devkit/build-angular : 0.1102.13
    @angular-devkit/schematics: "^9.1.7",
    @angular/cli: "^9.1.7",
    @ionic/angular-toolkit: "~2.0.0",

System:

   NodeJS  : v12.14.0
   npm     : 6.13.4
   OS      : macOS Big Sur version 11.2.3
   Xcode   : Xcode 12.4 Build version 12D4e

Expected behavior

I use Auto-Renewable Subscription in my application. When I test it I want to check Auto-Renewable Subscription in Sandbox environment and i want to implement Apple notification (Server to Server (S2S) notifications) to understand when a user purchases, renews, cancels their premium subscription, but I haven't received anything back from Apple using a sandbox user account. Can you give me an example of how to develop an endpoint that would consume the notification to get the cancellation date? Once this is fixed will notifications start sending to our servers when I test in sandBox ? If not, anyone have an idea why Apple is not sending anything when testing in sandbox mode ? Thank you!

davidecampello commented 3 years ago

I'm interested.. have you found a solution?

marioshtika commented 3 years ago

Hello @MarwaMnafgui & @davidecampello ,

I am also trying to work with "Server to server notification". I think this is not related to the plugin or any configuration on the plugin. This is configured/enabled outside the application.

Maybe, this is a good place to start: https://developer.apple.com/documentation/storekit/original_api_for_in-app_purchase/subscriptions_and_offers/enabling_app_store_server_notifications

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.