react-native-iap icon indicating copy to clipboard operation
react-native-iap copied to clipboard

E_USER_CANCELLED after user rejected dialog "Turn off renewal receipts?" after transaction

Open MobWeb24 opened this issue 1 year ago • 2 comments

Description

NOTE: App is in prod for many years and already handling all transactions.

We observe the behavior that in some cases after the transaction with ApplePay user is redirected to special dialog "Turn off renewal receipts?". We are unable to reproduce it but we see in logs many hints that user made a payment:

DISCLAIMER: all keys & secrets are removed { "code": "E_USER_CANCELLED", "message": "The operation couldn’t be completed. (SKErrorDomain error 2.)", "domain": "SKErrorDomain", "userInfo": { "NSUnderlyingError": { "code": "907", "message": "underlying error", "domain": "ASDErrorDomain", "userInfo": { "NSUnderlyingError": { "code": "907", "message": "underlying error", "domain": "ASDErrorDomain", "userInfo": { "NSUnderlyingError": { "code": "6", "message": "underlying error", "domain": "AMSErrorDomain", "userInfo": { "AMSFailureReason": "The dialog was cancelled", "NSDebugDescription": "Purchase Cancelled The dialog was cancelled", "AMSServerPayload": { "dialog": { "explanation": "Get fewer emails by turning off renewal receipts for subscriptions. Your receipts will still be available in App Store settings › Purchase History.", "message": "Turn Off Renewal Receipt Emails?", "cancelButtonAction": { "kind": "Goto", "subtarget": "background", "url": "https://buy.itunes.apple.com/commerce/account/flags/turnOffRenewalReceipts?offerName=sku&guid=guid&appAdamId=000000&price=19990&pricingParameters=STDQ&vid=00000000000&appExtVrsId=00000000&quantity=1&afdsv2_w2b=afdsv2_w2b&offrd-intro-price=false&showIAPExtraDialog=false&bvrs=000000&buySignatures=00000000&salableAdamId=00000000&clientCorrelationKey=0000000000&hasBeenAuthedForBuy=true&ageCheck=true&icloud-backup-enabled=1&xToken=token&productType=A&pkPayment_w2b=pkPayment_w2b&storeCohort=10%7Cdate%%26sf%%26rapp%3Dcom.zhiliaoapp.musically%26pgtp%3DSoftware%26pgid%00000000%26prpg%3DToday_today%26ctxt%3DToday%26pgvid%0000000pgexpid%00000000000%3D2&pg=default&hasWebOptIn=false&applePayPaymentServiceURL=https%3A%2F%2Fapple-pay-gateway.apple.com%2Fpaymentservices%2F&hasConfirmedBuySubscription=true&bid=appId&hasConfirmedPaymentSheet=true&offrd-free-trial=false" }, "okButtonString": "Keep Renewal Emails", "m-allowed": false, "okButtonAction": { "kind": "Goto", "subtarget": "background", "url": "https://buy.itunes.apple.com/commerce/account/flags/updateInvoiceReductionSeenModal?offerName=sku&guid=000000000&appAdamId=00000000&price=19990&pricingParameters=STDQ&vid=000000000000000&appExtVrsId=0000000&quantity=1&afdsv2_w2b=afdsv2_w2b&offrd-intro-price=false&showIAPExtraDialog=false&bvrs=00000&buySignatures=%7B+token-info+%3D+%7B+blinded-element+000000&salableAdamId=0000000&clientCorrelationKey=000000000000&hasBeenAuthedForBuy=true&ageCheck=true&icloud-backup-enabled=1&xToken=00000000=A&pkPayment_w2b=pkPayment_w2b&storeCohort=10%7Cdate%3D1739538000000%26sf%3D143444%26rapp%3Dcom.zhiliaoapp.musically%26pgtp%3DSoftware%26pgid%3D1489440748%26prpg%3DToday_today%26ctxt%3DToday%26pgvid%000000000ngid%3D2&pg=default&hasWebOptIn=false&applePayPaymentServiceURL=https%3A%2F%2Fapple-pay-gateway.apple.com%2Fpaymentservices%2F&hasConfirmedBuySubscription=true&bid=appId&hasConfirmedPaymentSheet=true&offrd-free-trial=false" }, "cancelButtonString": "Turn Off Renewal Emails", "initialCheckboxValue": true, "defaultButton": "ok" }, "metrics": { "pliIds": [ "000000000" ], "commerceEvent_flowType": 4, "priceType": "STDQ", "sapLineItemTypes": [ "0" ], "extractedCommerceEvent_latestLineItem_currencyCodeISO3A": "GBP", "mtTopic": "xp_its_main", "extractedCommerceEvent_latestLineItem_amountPaid": "16.66000", "itemIds": [ 00000000 ], "mtEventTime": "2025-02-14 14:06:28 Etc/GMT", "commerceEvent_purchase_priceType": "STDQ", "commerceEvent_storeFrontId": "000000", "commerceEvent_result_resultType": 0, "sapTypes": [ "IAY" ], "price": 19.99, "currency": "GBP", "commerceEvent_correlationKey": "000000000000", "productTypes": [ "A" ], "commerceEvent_flowStep": 6, "extractedCommerceEvent_latestLineItem_sapType": "IAY", "extractedCommerceEvent_latestLineItem_adamId": "000000000" }, "app-list": [ { "purchase-date": null, "version-external-identifier": 0000000000, "original-purchase-date": null, "bid": "id", "bvrs": "000000", "receipt-data": null, "original-transaction-id": "00000000000", "item-id": 0000000000, "offer-name": "sku", "app-item-id": 0000000, "transaction-id": "0000000000", "quantity": 1 } ], "buySignatures": [ { "songId": 000000000, "token-info": { "certificate": "token", "element": "element", "proof": "proof" } } ], "isSubscriptionShareable": "false", "jingleDocType": "inAppSuccess", "dsid": "000000000", "download-queue-item-count": 1, "pings": [], "receipt-data": null, "jingleAction": "inAppBuy" }, "AMSDescription": "Purchase Cancelled", "AMSURL": "https://p49-buy.itunes.apple.com/WebObjects/MZBuy.woa/wa/inAppBuy?guid=0000000000000", "AMSStatusCode": 200 }, "nativeStackIOS": [ "0 Once 0x0000000104ed30e0 _ZN8facebook5react38concreteComponentDescriptorConstructorINS0_23ViewComponentDescriptorEEENSt3__110unique_ptrIKNS0_19ComponentDescriptorENS3_14default_deleteIS6_EEEERKNS0_29ComponentDescriptorParametersE + 1568528", "1 Once 0x0000000104ed326c _ZN8facebook5react38concreteComponentDescriptorConstructorINS0_23ViewComponentDescriptorEEENSt3__110unique_ptrIKNS0_19ComponentDescriptorENS3_14default_deleteIS6_EEEERKNS0_29ComponentDescriptorParametersE + 1568924", "2 Once 0x0000000104ed326c _ZN8facebook5react38concreteComponentDescriptorConstructorINS0_23ViewComponentDescriptorEEENSt3__110unique_ptrIKNS0_19ComponentDescriptorENS3_14default_deleteIS6_EEEERKNS0_29ComponentDescriptorParametersE + 1568924", "3 Once 0x0000000104ed326c _ZN8facebook5react38concreteComponentDescriptorConstructorINS0_23ViewComponentDescriptorEEENSt3__110unique_ptrIKNS0_19ComponentDescriptorENS3_14default_deleteIS6_EEEERKNS0_29ComponentDescriptorParametersE + 1568924", "4 Once 0x0000000104eaf4cc _ZN8facebook5react38concreteComponentDescriptorConstructorINS0_23ViewComponentDescriptorEEENSt3__110unique_ptrIKNS0_19ComponentDescriptorENS3_14default_deleteIS6_EEEERKNS0_29ComponentDescriptorParametersE + 1422076", "5 Once 0x00000001045f872c _ZN7plcrash3PL_5async24dwarf_cfa_state_iteratorIyxE4nextEPjPNS1_28plcrash_dwarf_cfa_reg_rule_tEPy + 2947896", "6 Once 0x0000000104dd4c20 _ZN8facebook5react38concreteComponentDescriptorConstructorINS0_23ViewComponentDescriptorEEENSt3__110unique_ptrIKNS0_19ComponentDescriptorENS3_14default_deleteIS6_EEEERKNS0_29ComponentDescriptorParametersE + 526928", "7 Once 0x0000000104dcdf60 _ZN8facebook5react38concreteComponentDescriptorConstructorINS0_23ViewComponentDescriptorEEENSt3__110unique_ptrIKNS0_19ComponentDescriptorENS3_14default_deleteIS6_EEEERKNS0_29ComponentDescriptorParametersE + 499088", "8 Once 0x0000000104dd4a54 _ZN8facebook5react38concreteComponentDescriptorConstructorINS0_23ViewComponentDescriptorEEENSt3__110unique_ptrIKNS0_19ComponentDescriptorENS3_14default_deleteIS6_EEEERKNS0_29ComponentDescriptorParametersE + 526468", "9 Once 0x000000010433b250 _ZN7plcrash3PL_5async24dwarf_cfa_state_iteratorIyxE4nextEPjPNS1_28plcrash_dwarf_cfa_reg_rule_tEPy + 75356", "10 libdispatch.dylib 0x0000000196283fa8 8CE3AFB9-6D84-3446-8FD4-E5F798D98403 + 16296", "11 libdispatch.dylib 0x00000001962937fc 8CE3AFB9-6D84-3446-8FD4-E5F798D98403 + 79868", "12 Once 0x0000000104dd0820 _ZN8facebook5react38concreteComponentDescriptorConstructorINS0_23ViewComponentDescriptorEEENSt3__110unique_ptrIKNS0_19ComponentDescriptorENS3_14default_deleteIS6_EEEERKNS0_29ComponentDescriptorParametersE + 509520", "13 Once 0x0000000104dcf130 _ZN8facebook5react38concreteComponentDescriptorConstructorINS0_23ViewComponentDescriptorEEENSt3__110unique_ptrIKNS0_19ComponentDescriptorENS3_14default_deleteIS6_EEEERKNS0_29ComponentDescriptorParametersE + 503648", "14 StoreKit 0x00000001bb9cf5b4 87CD93F1-2301-36A1-B988-A1DD077391ED + 214452", "15 libdispatch.dylib 0x0000000196282248 8CE3AFB9-6D84-3446-8FD4-E5F798D98403 + 8776", "16 libdispatch.dylib 0x0000000196283fa8 8CE3AFB9-6D84-3446-8FD4-E5F798D98403 + 16296", "17 libdispatch.dylib 0x0000000196292a34 8CE3AFB9-6D84-3446-8FD4-E5F798D98403 + 76340", "18 libdispatch.dylib 0x000000019629264c _dispatch_main_queue_callback_4CF + 44", "19 CoreFoundation 0x000000018e549bbc 6A60BE13-E657-3BEC-A9AC-BA239AE29862 + 498620", "20 CoreFoundation 0x000000018e5461b0 6A60BE13-E657-3BEC-A9AC-BA239AE29862 + 483760", "21 CoreFoundation 0x000000018e598274 CFRunLoopRunSpecific + 588", "22 GraphicsServices 0x00000001db7114c0 GSEventRunModal + 164", "23 UIKitCore 0x00000001910de77c F80C6EE4-50CA-346F-90EB-BB3DA9817503 + 4122492", "24 UIKitCore 0x0000000190d04e64 UIApplicationMain + 340", "25 Once 0x00000001042b5f74 Once + 24436", "26 dyld 0x00000001b476cde8 4EB7459F-E237-38CE-8240-3F3E2E1CE5AB + 196072" ] }, "NSLocalizedDescription": "The purchase request was cancelled." }, "nativeStackIOS": [ "0 Once 0x0000000104ed30e0 _ZN8facebook5react38concreteComponentDescriptorConstructorINS0_23ViewComponentDescriptorEEENSt3__110unique_ptrIKNS0_19ComponentDescriptorENS3_14default_deleteIS6_EEEERKNS0_29ComponentDescriptorParametersE + 1568528", "1 Once 0x0000000104ed326c _ZN8facebook5react38concreteComponentDescriptorConstructorINS0_23ViewComponentDescriptorEEENSt3__110unique_ptrIKNS0_19ComponentDescriptorENS3_14default_deleteIS6_EEEERKNS0_29ComponentDescriptorParametersE + 1568924", "2 Once 0x0000000104ed326c _ZN8facebook5react38concreteComponentDescriptorConstructorINS0_23ViewComponentDescriptorEEENSt3__110unique_ptrIKNS0_19ComponentDescriptorENS3_14default_deleteIS6_EEEERKNS0_29ComponentDescriptorParametersE + 1568924", "3 Once 0x0000000104eaf4cc _ZN8facebook5react38concreteComponentDescriptorConstructorINS0_23ViewComponentDescriptorEEENSt3__110unique_ptrIKNS0_19ComponentDescriptorENS3_14default_deleteIS6_EEEERKNS0_29ComponentDescriptorParametersE + 1422076", "4 Once 0x00000001045f872c _ZN7plcrash3PL_5async24dwarf_cfa_state_iteratorIyxE4nextEPjPNS1_28plcrash_dwarf_cfa_reg_rule_tEPy + 2947896", "5 Once 0x0000000104dd4c20 _ZN8facebook5react38concreteComponentDescriptorConstructorINS0_23ViewComponentDescriptorEEENSt3__110unique_ptrIKNS0_19ComponentDescriptorENS3_14default_deleteIS6_EEEERKNS0_29ComponentDescriptorParametersE + 526928", "6 Once 0x0000000104dcdf60 _ZN8facebook5react38concreteComponentDescriptorConstructorINS0_23ViewComponentDescriptorEEENSt3__110unique_ptrIKNS0_19ComponentDescriptorENS3_14default_deleteIS6_EEEERKNS0_29ComponentDescriptorParametersE + 499088", "7 Once 0x0000000104dd4a54 _ZN8facebook5react38concreteComponentDescriptorConstructorINS0_23ViewComponentDescriptorEEENSt3__110unique_ptrIKNS0_19ComponentDescriptorENS3_14default_deleteIS6_EEEERKNS0_29ComponentDescriptorParametersE + 526468", "8 Once 0x000000010433b250 _ZN7plcrash3PL_5async24dwarf_cfa_state_iteratorIyxE4nextEPjPNS1_28plcrash_dwarf_cfa_reg_rule_tEPy + 75356", "9 libdispatch.dylib 0x0000000196283fa8 8CE3AFB9-6D84-3446-8FD4-E5F798D98403 + 16296", "10 libdispatch.dylib 0x00000001962937fc 8CE3AFB9-6D84-3446-8FD4-E5F798D98403 + 79868", "11 Once 0x0000000104dd0820 _ZN8facebook5react38concreteComponentDescriptorConstructorINS0_23ViewComponentDescriptorEEENSt3__110unique_ptrIKNS0_19ComponentDescriptorENS3_14default_deleteIS6_EEEERKNS0_29ComponentDescriptorParametersE + 509520", "12 Once 0x0000000104dcf130 _ZN8facebook5react38concreteComponentDescriptorConstructorINS0_23ViewComponentDescriptorEEENSt3__110unique_ptrIKNS0_19ComponentDescriptorENS3_14default_deleteIS6_EEEERKNS0_29ComponentDescriptorParametersE + 503648", "13 StoreKit 0x00000001bb9cf5b4 87CD93F1-2301-36A1-B988-A1DD077391ED + 214452", "14 libdispatch.dylib 0x0000000196282248 8CE3AFB9-6D84-3446-8FD4-E5F798D98403 + 8776", "15 libdispatch.dylib 0x0000000196283fa8 8CE3AFB9-6D84-3446-8FD4-E5F798D98403 + 16296", "16 libdispatch.dylib 0x0000000196292a34 8CE3AFB9-6D84-3446-8FD4-E5F798D98403 + 76340", "17 libdispatch.dylib 0x000000019629264c _dispatch_main_queue_callback_4CF + 44", "18 CoreFoundation 0x000000018e549bbc 6A60BE13-E657-3BEC-A9AC-BA239AE29862 + 498620", "19 CoreFoundation 0x000000018e5461b0 6A60BE13-E657-3BEC-A9AC-BA239AE29862 + 483760", "20 CoreFoundation 0x000000018e598274 CFRunLoopRunSpecific + 588", "21 GraphicsServices 0x00000001db7114c0 GSEventRunModal + 164", "22 UIKitCore 0x00000001910de77c F80C6EE4-50CA-346F-90EB-BB3DA9817503 + 4122492", "23 UIKitCore 0x0000000190d04e64 UIApplicationMain + 340", "24 Once 0x00000001042b5f74 Once + 24436", "25 dyld 0x00000001b476cde8 4EB7459F-E237-38CE-8240-3F3E2E1CE5AB + 196072" ] } }, "nativeStackIOS": [ "0 Once 0x0000000104ed30e0 _ZN8facebook5react38concreteComponentDescriptorConstructorINS0_23ViewComponentDescriptorEEENSt3__110unique_ptrIKNS0_19ComponentDescriptorENS3_14default_deleteIS6_EEEERKNS0_29ComponentDescriptorParametersE + 1568528", "1 Once 0x0000000104ed326c _ZN8facebook5react38concreteComponentDescriptorConstructorINS0_23ViewComponentDescriptorEEENSt3__110unique_ptrIKNS0_19ComponentDescriptorENS3_14default_deleteIS6_EEEERKNS0_29ComponentDescriptorParametersE + 1568924", "2 Once 0x0000000104eaf4cc _ZN8facebook5react38concreteComponentDescriptorConstructorINS0_23ViewComponentDescriptorEEENSt3__110unique_ptrIKNS0_19ComponentDescriptorENS3_14default_deleteIS6_EEEERKNS0_29ComponentDescriptorParametersE + 1422076", "3 Once 0x00000001045f872c _ZN7plcrash3PL_5async24dwarf_cfa_state_iteratorIyxE4nextEPjPNS1_28plcrash_dwarf_cfa_reg_rule_tEPy + 2947896", "4 Once 0x0000000104dd4c20 _ZN8facebook5react38concreteComponentDescriptorConstructorINS0_23ViewComponentDescriptorEEENSt3__110unique_ptrIKNS0_19ComponentDescriptorENS3_14default_deleteIS6_EEEERKNS0_29ComponentDescriptorParametersE + 526928", "5 Once 0x0000000104dcdf60 _ZN8facebook5react38concreteComponentDescriptorConstructorINS0_23ViewComponentDescriptorEEENSt3__110unique_ptrIKNS0_19ComponentDescriptorENS3_14default_deleteIS6_EEEERKNS0_29ComponentDescriptorParametersE + 499088", "6 Once 0x0000000104dd4a54 _ZN8facebook5react38concreteComponentDescriptorConstructorINS0_23ViewComponentDescriptorEEENSt3__110unique_ptrIKNS0_19ComponentDescriptorENS3_14default_deleteIS6_EEEERKNS0_29ComponentDescriptorParametersE + 526468", "7 Once 0x000000010433b250 _ZN7plcrash3PL_5async24dwarf_cfa_state_iteratorIyxE4nextEPjPNS1_28plcrash_dwarf_cfa_reg_rule_tEPy + 75356", "8 libdispatch.dylib 0x0000000196283fa8 8CE3AFB9-6D84-3446-8FD4-E5F798D98403 + 16296", "9 libdispatch.dylib 0x00000001962937fc 8CE3AFB9-6D84-3446-8FD4-E5F798D98403 + 79868", "10 Once 0x0000000104dd0820 _ZN8facebook5react38concreteComponentDescriptorConstructorINS0_23ViewComponentDescriptorEEENSt3__110unique_ptrIKNS0_19ComponentDescriptorENS3_14default_deleteIS6_EEEERKNS0_29ComponentDescriptorParametersE + 509520", "11 Once 0x0000000104dcf130 _ZN8facebook5react38concreteComponentDescriptorConstructorINS0_23ViewComponentDescriptorEEENSt3__110unique_ptrIKNS0_19ComponentDescriptorENS3_14default_deleteIS6_EEEERKNS0_29ComponentDescriptorParametersE + 503648", "12 StoreKit 0x00000001bb9cf5b4 87CD93F1-2301-36A1-B988-A1DD077391ED + 214452", "13 libdispatch.dylib 0x0000000196282248 8CE3AFB9-6D84-3446-8FD4-E5F798D98403 + 8776", "14 libdispatch.dylib 0x0000000196283fa8 8CE3AFB9-6D84-3446-8FD4-E5F798D98403 + 16296", "15 libdispatch.dylib 0x0000000196292a34 8CE3AFB9-6D84-3446-8FD4-E5F798D98403 + 76340", "16 libdispatch.dylib 0x000000019629264c _dispatch_main_queue_callback_4CF + 44", "17 CoreFoundation 0x000000018e549bbc 6A60BE13-E657-3BEC-A9AC-BA239AE29862 + 498620", "18 CoreFoundation 0x000000018e5461b0 6A60BE13-E657-3BEC-A9AC-BA239AE29862 + 483760", "19 CoreFoundation 0x000000018e598274 CFRunLoopRunSpecific + 588", "20 GraphicsServices 0x00000001db7114c0 GSEventRunModal + 164", "21 UIKitCore 0x00000001910de77c F80C6EE4-50CA-346F-90EB-BB3DA9817503 + 4122492", "22 UIKitCore 0x0000000190d04e64 UIApplicationMain + 340", "23 Once 0x00000001042b5f74 Once + 24436", "24 dyld 0x00000001b476cde8 4EB7459F-E237-38CE-8240-3F3E2E1CE5AB + 196072" ] } }, "nativeStackIOS": [ "0 Once 0x0000000104ed30e0 _ZN8facebook5react38concreteComponentDescriptorConstructorINS0_23ViewComponentDescriptorEEENSt3__110unique_ptrIKNS0_19ComponentDescriptorENS3_14default_deleteIS6_EEEERKNS0_29ComponentDescriptorParametersE + 1568528", "1 Once 0x0000000104eaf4cc _ZN8facebook5react38concreteComponentDescriptorConstructorINS0_23ViewComponentDescriptorEEENSt3__110unique_ptrIKNS0_19ComponentDescriptorENS3_14default_deleteIS6_EEEERKNS0_29ComponentDescriptorParametersE + 1422076", "2 Once 0x00000001045f872c _ZN7plcrash3PL_5async24dwarf_cfa_state_iteratorIyxE4nextEPjPNS1_28plcrash_dwarf_cfa_reg_rule_tEPy + 2947896", "3 Once 0x0000000104dd4c20 _ZN8facebook5react38concreteComponentDescriptorConstructorINS0_23ViewComponentDescriptorEEENSt3__110unique_ptrIKNS0_19ComponentDescriptorENS3_14default_deleteIS6_EEEERKNS0_29ComponentDescriptorParametersE + 526928", "4 Once 0x0000000104dcdf60 _ZN8facebook5react38concreteComponentDescriptorConstructorINS0_23ViewComponentDescriptorEEENSt3__110unique_ptrIKNS0_19ComponentDescriptorENS3_14default_deleteIS6_EEEERKNS0_29ComponentDescriptorParametersE + 499088", "5 Once 0x0000000104dd4a54 _ZN8facebook5react38concreteComponentDescriptorConstructorINS0_23ViewComponentDescriptorEEENSt3__110unique_ptrIKNS0_19ComponentDescriptorENS3_14default_deleteIS6_EEEERKNS0_29ComponentDescriptorParametersE + 526468", "6 Once 0x000000010433b250 _ZN7plcrash3PL_5async24dwarf_cfa_state_iteratorIyxE4nextEPjPNS1_28plcrash_dwarf_cfa_reg_rule_tEPy + 75356", "7 libdispatch.dylib 0x0000000196283fa8 8CE3AFB9-6D84-3446-8FD4-E5F798D98403 + 16296", "8 libdispatch.dylib 0x00000001962937fc 8CE3AFB9-6D84-3446-8FD4-E5F798D98403 + 79868", "9 Once 0x0000000104dd0820 _ZN8facebook5react38concreteComponentDescriptorConstructorINS0_23ViewComponentDescriptorEEENSt3__110unique_ptrIKNS0_19ComponentDescriptorENS3_14default_deleteIS6_EEEERKNS0_29ComponentDescriptorParametersE + 509520", "10 Once 0x0000000104dcf130 _ZN8facebook5react38concreteComponentDescriptorConstructorINS0_23ViewComponentDescriptorEEENSt3__110unique_ptrIKNS0_19ComponentDescriptorENS3_14default_deleteIS6_EEEERKNS0_29ComponentDescriptorParametersE + 503648", "11 StoreKit 0x00000001bb9cf5b4 87CD93F1-2301-36A1-B988-A1DD077391ED + 214452", "12 libdispatch.dylib 0x0000000196282248 8CE3AFB9-6D84-3446-8FD4-E5F798D98403 + 8776", "13 libdispatch.dylib 0x0000000196283fa8 8CE3AFB9-6D84-3446-8FD4-E5F798D98403 + 16296", "14 libdispatch.dylib 0x0000000196292a34 8CE3AFB9-6D84-3446-8FD4-E5F798D98403 + 76340", "15 libdispatch.dylib 0x000000019629264c _dispatch_main_queue_callback_4CF + 44", "16 CoreFoundation 0x000000018e549bbc 6A60BE13-E657-3BEC-A9AC-BA239AE29862 + 498620", "17 CoreFoundation 0x000000018e5461b0 6A60BE13-E657-3BEC-A9AC-BA239AE29862 + 483760", "18 CoreFoundation 0x000000018e598274 CFRunLoopRunSpecific + 588", "19 GraphicsServices 0x00000001db7114c0 GSEventRunModal + 164", "20 UIKitCore 0x00000001910de77c F80C6EE4-50CA-346F-90EB-BB3DA9817503 + 4122492", "21 UIKitCore 0x0000000190d04e64 UIApplicationMain + 340", "22 Once 0x00000001042b5f74 Once + 24436", "23 dyld 0x00000001b476cde8 4EB7459F-E237-38CE-8240-3F3E2E1CE5AB + 196072" ] }

Expected Behavior

RNIapIosSk2.buyProduct is not rejecting E_USER_CANCELLED once user closes this window

Screenshots

_

Environment:

  • react-native-iap: 12.15.1
  • react-native: 0.73.8
  • Platforms (iOS, Android, emulator, simulator, device): ios 18+

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Press '...'
  3. Error '...' is shown

[Optional] Additional Context

MobWeb24 avatar Feb 24 '25 13:02 MobWeb24

We are having the exact same issue

BG687 avatar Mar 11 '25 22:03 BG687

Same here in Swift/StoreKit. User hits the button to keep email notifications, and Apple sends us a .userCancelled response, even though they successfully processed the payment.

This is a bug that needs to get fixed.

GAEfan avatar May 08 '25 18:05 GAEfan

I’m closing all issues reported in versions below 14, as the library now supports the new architecture with NitroModules and has been completely revamped.

hyochan avatar Sep 30 '25 04:09 hyochan