0
为什么notes
在处理付款时不显示在Square应用程序中?见下面的截图。这里是我用来调用Square App的SDK方法。使用SDK传递给Square应用程序时不显示注释
- (void) sdktest {
NSURL *const callbackURL = [NSURL URLWithString:@"SomeCallBackURL-Here"];
SCCMoney *const amount = [SCCMoney moneyWithAmountCents:500 currencyCode:@"USD" error:NULL];
[SCCAPIRequest setClientID:SQUARE_PROD_APP_ID];
NSError * error;
SCCAPIRequest *request = [SCCAPIRequest requestWithCallbackURL:callbackURL
amount:amount
userInfoString:@"My User info string"
merchantID:nil
notes:@"My Note"
customerID:nil
supportedTenderTypes:SCCAPIRequestTenderTypeAll
clearsDefaultFees:NO
returnAutomaticallyAfterPayment:YES
error:&error];
[SCCAPIConnection performRequest:request error:&error];
if (error != nil) { NSLog(@"ERROR IN SDKWAY: %@", error.localizedDescription); }
}
但是,当Square应用程序打开时,所有显示的都是价格。我想向用户展示他们付出的是什么。
在返回的数据包包括notes
和userInfoString
截图: 点击“后退”箭头只是需要你回测试应用程序。