After the success of reactnative ios Alipay, there is no callback back to app?

when I dock with Alipay sdk, ios can pay successfully or return to app, but I can never get a callback of let ret = await Alipay.pay (obj.alipay) . I roughly know where the .h.m file on xcode is modified, but the native capacity is limited, please give me advice!

reactionary end:
  let ret = await Alipay.pay(obj.alipay) // (ret)
  if (ret.resultStatus === "9000") {
  } else {
    Toast.sad("")
  }
xcode side:

AlipayModule.h

-sharpimport <React/RCTBridgeModule.h>
-sharpimport <React/RCTLog.h>
@interface AlipayMoudle : NSObject <RCTBridgeModule>
//+(void)handleCallback:(NSURL *)url;
@end

AlipayModule.m

-sharpimport "AlipayModule.h"
-sharpimport <AlipaySDK/AlipaySDK.h>

@implementation AlipayMoudle

RCT_EXPORT_METHOD(pay:(NSString *)orderInfo
                  resolver:(RCTPromiseResolveBlock)resolve
                  rejecter:(RCTPromiseRejectBlock)reject){
  //scheme,AliSDKDemo-Info.plistURL types
  NSString *appScheme = @"guyuApp";
  [[AlipaySDK defaultService] payOrder:orderInfo fromScheme:appScheme callback:^(NSDictionary *resultDic) {
    resolve(resultDic);
  }];
}

RCT_EXPORT_MODULE(Alipay);

@end

where resolve (resultDic); will not be triggered, ask for advice

Jul.07,2022

how to solve it? Ask for advice


I have the same problem. Look at the code you posted. We should be looking at the same document

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b9e907-2ec5c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b9e907-2ec5c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?